![]() |
drumstick 2.10.0
C++ MIDI libraries using Qt objects, idioms, and style.
|
The PianoHandler class callbacks. More...
#include <pianokeybd.h>
Public Member Functions | |
virtual void | noteOn (const int note, const int vel)=0 |
noteOn handles MIDI note on events | |
virtual void | noteOff (const int note, const int vel)=0 |
noteOff handles MIDI note off events | |
The PianoHandler class callbacks.
This class provides handler methods for note events. This class must be inherited and implemented by a program using also PianoKeybd to receive the note events generated from a computer keyboard, mouse or touch events. It is provided using the method setPianoHandler() and can be retrieved using getPianoHandler(). This mechanism is an option alternative to proces signals noteOn() and noteOff() .
Definition at line 83 of file pianokeybd.h.
|
pure virtual |
noteOff handles MIDI note off events
note | MIDI note number |
vel | MIDI velocity |
|
pure virtual |
noteOn handles MIDI note on events
note | MIDI note number |
vel | MIDI velocity |