|
Vital
|
Holds state data for a single voice, such as MIDI note, velocity, pitch bend, etc. More...
#include <voice_handler.h>
Public Member Functions | |
| VoiceState () | |
| Default constructor initializes state to neutral or inactive values. | |
Public Attributes | |
| VoiceEvent | event |
| The most recent voice event (on/off/kill). | |
| int | midi_note |
| MIDI note (0-127 usually). | |
| mono_float | tuned_note |
| Possibly adjusted by a Tuning object. | |
| poly_float | last_note |
| Holds the last note played for this voice. | |
| mono_float | velocity |
| Velocity of the note-on event. | |
| mono_float | lift |
| Velocity of the note-off (a.k.a. release velocity). | |
| mono_float | local_pitch_bend |
| Per-voice pitch bend amount for legato-like transitions. | |
| int | note_pressed |
| Pressed note count (e.g., for note priority logic). | |
| int | note_count |
| A global note counter (incremented with each note-on). | |
| int | channel |
| Which MIDI channel this voice is associated with. | |
| bool | sostenuto_pressed |
| True if this voice is currently held by sostenuto pedal. | |
Holds state data for a single voice, such as MIDI note, velocity, pitch bend, etc.
|
inline |
Default constructor initializes state to neutral or inactive values.
| int vital::VoiceState::channel |
Which MIDI channel this voice is associated with.
| VoiceEvent vital::VoiceState::event |
The most recent voice event (on/off/kill).
| poly_float vital::VoiceState::last_note |
Holds the last note played for this voice.
| mono_float vital::VoiceState::lift |
Velocity of the note-off (a.k.a. release velocity).
| mono_float vital::VoiceState::local_pitch_bend |
Per-voice pitch bend amount for legato-like transitions.
| int vital::VoiceState::midi_note |
MIDI note (0-127 usually).
| int vital::VoiceState::note_count |
A global note counter (incremented with each note-on).
| int vital::VoiceState::note_pressed |
Pressed note count (e.g., for note priority logic).
| bool vital::VoiceState::sostenuto_pressed |
True if this voice is currently held by sostenuto pedal.
| mono_float vital::VoiceState::tuned_note |
Possibly adjusted by a Tuning object.
| mono_float vital::VoiceState::velocity |
Velocity of the note-on event.