Is there currently a way to send an OSC message from directly within a script?
something along the lines of
iannix.execute(sendMessage osc://127.0.0.1:52170/foo/bar 1 2 3)
I’m planning to write scores for synths I’m building in PD but I’d like to be able to send messages to set them up before the score starts playing. I guess that it would be possible to either add the messages to the transport or set up a trigger but that feels a bit inelegant for messages that I only want to send once.
i don’t know if this is what you mean, but i have experimented creation of a score sending
OSC messages from a script (a Lua script). After that should be possible to start the score
sending the message play (but to me don’t work yet, but others reported that work).
It should be also possible to modify the score while is running (but i’m not an expert).
Actually the IanniX way-of-thinking is to create a trigger that is trigged at the beginning of your score and sending your OSC messages.