|
DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
|
The notes a backend has delivered as sounding, per channel and key, with the host note id each started with. More...
#include <DSParkPlugin.h>
Public Member Functions | |
| void | clear () noexcept |
| void | noteOn (int channel, int key, int32_t noteId) noexcept |
| void | noteOff (int channel, int key) noexcept |
| int32_t | noteIdOf (int channel, int key) const noexcept |
| template<typename Off > | |
| void | releaseMatching (int channel, int key, int32_t noteId, Off &&off) noexcept |
The notes a backend has delivered as sounding, per channel and key, with the host note id each started with.
CLAP addresses notes by (channel, key, note id) where any part may be the wildcard -1: a NOTE_OFF or NOTE_CHOKE with key -1 means "every matching voice". MidiEvent carries one key, so the backend expands such an event into one NoteOff per sounding note it matches - exactly the notes the plugin was told about. Not thread-safe: the audio thread owns it.
Definition at line 1156 of file DSParkPlugin.h.
|
inlinenoexcept |
Definition at line 1159 of file DSParkPlugin.h.
|
inlinenoexcept |
The host note id the note at (channel, key) last started with (-1 when none, or for an address out of range).
Definition at line 1181 of file DSParkPlugin.h.
|
inlinenoexcept |
Definition at line 1172 of file DSParkPlugin.h.
|
inlinenoexcept |
Definition at line 1164 of file DSParkPlugin.h.
|
inlinenoexcept |
Calls off(channel, key) for every sounding note matching the (channel, key, noteId) address, each part -1 for "any", and forgets those notes.
Definition at line 1191 of file DSParkPlugin.h.