Repository navigation
0021: the stock sample player skips voices under Sidecar machines (for 0.5.2) - #22
Merged
Merged
Conversation
…5.2)
The Rytm's stock sample player resampled and filtered every voice every
block, also on voices whose track plays a Sidecar machine, and it could
let a stray Rytm sample sound under a Sidecar machine.
- The sample layer is muted under Sidecar voices (S zeroed before the
mixer, at 0x4012122e).
- sample_render's voice loop skips those voices: the resampler is
skipped (0x4011cc1a) and the voice is stopped with its filter state
cleared (0x4011cd46, then 0x4011cf5a so the ACC clear runs), as a
stock stop does. Only voices whose owner track runs a Sidecar machine
are marked; stock tracks, voices shared with a stock track (CH/OH) and
the kept layers behave as before.
- Frees about 2.8 M instructions/s per Sidecar voice (emulator) and
removes the lag when browsing the machine list on a playing Sidecar
track.
Design: mods/0021-ext/design.md ("0.5.2: the sample player skips Sidecar
voices"). Tests: us smpcpu, smplayer, smpvoices, smpnoise, smpswitch,
smpseq, smplong; emulator measurement scripts (lag, machine-list lag,
soak, key timing, host cost, boot) under tools/emu.
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.
Rytm firmware fix for 0.5.2, OS 1.74.
The Rytm's stock sample player resampled and filtered every voice every block, also on voices whose track plays a Sidecar machine. That cost CPU the Rytm does not have to spare (the lag when scrolling the machine list on a playing Sidecar track) and could let a stray Rytm sample sound under a Sidecar machine.
Addresses and design: mods/0021-ext/design.md, "0.5.2: the sample player skips Sidecar voices".
Tests: new
us smpcpu(fails on the base), smplayer, smpvoices, smpnoise, smpswitch, smpseq, smplong pass. Full suites on the test build: all pass except the known rled stockupkeys UP+RECORD / UP+PLAY CLASH pair. 1.74 port check and crosscheck clean; flash rehearsals 9/9 (stock -> new, new -> stock, 0.5.0 -> new).Hardware: flashed on a real Rytm (test build with the same Rytm code): machine-list browsing smooth, Sidecar engines on 8 tracks with p-locks responsive, no stray samples, stock tracks keep their samples, no clicks when switching machines.
Also adds the emulator measurement scripts used to find and check this (lag, machine-list lag, soak, key timing, host cost, boot), excluded from the suite picker.
🤖 Generated with Claude Code