drumstick 2.9.0
C++ MIDI libraries using Qt objects, idioms, and style.
PianoHandler Class Referenceabstract

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...
 

Detailed Description

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.

Member Function Documentation

◆ noteOff()

virtual void noteOff ( const int  note,
const int  vel 
)
pure virtual

noteOff handles MIDI note off events

Parameters
noteMIDI note number
velMIDI velocity

◆ noteOn()

virtual void noteOn ( const int  note,
const int  vel 
)
pure virtual

noteOn handles MIDI note on events

Parameters
noteMIDI note number
velMIDI velocity

The documentation for this class was generated from the following file: