Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: MIDI displayer/debugger
name
code content
// A simple script to help you get started with midi controllers // It will dump midi note on, off, and continuous control messages // initialize the midi client MIDIClient.init; // connect all the possible inputs MIDIIn.connectAll; // if we receive a midi on message, display some data about it including velocity, note number, channel, and source MIDIdef.noteOn(\noteOnFunc, { arg vel, nn, chan, src; [vel, nn, chan, src].postln; }); // same for note off MIDIdef.noteOff(\noteOffFunc, { arg vel, nn, chan, src; [nn, chan, src].postln; }); // handle continuous control messages MIDIdef.cc(\ccFunc, { arg ccNum, chan; //print the num & chan [ccNum, chan].postln; });
code description
Get started using midi controllers with this script to easily output note on/off and continuous controller messages.
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change