HI, I am using MIDIIn (I have also tried MIDINoteOnResponder/MIDINoteOffResponder) to send MIDIOut to another application with IAC. The MIDIIn works fine on its own. Same for MIDIOUt but somehow I cannot get them to work together properly: Any idea why? Cheers ( var inPorts = 2; var outPorts = 2; MIDIClient.init(inPorts,outPorts); inPorts.do({ arg i; MIDIIn.connect(i, MIDIClient.sources.at(i)); }); s = Server.local; s.boot; s.latency = 0; ) m = MIDIOut(0, MIDIClient.destinations.at(0).uid); // this works fine with IAC m.noteOn(1, 65, 70); m.noteOff(1, 65, 70); // this triggers erratically the MIDIOUT to IAC MIDIIn.noteOn = {arg src, chan, num, vel; num.postln; m.noteOn(1, num, vel); }; MIDIIn.noteOff = { arg src,chan,num,vel; num.postln; m.noteOff(1, num, vel); }; /////////////////////////////////////////// |