Voice ownership and configured per-note expression¶
The explicit portable ravet-instrument crate provides VoiceAllocator<N> with
1..128 fixed slots. It accepts validated short messages, retains channel/key,
velocity/release velocity, held/sustained/released state and expression snapshots,
and returns a changed-slot bitmask plus optional started/stolen voice. The DSP
owner ends release tails with finish; there is no hidden oscillator or envelope.
Polyphonic duplicate notes occupy separate slots; note-off releases the oldest held match. Stealing prefers idle, oldest released, oldest sustained, then oldest held. Age rollover renumbers with bounded stack work, preserving order. Sustain and sostenuto thresholds are 64. CC120 kills immediately; CC123 releases held notes respecting both pedals; CC121 clears relevant controllers and releases sustained notes. Released tails freeze expression. Poly key pressure overrides channel pressure until a new note/controller reset. Unimplemented message semantics are ignored.
MpeZone explicitly selects a lower or upper single zone with 1..15 members.
Zero-based master is 0 or 15. Master notes and notes outside the zone are ignored.
Member bend/pressure/CC74 timbre update per-note expression; master bend is additive
and master sustain/sostenuto affect the zone. Bend ranges are explicit finite 0..96
semitones (typical member 48/master 2); endpoints map to exact bipolar ranges.
Channel reuse releases earlier held/sustained notes and freezes their expression,
allowing a new note while old release DSP tails finish. This is explicit receiver
policy, not complete MPE conformance. The static allocator ignores RPN. Opt-in single-zone negotiation is described
below; overlapping zones and MIDI-CI remain pending. Separate master pressure/timbre
snapshots are available; the DSP owner chooses their combination with members. The
MIDI Association overview
describes the master/member distinction; the supplied static configuration
must match the sender.
Tests exercise duplicate-note ownership, sustain/release, priority stealing, pressure retention, frozen tails, lower/upper filtering, master/member bend, channel reuse, reset and age rollover. 10000 prepared workloads and the rollover fixture count no Rust allocation/deallocation. No controller hardware, synthesis product or instrument-format export is validated. See decision 0027.