Hey,
I have a SynthDev and a Pdef playing a pattern with the SynthDev. The SynthDev’s envelope frees the Dev’s node, after release time (doneAction: 2). When the pattern repeats the SynthDev sound faster than its release time, I have obviously multiple nodes with the same name and unique id on the server.
I need to write a function to find out, if there is another node existing on a server with the same name (but different id). This function should be executed from within the SynthDev. If the answer is true, the Synth Dev should ask itself, if it is the “last” node on the server.
I need this, because I’m sending the SynthDef’s envelope via OSC. But when two SynthDef nodes are active at the same time, they both send out their envelope with the same OSC address. But I just want to send the envelope of the last activated SynthDef.
I guess I have to work with the
s.queryAllNodes
but I don’t know how to go forther…??