|
Vital
|
An interface for handling MIDI note events within a synthesizer or audio system. More...
#include <note_handler.h>
Public Member Functions | |
| virtual | ~NoteHandler () |
| Virtual destructor. | |
| virtual void | allSoundsOff ()=0 |
| Immediately turns off all sounding notes and stops all sound production. | |
| virtual void | allNotesOff (int sample)=0 |
| Turns off all currently active notes, optionally specifying a sample index for timing. | |
| virtual void | allNotesOff (int sample, int channel)=0 |
| Turns off all currently active notes on a specific MIDI channel, optionally specifying a sample index. | |
| virtual void | noteOn (int note, mono_float velocity, int sample, int channel)=0 |
| Handles a MIDI note-on event, starting a note with a specified velocity and timing. | |
| virtual void | noteOff (int note, mono_float lift, int sample, int channel)=0 |
| Handles a MIDI note-off event, releasing a currently active note. | |
An interface for handling MIDI note events within a synthesizer or audio system.
The NoteHandler interface provides methods to respond to note-on and note-off events from MIDI, as well as commands to release all active notes and silence all sounds. Classes implementing this interface can manage voice allocation, envelope triggering, and other note-related behaviors in response to incoming MIDI data.
|
inlinevirtual |
Virtual destructor.
|
pure virtual |
Turns off all currently active notes, optionally specifying a sample index for timing.
| sample | The sample index at which to turn off notes. |
Implemented in vital::SoundEngine, vital::SoundEngine, and vital::VoiceHandler.
|
pure virtual |
Turns off all currently active notes on a specific MIDI channel, optionally specifying a sample index.
| sample | The sample index at which to turn off notes. |
| channel | The MIDI channel for which to turn off notes. |
Implemented in vital::SoundEngine, vital::SoundEngine, and vital::VoiceHandler.
|
pure virtual |
Immediately turns off all sounding notes and stops all sound production.
Implemented in vital::SoundEngine, vital::SoundEngine, and vital::VoiceHandler.
|
pure virtual |
Handles a MIDI note-off event, releasing a currently active note.
| note | The MIDI note number (0-127). |
| lift | The release velocity (0.0 to 1.0). |
| sample | The sample index at which the note-off occurs. |
| channel | The MIDI channel on which the note-off occurred. |
Implemented in vital::EffectsModulationHandler, vital::SoundEngine, vital::SoundEngine, vital::SynthVoiceHandler, and vital::VoiceHandler.
|
pure virtual |
Handles a MIDI note-on event, starting a note with a specified velocity and timing.
| note | The MIDI note number (0-127). |
| velocity | The velocity of the note-on event (0.0 to 1.0). |
| sample | The sample index at which the note-on occurs. |
| channel | The MIDI channel on which the note-on occurred. |
Implemented in vital::EffectsModulationHandler, vital::SoundEngine, vital::SoundEngine, vital::SynthVoiceHandler, and vital::VoiceHandler.