CCResponder

see also MIDIResponder

CCResponder(function, src, chan, num, value, install = true,swallowEvent = false)

src

chan

num

value

these are all values to match by.

number : match this number

nil: match anything (wildcard)

function: evaluate the function

(

c = CCResponder({ |src,chan,num,value|

[src,chan,num,value].postln;

},

nil, // any source

nil, // any channel

nil, // any CC number

nil // any value

)

)

c.remove

(

c = CCResponder({ |src,chan,num,value|

[src,chan,num,value].postln;

},

nil, // any source

nil, // any channel

80, // CC number 80

{ |val| val < 50 } // any value less than 50

)

)

c.remove

CCResponder.removeAll