|
arduino-midi
|
MidiAction which can be defined with the help of callback methods. Events without a callback are ignored. If no 14 bit pitch bend callback is defined, pitch bend is reported with 7 bit resolution to the onPitchBend callback. More...
#include <MidiCallbackAction.h>
Public Member Functions | |
| virtual void | onChannelPressure (uint8_t channel, uint8_t pressure) |
| Channel pressure (aftertouch for the whole channel): 0..127. | |
| virtual void | onControlChange (uint8_t channel, uint8_t controller, uint8_t value) |
| Control change: see MidiControlChange.h for the controller numbers. | |
| virtual void | onNoteOff (uint8_t channel, uint8_t note, uint8_t velocity) |
| Note off (also called for a note on with velocity 0) | |
| virtual void | onNoteOn (uint8_t channel, uint8_t note, uint8_t velocity) |
| Note on with a velocity > 0. | |
| virtual void | onPitchBend (uint8_t channel, uint8_t value) |
| virtual void | onPitchBend14 (uint8_t channel, uint16_t value) |
| virtual void | onPolyPressure (uint8_t channel, uint8_t note, uint8_t pressure) |
| Polyphonic key pressure (aftertouch for an individual note): 0..127. | |
| virtual void | onProgramChange (uint8_t channel, uint8_t program) |
| Program change: program 0..127. | |
| virtual void | setCallbackOnChannelPressure (void(*callback)(uint8_t channel, uint8_t pressure)) |
| Defines the callback for channel pressure. | |
| virtual void | setCallbackOnControlChange (void(*callback)(uint8_t channel, uint8_t controller, uint8_t value)) |
| Defines the callback for control change. | |
| virtual void | setCallbackOnNoteOff (void(*callback)(uint8_t channel, uint8_t note, uint8_t velocity)) |
| Defines the callback for note off. | |
| virtual void | setCallbackOnNoteOn (void(*callback)(uint8_t channel, uint8_t note, uint8_t velocity)) |
| Defines the callback for note on. | |
| virtual void | setCallbackOnPitchBend (void(*callback)(uint8_t channel, uint8_t value)) |
| Defines the callback for pitch bend with 7 bit resolution: 0..127, center is 64. | |
| virtual void | setCallbackOnPitchBend14 (void(*callback)(uint8_t channel, uint16_t value)) |
| Pitch bend with full 14 bit resolution: 0..16383, center is 8192. | |
| virtual void | setCallbackOnPolyPressure (void(*callback)(uint8_t channel, uint8_t note, uint8_t pressure)) |
| Defines the callback for polyphonic key pressure. | |
| virtual void | setCallbackOnProgramChange (void(*callback)(uint8_t channel, uint8_t program)) |
| Defines the callback for program change. | |
| virtual void | setCallbacks (void(*callbackOnNoteOn)(uint8_t channel, uint8_t note, uint8_t velocity), void(*callbackOnNoteOff)(uint8_t channel, uint8_t note, uint8_t velocity), void(*callbackOnControlChange)(uint8_t channel, uint8_t controller, uint8_t value)=nullptr, void(*callbackOnPitchBend)(uint8_t channel, uint8_t value)=nullptr) |
Protected Attributes | |
| void(* | callbackOnChannelPressure )(uint8_t channel, uint8_t pressure) = nullptr |
| void(* | callbackOnControlChange )(uint8_t channel, uint8_t controller, uint8_t value) = nullptr |
| void(* | callbackOnNoteOff )(uint8_t channel, uint8_t note, uint8_t velocity) = nullptr |
| void(* | callbackOnNoteOn )(uint8_t channel, uint8_t note, uint8_t velocity) = nullptr |
| void(* | callbackOnPitchBend )(uint8_t channel, uint8_t value) = nullptr |
| void(* | callbackOnPitchBend14 )(uint8_t channel, uint16_t value) = nullptr |
| void(* | callbackOnPolyPressure )(uint8_t channel, uint8_t note, uint8_t pressure) = nullptr |
| void(* | callbackOnProgramChange )(uint8_t channel, uint8_t program) = nullptr |
MidiAction which can be defined with the help of callback methods. Events without a callback are ignored. If no 14 bit pitch bend callback is defined, pitch bend is reported with 7 bit resolution to the onPitchBend callback.
by Phil Schatzmann
|
inlinevirtual |
Channel pressure (aftertouch for the whole channel): 0..127.
Reimplemented from midi::MidiAction.
|
inlinevirtual |
Control change: see MidiControlChange.h for the controller numbers.
Implements midi::MidiAction.
|
inlinevirtual |
Note off (also called for a note on with velocity 0)
Implements midi::MidiAction.
|
inlinevirtual |
Note on with a velocity > 0.
Implements midi::MidiAction.
Pitch bend with 7 bit resolution (MSB only): 0..127, center is 64. Called by the default implementation of onPitchBend14()
Implements midi::MidiAction.
|
inlinevirtual |
Pitch bend with full 14 bit resolution: 0..16383, center is 8192. The default implementation forwards the MSB to onPitchBend()
Reimplemented from midi::MidiAction.
|
inlinevirtual |
Polyphonic key pressure (aftertouch for an individual note): 0..127.
Reimplemented from midi::MidiAction.
|
inlinevirtual |
Program change: program 0..127.
Reimplemented from midi::MidiAction.
|
inlinevirtual |
Defines the most important callbacks at once: the program change, pressure and 14 bit pitch bend callbacks can be defined with the individual setters