MIDIIn.connect;
MIDIClient.sources;
MIDIIn.control = { arg src, chan, num, val; [chan,num,val].postln; };

x = { arg freq=540; SinOsc.ar(freq)}.play;
MIDIIn.control = {arg src, chan, num, val; x.set(\freq, val * 4.0);}

MIDIIn.control = { arg src, chan, num, val; if(num == 16,{val.postln;})};

x = { arg freq=540; SinOsc.ar(freq)}.play;

MIDIIn.control = { arg src, chan, num, val; if(num == 16,{x.set(\freq, val * 4.0);})};

(
x = { arg freq=540; SinOsc.ar(freq)}.play;
y = { arg freq=540; SinOsc.ar(freq)}.play;
MIDIIn.control = { arg src, chan, num, val; if(num == 16,{x.set(\freq, val * 4.0);}); if(num == 17,{y.set(\freq, val * 4.0)});};
)