Skip to content

Instantly share code, notes, and snippets.

@zepadovani
Created October 19, 2023 16:38
Show Gist options
  • Save zepadovani/7c5dd1eff0416dd0b6d00bccd9b097b1 to your computer and use it in GitHub Desktop.
Save zepadovani/7c5dd1eff0416dd0b6d00bccd9b097b1 to your computer and use it in GitHub Desktop.
SuperCollider, receive osc with any path pattern
// By using this, it is possible to get all messages coming in a specific port
thisProcess.openUDPPort(9000);
(
f = { |msg, time, replyAddr, recvPort|
msg.postln;"Working with any OSC path".postln;
};
thisProcess.addOSCRecvFunc(f);
);
// stop posting.
thisProcess.removeOSCRecvFunc(f);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment