[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Make a function into a synthdef





Am 24.12.2019 um 04:33 schrieb geoffbaltan@xxxxxxxxx:

Thanks, Daniel - this works very well for me, except for two small
concerns. Code follows below.

I'm converting scale degrees to notes. It seems that this creates some
kind of discrepancy in the ability to change \degree in real-time
within Pbindef.  I wonder if this is because I'm attempting to shut
off the \default synth playback using "\degree, Rest()".


You can write 
...
\type, \rest
...


The second concern is that it produces a fair number of "FAILURE IN
SERVER /n_set Node xxxx not found" messages.


Ak ok, the bundling mechanism was only necessary in my example, you don't need to release synth nodes therewith as you are using the ~mainCaller interface !
Probably something like this should do (untested)

~off = { |e| thisThread.clock.sched(e[\dur] * e[\legato], { ~mainCaller.(e.noteConvert, 0) }) }

Regards

Daniel

-----------------------------
http://daniel-mayer.at
-----------------------------