Repository navigation
guide transport
Working manual · 0.0.1-alpha · source snapshot 16 November 2026
Each lane loops through its own contiguous occupied Song region. Blank cells are boundaries. On a fresh Song Start, a lane blank at the cursor searches backwards for its nearest earlier Chain; without one it stays silent. That fallback chooses the initial position only: normal looping does not search across gaps. Lanes advance at their own Chain boundaries.
Start pauses running playback. The next Start uses the current editing cursor rather than promising a resume from the paused instant. L2+Start sets an explicit session start marker; R2+Start clears it. Up+Start cues a fresh region request. Playback does not move the editing cursor.
core/tracker/NoteEventResolver.hpp owns note classification, PlaybackNoteState, and
exclusive-ended ResolvedNoteSpan values. Resolving a timeline replays the same
incremental state machine a sequencer uses. EMPTY has no gate action. Onset replaces
the current logical note; OFF releases it; CUT stops it. Instrument-only events
update channel instrument memory for later onsets. Resolved spans retain the onset
instrument namespace and pitch, including that slot's transpose. Transpose changes
in later slots do not retune a carried note. Voice allocation and release tails
are deliberately absent from this API.
advance must be called in increasing order for every step. It returns an optional
ended span and a started flag; active() identifies the new logical note. A future
sequencer should dispatch the end first (release/cut/replace according to the
reason), then allocate/retrigger via its bounded pool. Reset state on restart or
reconstruct it from preceding events on seek; call finish at the chosen sequence
boundary. Pause must not be implemented by feeding empty rows as note-offs.
The API does not allocate, scan ahead, touch SDL, log, lock or access files.
The first audio playback engine (repository reference: audio-playback.md) now consumes this API directly
and maps transitions to a bounded sample voice pool.
ProjectManager owns ResolvedNoteCache. It lazily rebuilds only a requested chain
or standalone phrase when the document revision changes; changing Song position
also invalidates the chain key. Vectors retain capacity. A chain resolve scans at
most 256 authored steps and never scans the entire Song. The cache is main-thread
derived data, not persistent project state or an audio-thread data structure.
Editors must continue to mark actual mutations dirty. This covers deletion,
insertion, paste, undo, TEMP, assignments and project replacement.
Phrase opened from Roll stores track/slot context and reads the same cached spans
as Roll, clipped to its visible sixteen steps. Resume restores this context from
the existing Roll cursor fields without changing the resume format. If the context
no longer references that phrase, it falls back to isolated Phrase resolution.
Phrase contour modulation remains a bounded visual-only sampler; its logical gate
comes from the resolved spans. ARP/RET subdivisions remain visual fixture effects,
not an audio implementation. The tracker strip marks derived rows with muted ~~~;
authored OFF and CUT remain distinct. Contour handles come only from stored fields.
note_events tests event endings, incremental/visual equivalence, boundary carry,
transpose, inherited instruments, cache invalidation, authored-only editing and
CUT schema compatibility. Existing editor and persistence tests cover transaction
and file behavior. See CTP v6 (repository reference: file-formats/project-v6.md) for wire semantics.
note_event_render renders both scenes with a software renderer and checks pixels
before/after OFF and CUT, incoming continuation, and the Roll phrase seam. It saves
build/note-events-phrase.bmp, build/note-events-incoming.bmp,
build/note-events-roll.bmp and build/note-events-boundary.bmp for inspection.
These are scene-only fixtures; the application composes its HUD separately.
| Documentation still to add |
|---|
| Annotated current-build screenshots and a recorded controller walkthrough for this topic. |
Repository sources used for this page:
docs/note-events.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.