Last active
January 26, 2019 21:07
-
-
Save caseyanderson/43b2e0bea118f7525a05f7ba6baf6d66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Filter MIDI Messages by srcID | |
// (example) | |
s.boot; | |
MIDIIn.connectAll; | |
~organPort = MIDIIn.findPort("QuNexus", "Port 1"); | |
~buttonPort = MIDIIn.findPort("Midi Fighter 3D", "Midi Fighter 3D"); | |
~twisterPort = MIDIIn.findPort("Midi Fighter Twister", "Midi Fighter Twister"); | |
~organOn = MIDIFunc.noteOn({ |velo, key, chan, srcID| | |
"organ source = ".post; srcID.asHexString.postln; | |
// process data | |
}, srcID: ~organPort.uid); | |
~buttonCC = MIDIFunc.cc({ |velo, key, chan, srcID| | |
"button source = ".post; srcID.asHexString.postln; | |
// process data | |
}, srcID: ~buttonPort.uid); | |
~twisterCC = MIDIFunc.cc({ |velo, key, chan, srcID| | |
"twister source = ".post; srcID.asHexString.postln; | |
// process data | |
}, srcID: ~twisterPort.uid); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment