MIDIFuncChanArrayMessageMatcher:
Filter:
Classes | External Control > MIDI > Matchers

MIDIFuncChanArrayMessageMatcher : AbstractMessageMatcher : Object

Matches incoming MIDI messages to responder funcs based on message channel

Description

This is used by MIDIMessageDispatcher to match incoming MIDI messages to instances of MIDIFunc or MIDIdef using MIDI channel (when the MIDIFunc specifies an array of channels). This class is private, and generally users should not need to address instances directly.

Class Methods

MIDIFuncChanArrayMessageMatcher.new(chanArray, func)

Make a new instance.

Arguments:

chanArray

(describe argument here)

func

The Function to evaluate if a match is found.

Returns:

An MIDIFuncChanArrayMessageMatcher.

Inherited class methods

Instance Methods

.value(value, num, testChan, srcID)

Check to see if a message matches, and evaluate func if it does.

Arguments:

value

The message value (e.g. velocity, etc.) of the MIDI message as an Integer. Note this should be in the range 0-127.

num

The message number (e.g. note number, etc.) of the MIDI message as an Integer. Note this should be in the range 0-127.

testChan

The channel number of the MIDI message as an Integer. Note this should be in the range 0-15.

srcID

The UID of the source of the MIDI message as an Integer.

Inherited instance methods