Hi there -
I’m a little unsure about how to implement this…
I have a basic OSCFunc. It reads a randomly generated number (from a Synth) and uses that number to correspond with triggering a Pbind. It essentially looks like this:
(
o = OSCFunc({ |msg|
msg[3].postln;
case
{msg[3] == 1.0}{~firstone.play}
{msg[3] == 2.0}{~secondone.play}
{msg[3] == 3.0}{~thirdone.play}
}, ‘/someNumbers’);
~firstone, ~secondone, ~thirdone are the Pbinds that it instantiates.
This all works fine in real-time, but I’d like to add it to a NRT score and can’t quite figure out where to start…