Sonic Pi Newbie here
Ive used the **args trick that I found to be able to get all the arguments to a define like this:
define :chord_player do |root, type, repeats, length, **args|
What I was wondering (since there doesnt seem to be any concept of strings)
one of the args will be say ‘release:4’
Because of the nature of the define, one of may main arguments (repeats) I have currently inserted because I cant seem to find a way of grabbing the ‘4’ from ‘release:4’
Alternatively, is there a way of creating ‘release:4’ from within the define as I already know the 4 is passed as the repeats argument.
I hope I have explained myself sufficienly