Skip to content

Instantly share code, notes, and snippets.

@iani
Last active June 7, 2019 16:16
Show Gist options
  • Save iani/b65e35d86698680e48ce7b301b4d7473 to your computer and use it in GitHub Desktop.
Save iani/b65e35d86698680e48ce7b301b4d7473 to your computer and use it in GitHub Desktop.
polling kr ugens to send to midi
// =====================================================================
// SuperCollider Workspace
// =====================================================================
//:
{
var src;
src = LFSaw.kr(0.2).range(360, 1000);
SendTrig.kr(Impulse.kr(10), 0, src);
}.play;
//:
OSCFunc({ | msg |
// write the right midi out stuff here ... MIDI.cc()
/// msg[3].postln;
}, '/tr')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment