This video shows how you can add parameters with a default value and optional parameters to customized functions you make yourself. The function used in this video is from a previous tutorial linked below.
NOTE: This video involves using syntax that is from Ruby and is not part of the official Sonic Pi documentation. Reminder that when using non-documented Ruby syntax in Sonic Pi, it may not be supported in future versions.
Making Trap Hihats with the Density Function: • Sonic Pi Tutorial - Making Trap Hi Hats wi...
Instagram - www.instagram.com/mrbombmusic/
twitter - / mrbombmusic
Download Sonic Pi: https://sonic-pi.net/
Sonic Pi Online Community: https://in-thread.sonic-pi.net/
Support Sonic Pi on Patreon: / samaaron
(Note: I do not receive any financial compensation for promoting Sonic Pi. It is just a platform I am passionate about both as a musician and educator.)