Skip to content

0021: the stock sample player skips voices under Sidecar machines (for 0.5.2) - #22

Merged
trigcondition merged 1 commit into
devfrom
fix/sample-skip-052
Nov 22, 2026
Merged

trigcondition merged 1 commit into
devfrom
fix/sample-skip-052

Conversation

@trigcondition

Copy link
Copy Markdown
Owner

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.

  • The sample layer is muted under Sidecar voices (S zeroed before the mixer).
  • sample_render's voice loop skips those voices: no resampling, and the voice is stopped with its filter state cleared, 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.
  • About 2.8 M instructions/s freed per Sidecar voice (emulator); the browsing deficit at the CPU-saturated setting goes to 0.

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

…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.
@trigcondition
trigcondition merged commit 16cec93 into dev Nov 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant