i’ve just barely started to learn SC and what can i say — i’m very excited!
i’m currently learning to use IANNIX to control an SC patch. i catch triggers via OSC with something like this:
so it fires up a synth with a specific pitch in response to the specific trigger number.
the synth has an envelope with doneAction=2 so it disappears from the server as soon as the envelope is finished.
however, the issue is that when i reevaluate this with, for example, a different note number:
Thanks! this way OSCFunc only fires once on the first trigger (which is entirely logical). I, however, need it to handle all the trigger events with the same ID (msg[1]) until i explicitly tell it to stop or change.
You could also try OSCdef instead of OSCFunc. Every time you re-run it with same key (the def’s “name”, first arg), it overwrites the previous definition.