Repository navigation
reference lanes voices
Working manual · 0.0.1-alpha · source snapshot 16 November 2026
For a staged twelve-lane Roll screenshot, run
Contour.exe --colour-roll-demo --roll --snapshot roll-colour.bmp.
This isolated fixture assigns drums, synths and tracker FX to lanes 01–08,
and dedicated visual instruments V0–V3 to lanes 09–12, using existing tags
and semantic theme colours. Add --song instead of --roll to inspect the
same Song assignments. The fixture is ignored outside isolated snapshot mode
and with --resume-snapshot; it never writes a user project.
Contour reserves twelve tracker lanes in the portable core. core/tracker/TrackerLanes.hpp
defines MAX_TRACKER_LANES = 12, DEFAULT_ACTIVE_TRACKER_LANES = 8,
VOICES_PER_TRACKER_LANE = 1 and TRACKER_VOICE_CAPACITY = 12.
ProjectData::trackerLanes enables a contiguous prefix, defaulting to lanes 1–8 in the data type; ProjectManager enables all twelve for new documents.
All internal lane indices are zero-based.
VoicePool is the allocation and mixing facade, with strictly disjoint ranges:
| Owner | Reserved voices | Stealing |
|---|---|---|
| Each tracker lane | 1 sample voice | New trigger replaces that lane’s previous sample |
| Twelve tracker lanes | 12 sample voices total | No borrowing between lanes |
| Synth allocation | 12 synth voices total | Within synth capacity and per-instance limits |
| Audition | 6 independent preview voices | Separate bounded chord-preview allocation |
Synth slots occupy facade records 0–11. Tracker records follow, ordered by lane
then voice. The last six records belong to audition. Backends receive local slot
indices: synth 0–11, sampler lane, audition 0–5 in its separate
sampler backend. Callers must use Voice::slot to inspect backend state rather
than assuming facade indices equal backend indices.
Sample definitions remain shared; voices own independent playheads, envelopes and filter state. Each lane is monophonic: a new sample trigger replaces the previous note, including its release tail. Simultaneous sample chord triggers use the existing deterministic last-trigger-wins allocation; synth chords and six-slot chord audition remain separate. Existing logical note/OFF/CUT/Chain-boundary behavior remains.
Disabled lanes retain their reserved storage but reject sample and synth note events. Allocation cannot borrow their slots. An occupied-slot list supplies rendering and Table updates, so empty reserved slots execute no voice callbacks. Live lane deactivation cuts their voices and clears lane telemetry at snapshot adoption. Synth slots never steal sample voices and vice versa.
The standalone backend APIs remain serialized audio/control APIs. Configure the
pool before issuing events to additional lanes; the engine obtains this configuration
from its prepared PlaybackData. No allocation is performed by voice acquisition,
rendering or configuration changes.
Scheduler arrays, masks and positions have maximum-lane capacity; scheduling and meter accumulation iterate the enabled prefix. Twelve lanes use the same allocator, mixer and four effects buses. Both sample and synth output enter the existing dry/ send paths and stereo master.
Audition uses AUDITION_TRACK = MAX_TRACKER_LANES, outside all tracker indices.
It is dry-only and owns separate capacity; it cannot accidentally become lane 9.
Prepared sample retirement is bounded for the enlarged voice capacity and remains
outside audio.
Synth grouping scratch is bounded by the twelve sounding synth voices, not a dense maximum-lanes × instance-ID matrix. Synth IDs remain 0–15; twelve allocation units and sixteen possible instance IDs are distinct concepts. Legacy synth-grid budgets up to sixteen remain readable and are preserved on disk; new grid allocations and the runtime pool are capped at twelve units.
CTP/CTL v33 (repository reference: file-formats/project-v33.md) preserves all twelve lane slots and the
active prefix. Old files receive eight active lanes and empty reserved data.
Activation changes require preparing/rebinding or publishing a new playback snapshot;
the allocator/mixer/effects topology does not change.
Song, Chain and Roll show all twelve lanes at 640×480. The track monitor, Phrase navigation, mute/solo targeting and saved cursors support lanes 01–12. New projects enable all twelve lanes. Existing projects retain their saved active count; Song's radial menu offers ENABLE 12 LANES, with undo/redo support. Editor bounds respect the active count. Raw ProjectData defaults remain eight lanes for legacy decoding and frozen provenance compatibility.
INST capacity is now one sample voice per lane, twelve total. New triggers replace both held notes and release tails on their own lane. Synth capacity remains twelve shared voices; audition retains six separate slots. Existing files keep their schema and lane IDs, but projects that relied on overlapping samples within one lane now play monophonically. Sample CRD leaves the last generated tone sounding; sequential arpeggiation remains supported.
Validation: the H700 Release ContourStage build succeeded. Nine native Debug suites passed: tracker_lanes, audio, tracker_fx, synth, playback_modes, tables, track_meter, sdl_audio and runtime_stats. The meter test was rebuilt and rerun after replacing its obsolete overlap expectation. Coverage includes release replacement, instrument changes, lane isolation, synth capacity, six-note audition, chord ordering, levels, transport timing and project round trips. Handheld playback/listening is still needed.
| Documentation still to add |
|---|
| Annotated current-build screenshots and a recorded controller walkthrough for this topic. |
Repository sources used for this page:
docs/tracker-lanes.md
This is a documentation/source review, not a new runtime or hardware test. Physical response, screenshots and listening examples still need verification on a recorded build.