drumstick 2.9.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 More... | |
virtual void | noteOff (const int note, const int vel)=0 |
noteOff handles MIDI note off events More... | |
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 PianoKeybd::setPianoHandler() and can be retrieved using PianoKeybd::getPianoHandler(). This mechanism is an option alternative to proces signals PianoKeybd::noteOn() and PianoKeybd::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 |