[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] NoteOnResponder



hi,

i'm working on creating a system with midi responders, but i can't seem to get it going.

i'm testing it using the internal IAC bus (sending midi from keystrokes generated in another program).

this works:
MIDIIn.noteOn =
	{
	arg src, chan, num, vel;
	[chan,num,vel].postln;		
	};

but this doesn't:
NoteOnResponder({ |src, chan, num, vel| [src, chan, num, vel].postln }, nil, nil, nil, nil, true);

what am i missing here?

basically, what i want to do is being able to respond to certain midi messages and update textfields or other screen elements. (when i gave up temporarily on the NoteOnResponder i tried it with the midiin, but there i can't seem to be allowed to set values on textfields from within the MIDIIn...).

thanks!
robert


{ Robert van Heumen , { STEIM } , { electric music } , {
http://steim.nl/, http://hardhatarea.com/,
http://humanelectric.net/, http://n-collective.com/,
http://umatic.nl/SKIF++/ } }