Repository navigation
Conversation
The engine held the editor's keys for one track at a time (aud_held, aud_track), so a key for a second track released the first, and a key held while tracks were moved, deleted, grouped, duplicated or inserted above it released at its old index and stuck. Each track now keeps its own keys (Track.keys_held), and every edit that renumbers tracks remaps them through tracksRenumbered, along with the engine's queued key events. Stopped with keys on several tracks, audition renders the whole graph, and the never-quiet ring limit counts from the last release, so a key held past RING_MAX_S keeps its tail. No input plays two tracks at once yet; this is the engine side any such routing needs, whatever the protocol. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The engine kept the editor's held keys for one track at a time (
aud_held,aud_track). Each track now keeps its own (Track.keys_held), and they follow the track when tracks are renumbered.Two bugs this fixes on master today:
tracksRenumberedwith their old-to-new map. It remaps the engine's queued key events and the keys main holds.RING_MAX_S) counted from the stop. A key held past it was cut the moment it let go. The limit now counts from the last release.Stopped with keys on several tracks, audition renders the whole graph, as it already does for a track feeding a bus.
No input plays two tracks at once yet. This is the engine side any such routing needs, whatever MIDI protocol sits in front of it. The source routing that follows builds on it.
Testing.
zig build testpasses. New tests cover keys on two tracks at once, a release queued before tracks renumber, a track deleted or inserted above the held one, and a release tail after a hold past the ring limit. The headless bench (--all --check --no-sheets) is bit-exact on every golden.🤖 Generated with Claude Code