Skip to main content

MAX_PENDING_OFFS

Constant MAX_PENDING_OFFS 

Source
pub const MAX_PENDING_OFFS: usize = 32;
Expand description

How many sounding notes one track can be holding at once.

Eight lanes of six-note chords is 48, which this does not cover — and deliberately. The table is a safety net for notes whose offs are still in the future, not a voice allocator; the child instrument has its own. When it overflows, the oldest note is forced off and its slot reused, which is the one behaviour that cannot leave a note sounding forever.