2015-09-10 22:00:52 +02:00
|
|
|
//~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;
|
2015-09-11 20:22:39 +02:00
|
|
|
//postln(">>> sending: /ctlin " + val2 + " " + val1);
|
2015-09-10 22:00:52 +02:00
|
|
|
|
|
|
|
// we need to send /ctlin CCnum CCvalue
|
|
|
|
~zarquOsc.sendMsg("/ctlin", val2, val1);
|
|
|
|
|
|
|
|
|
|
|
|
}, (0..127)); // match all cc (from 1..127)
|
|
|
|
|
|
|
|
// testing testing
|
2015-09-11 20:22:39 +02:00
|
|
|
//~zarquOsc.sendMsg("/sc", "testingmount", 10);
|