IF3Si/scd/midiosc.scd

27 lines
521 B
Plaintext

//~p5osc = NetAddr.new("zarquon", 12000);
// midi init
//MIDIIn.connectAll;
//MIDIClient.init(1,1);
//MIDIClient.sources;
// try to connect midi
var midiFunc;
MIDIIn.connect("Renoise MIDI Output", "SuperCollider: in0");
midiFunc = MIDIFunc.cc({
arg val1, val2;
//postln(">>> sending: /ctlin " + val2 + " " + val1);
// we need to send /ctlin CCnum CCvalue
~zarquOsc.sendMsg("/ctlin", val2, val1);
}, (0..127)); // match all cc (from 1..127)
// testing testing
//~zarquOsc.sendMsg("/sc", "testingmount", 10);