I'm trying to integrate different note spellings for the nslider object : for every black key, I want to be able to choose whether I want it to appear as flat or sharp. By default, all black keys appear as sharps, so I need to add a "-" sign in front of selected pitches in order to make them appear as flats.
How can I select specific ints from a list and add a "-" sign to them? I got close using regexp, but as shown in my exemple matching the int 1 will add a "-" sign in front of every "1" number (ie : 121 ---> -12-1).
Is there a zl function for this?