Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::midi::SynthesiserNote Struct Reference

Per-note metadata maintained by the Synthesiser when a voice is activated. More...

#include <synthesiser.hpp>

Public Attributes

uint8_t channel = 0
 MIDI channel (0–15).
uint8_t note = 0
 MIDI note number (0–127).
uint8_t velocity = 0
 Note-on velocity (1–127; 0 → note off).
int8_t priority = 0
 User-supplied priority for Priority steal.
uint8_t voice_group = 0
 Optional channel-scoped choke group (0 = none).
uint32_t note_id = 0
 Monotonic id; younger > older.
bool active = false
 Voice is sounding (held or releasing).
bool releasing = false
 Note-off received; voice in release tail.
bool sustained = false
 Note-off deferred by sustain pedal (CC64).
bool sostenuto = false
 Note captured by sostenuto pedal (CC66).
bool soft_pedal = false
 Soft pedal (CC67) is active for this note.

Detailed Description

Per-note metadata maintained by the Synthesiser when a voice is activated.

Subclasses read this via voice.note().

Member Data Documentation

◆ active

bool pulp::midi::SynthesiserNote::active = false

Voice is sounding (held or releasing).

◆ channel

uint8_t pulp::midi::SynthesiserNote::channel = 0

MIDI channel (0–15).

◆ note

uint8_t pulp::midi::SynthesiserNote::note = 0

MIDI note number (0–127).

◆ note_id

uint32_t pulp::midi::SynthesiserNote::note_id = 0

Monotonic id; younger > older.

◆ priority

int8_t pulp::midi::SynthesiserNote::priority = 0

User-supplied priority for Priority steal.

◆ releasing

bool pulp::midi::SynthesiserNote::releasing = false

Note-off received; voice in release tail.

◆ soft_pedal

bool pulp::midi::SynthesiserNote::soft_pedal = false

Soft pedal (CC67) is active for this note.

◆ sostenuto

bool pulp::midi::SynthesiserNote::sostenuto = false

Note captured by sostenuto pedal (CC66).

◆ sustained

bool pulp::midi::SynthesiserNote::sustained = false

Note-off deferred by sustain pedal (CC64).

◆ velocity

uint8_t pulp::midi::SynthesiserNote::velocity = 0

Note-on velocity (1–127; 0 → note off).

◆ voice_group

uint8_t pulp::midi::SynthesiserNote::voice_group = 0

Optional channel-scoped choke group (0 = none).


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