Repository navigation
Listen to a pattern through its samples - #22
Merged
Merged
Conversation
Play (Space, or Shift-Space from the cursor's row) loops the pattern on screen through the loaded samples and highlights the row being heard. It follows edits, tempo and a pattern switch while it plays. Clicking a step plays it, clicking a row number plays the row, and typed notes sound as they go in. The sound comes from PreviewRenderer in the core: notes, instruments, OFF/FAD/CUT and the Volume, Chance, Micro-move, Panning, Tune, Micro-tune and Reverse effects, through each instrument's volume, panning, tuning, start and end points. A sample plays at its own pitch on raw note 60, the Tracker's C5. Timing runs on whole frames, so block size never moves a note. MIDI and synth instruments stay silent, and so do the effects the preview does not model. The app renders blocks on a queue of its own and lets go of audio output after twenty idle seconds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Lets you hear a pattern through its loaded samples before it goes to the card, and hear a single step by clicking it.
What it does
What it plays
A preview, not the Tracker's sound engine.
PreviewRenderer(new, inPatternautCore/Playback) plays notes and their instruments, OFF / FAD / CUT, and the Volume, Chance, Micro-move, Panning, Tune, Micro-tune and Reverse effects. Each instrument's volume, panning, tune, finetune and start/end points apply. Tracks play one note at a time, and a note without an instrument plays 00, the way the card stores it.Not heard: filters, sends, LFOs, slides, glide, rolls, arps, random effects, gate length, overdrive, bit depth, loops, slices, granular. MIDI and synth instruments are silent.
Two choices worth checking against a Tracker:
How it is built
Checked
swift test: 156 tests pass, 16 of them new for the renderer (pitch, timing, volume, Chance, note-offs, takeover, loop, block boundaries, Micro-move, panning, tune, reverse, click audition,.ptidecoding).Before a release
🤖 Generated with Claude Code