MidiNoteFunc:
Filter:
QuNeo/Classes (extension) | Hardware > QuNeo

MidiNoteFunc
ExtensionExtension

Used by the QuNeo classes to interface to MIDI Note controls.

Description

Used by the QuNeo classes to interface to MIDI Note controls

Class Methods

.new

Create a new MidiNoteFunc. During regular use this will be called by the QuNeo control classes.

Arguments:

noteNum

MIDI note number for the control.

channel

MIDI channel the control responds to.

scInPort

Port that Supercollider will recieve MIDI data from.

scOutPort

Port that Supercollider will send MIDI data to.

name

Name of the control, used when printing debug info.

Returns:

A new MidiNoteFunc.

Instance Methods

.noteNum

MIDI note number that the control responds to.

.onFunc

A fuction to be called when a MIDI note on message is received. The following values will be passed to the function: val, num, chan, src.

.offFunc

A fuction to be called when a MIDI note off message is received. The following values will be passed to the function: val, num, chan, src.

.name

Name of the control, used when printing debug info.

.channel

MIDI channel the control responds to.

.scInPort

Port that Supercollider will recieve MIDI data from.

.scOutPort

Port that Supercollider will send MIDI data to.

.debug

Allows you to enable or disable debugging for the control. This setting can also be changed on a per datasource basis.

Arguments:

setDebug

Enable debugging? true/false.

Examples