Skip to main content

Module track

Module track 

Source
Expand description

A fixed-capacity track of timed MIDI events plus a zero-alloc “due window” iterator.

TimedEvent is a small Copy POD — (tick, status, data1, data2) — the generic event currency this lane uses so it never depends on another lane’s uncommitted types. A Track stores up to N of them on the stack, kept sorted by tick, and Track::due_window yields exactly the events whose tick falls in a half-open [start, end) window, in order. The iterator borrows the track and allocates nothing, so it is safe to call every audio block on the real-time thread.

Structs§

DueWindow
Zero-alloc iterator over the events of a Track due in [start, end).
TimedEvent
A single timed MIDI event: a status byte + up to two data bytes, at an absolute tick position. All-integer and Copy, so it is torn-read-safe to move through the super::event_ring::EventRing.
Track
A fixed-capacity, tick-sorted track of N events.