Skip to main content

Module note_allocation

Module note_allocation 

Source
Expand description

MPE note allocation โ€” assign incoming notes to member channels, rotating.

In MPE each sounding note gets its own member channel so its per-note expression is independent. MpeNoteAllocator hands each new note the next free member channel using a rotating cursor (round-robin), which spreads successive notes across channels โ€” the standard way to avoid immediately reusing a just-released channel and to keep pitch-bend glide artifacts apart. Occupancy is a fixed [Option<u8>; 16] table indexed by channel, so allocation and release are allocation-free and safe on the real-time thread.

Structsยง

MpeNoteAllocator
Rotating (round-robin) allocator of member channels to active notes.