Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5fc6108
Rytm base: the lean engine zeroes an idle sample voice's output every…
npp1993 Dec 2, 2026
01738b9
Rytm base: pin the release packages' import record to 5fc610861
npp1993 Dec 2, 2026
35907b8
Rytm base: the site's catalog serves the new release packages (plain …
npp1993 Dec 2, 2026
5df9e84
Runtime loader and upload controller to GPL-2.0-or-later (rides Octat…
npp1993 Dec 2, 2026
776a968
Merge branch 'claude/runtime-gpl2' into claude/rytm-release-loader
npp1993 Dec 2, 2026
50576a6
Rytm base: release bases carry the runtime loader again, now that sdk…
npp1993 Dec 2, 2026
4410f6a
Rytm base: pin the release packages' import record to 50576a6dd
npp1993 Dec 2, 2026
93e0018
Rytm base: the last text that said release bases have no loader (LINK…
npp1993 Dec 2, 2026
0479d83
Merge pull request #2515 from npp1993/claude/rytm-lean-voice-clear
repeat98 Dec 2, 2026
f2c8d5e
Merge base/analog-rytm-mkii-next into claude/rytm-release-loader
npp1993 Dec 2, 2026
eee1129
Rytm base: pin the release packages' import record to f2c8d5eb8
npp1993 Dec 2, 2026
5e8925c
Rytm base: the FX track's lock words in every variant
npp1993 Dec 2, 2026
76c3ad9
Rytm base: scene and performance locks on FX words 38-41 keep their word
npp1993 Dec 2, 2026
dd272e8
Rytm base: the lock-list guard also takes the first list's loader (0x…
npp1993 Dec 2, 2026
a36dc23
Rytm base: record the release bases with the FX track's lock words in…
npp1993 Dec 2, 2026
957f06c
Improved FX Routing 0.3.0-experimental: LOW MONO on knob F, the delay…
npp1993 Dec 2, 2026
95aa5fc
Improved FX Routing 0.3.0-experimental: the source-only package (7e23…
npp1993 Dec 2, 2026
51196f0
Improved FX Routing 0.3.0-experimental: pin the catalog record to the…
npp1993 Dec 2, 2026
06332e5
Rytm base tests: every variant keeps the FX track's lock words and th…
npp1993 Dec 2, 2026
3eed9c8
Rytm base: the machine page's base footprints (plain 29,215, send-bus…
npp1993 Dec 2, 2026
863cc92
Improved FX Routing 0.3.0-experimental: author-hardware evidence (LMC…
npp1993 Dec 2, 2026
754ab35
Improved FX Routing 0.3.0-experimental: the test procedure's record (…
npp1993 Dec 2, 2026
76faca1
Improved FX Routing 0.3.0-experimental: the vendored catalog test pla…
npp1993 Dec 2, 2026
1176047
Improved FX Routing 0.3.0-experimental: the release record's source f…
npp1993 Dec 2, 2026
d7505e8
Merge pull request #2539 from npp1993/claude/rytm-base-lock-words
npp1993 Dec 2, 2026
32d8bb9
Merge remote-tracking branch 'origin/base/analog-rytm-mkii-next' into…
npp1993 Dec 2, 2026
6ef2aaa
Merge pull request #2541 from npp1993/claude/improved-fx-routing
npp1993 Dec 2, 2026
9e68b14
Merge base/analog-rytm-mkii-next into claude/rytm-release-loader
npp1993 Dec 2, 2026
63fb970
Rytm base: pin the release packages' import record to 9e68b1401
npp1993 Dec 2, 2026
988c534
Merge remote-tracking branch 'origin/main' into claude/base-next-promote
npp1993 Dec 2, 2026
5ada9d0
Rytm guide: the plain release base's size after the lock words joined…
npp1993 Dec 2, 2026
65892e5
Rytm base: the three release identities with the loader ran on a unit…
npp1993 Dec 3, 2026
d68b51e
Merge pull request #2514 from npp1993/claude/rytm-release-loader
npp1993 Dec 3, 2026
9caa0a2
Merge remote-tracking branch 'origin/main' into claude/base-next-promote
npp1993 Dec 3, 2026
f09e8a7
Revert #2514 (release loader) on base-next until Octatrack base 0.8.6…
npp1993 Dec 3, 2026
0395bde
Merge remote-tracking branch 'origin/main' into claude/base-next-promote
npp1993 Dec 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/2026-12-01-rytm-base-lock-words-everywhere.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Analog Rytm MKII base: every variant now saves step locks on the FX track's words 38-41 (the kit's mod storage), not only send-bus, and scene and performance locks on those words now save and load as themselves instead of turning into locks on the delay's TIME. A module that keeps a kit value in one of those words gets parameter, scene and performance locks that survive a save on plain and voices sets. About 1.3 KB more code on plain and voices.
1 change: 1 addition & 0 deletions changelog/2026-12-01-rytm-lean-engine-sample-stream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Analog Rytm MKII base: the lean engine zeroes an idle sample voice's output every audio block, as stock does, instead of leaving it while it was known to hold zeros. A module that shapes the sample stream in place before the voice mixer (Sample Layer's TRANSIENT delay and band) could otherwise hear its own last block again, so a tail looped instead of dying away.
32 changes: 21 additions & 11 deletions sdk/analog-rytm-mkii/modules/audio-in-fx/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# Audio In Routing
# Improved FX Routing

An Analog Rytm MKII mod by Nathaniel Pavel (@npp1993). Version 0.1.0-experimental, OS 1.74 with core-ar2 0.7.
An Analog Rytm MKII mod by Nathaniel Pavel (@npp1993). Version 0.3.0-experimental, OS 1.74 with core-ar2 0.7. Named Audio In Routing until 0.2 (the id stays `audio-in-fx`).

## Overview

On stock the AUDIO IN jacks reach the sampler, its monitor and USB, and EXT IN joins after the distortion. Audio In Routing plays AUDIO IN through the Rytm's own effects.
On stock the AUDIO IN jacks reach the sampler, its monitor and USB, EXT IN joins after the distortion, and the delay and the reverb return in stereo all the way down. Improved FX Routing plays AUDIO IN through the Rytm's own effects, and keeps the effects' low end in the centre.

Two knobs on the FX track's DISTORTION page set where it goes. D (STE, or MNO in mono) puts it in the analog mix before DIST and COMP, beside the drums. E (IFX) sends it to the delay and the reverb at once. They are parallel: what goes to DIST does not reach the effects unless E is up. F stays empty, as on stock.
Three knobs on the FX track's DISTORTION page, beside stock's DEL and REV return routing. D (STE, or MNO in mono) puts AUDIO IN in the analog mix before DIST and COMP, beside the drums. E (IFX) sends it to the delay and the reverb at once. They are parallel: what goes to DIST does not reach the effects unless E is up. F (LMO, LOW MONO) makes both returns mono below a frequency, OFF or 40 to 300 Hz: a ping-pong delay or a wide reverb keeps its width above it, and its bass sits in the middle, where the kick and the bass are.

Both knobs are real stock parameters: they save with the kit and take parameter locks, scene locks and performance locks (Improved Modulation's QPER too) like any FX track parameter. At 0, with nothing locked, the mod changes no audio word.
All three are FX track parameters: they save with the kit and take parameter locks, scene locks and performance locks (Improved Modulation's QPER too). At 0, with nothing locked, the mod changes no audio word.

LOW MONO high-passes the side (L - R) of each return at 12 dB an octave and leaves the mid (L + R) as it was, word for word: the returns sum to mono exactly as on stock, and nothing else moves in phase. It works on stock's delay and reverb and on any block that takes their place.

![The DISTORTION page with STE and IFX on knobs D and E](media/dist-page.png)

Expand All @@ -20,8 +22,9 @@ Both knobs are real stock parameters: they save with the kit and take parameter
| --- | --- | --- |
| STE or MNO | DISTORTION page, knob D | 0 to 127. AUDIO IN into the mix before DIST and COMP. 0 is off, 110 passes the converter's level unchanged, 127 is about 1.33x, +2.5 dB. |
| IFX | DISTORTION page, knob E | 0 to 127. AUDIO IN to both the delay's and the reverb's input, on the same scale. Balance them with the delay's and reverb's own pages. |
| FUNC + turn | D or E on the page | Jumps between 0, 110 and 127, paced as stock's VOL: a quick turn jumps, the next jump comes after about half a second, and slow single clicks do nothing. With a trig held it sets that trig's lock. |
| Trig + turn, scenes, performances | D or E on the page | Stock's own parameter locks, scene locks and performance locks, as on any FX track parameter. |
| LMO (LOW MONO) | DISTORTION page, knob F | OFF, or 40 to 300 Hz in 127 steps (each about 1.6 % above the last). Below it the delay's and the reverb's returns are mono. Turning it on or off fades over about 11 ms; moving it sweeps without clicks. Shown in hertz; in scene and performance mode as a number, as stock shows locks there. |
| FUNC + turn | D, E or F on the page | D and E jump between 0, 110 and 127, F between OFF, 100Hz and 300Hz, paced as stock's VOL: a quick turn jumps, the next jump comes after about half a second, and slow single clicks do nothing. With a trig held it sets that trig's lock. |
| Trig + turn, scenes, performances | D, E or F on the page | Parameter locks, scene locks and performance locks, as on any FX track parameter. |
| Tap of encoder D | The page | Sums AUDIO IN to mono on both paths, and the knob reads MNO, the header Input Mono. Another tap goes back to stereo: STE, Input Stereo. Not saved: it starts stereo. Not with a trig, FUNC or NO held, a pad held in scene or performance mode, nor in running live recording. A hold or a press and turn is not a tap. |

The scale is squared, as stock's levels are, and 110 is the default of stock's VOL parameters. The same knob value runs about 2.5 dB hotter than a stock return, which reaches about 1.0x only near 127.
Expand All @@ -38,33 +41,40 @@ Patch into AUDIO IN L and R, not EXT IN. For the closest to a dry signal, raise
2. Turn D (STE) up: the source plays through COMP and DIST.
3. Raise AMT to drive it. AMT distorts the drums too: DIST is one stage.
4. Turn E (IFX) up to send the source to the delay and the reverb.
5. Turn F (LMO) to 100Hz with a wide delay or reverb playing: the low end of the tails moves to the centre.

### What it overrides and how it hooks in

One stock site: the delay's entry at 0x4010da24, which runs once a block after stock has mixed both sends. Two hidden TEST parameter ids get new names, the FX track's category and the VOL bar's draw callback: 445 points at FX word 29 and 446 at FX word 0, the FX track's only words that stock saves and no stock parameter uses, and 446's default becomes 0. So stock saves, copies, clears, pastes and locks them as its own. The audio reads the engine's words for the two (0x8000fb98 + 2 x word), where stock has already applied parameter, scene and performance locks. One slot of stock's parameter page view (0x401cc3ec, a held trig's turn) goes through the mod so that FUNC + turn on a held trig jumps between the stops; every other id goes on to stock. The names of id 445 are rewritten in the id table for MNO.

LOW MONO (`src/lowmono.s`) takes no stock site. It runs from the core's `ev_render_out`, at the end of the audio block: by then the delay has written its return (0x80007c44) and the reverb its own (0x80007b44), and stock's two return mixers read both only in the next block, so the filter changes what reaches the returns and adds no latency. A delay or reverb block from the base's slots writes the same buffers. A buffer of zeros is left as it is: a resting delay holds its zeros without writing them again, and anything written there would stay. Knob F is hidden id 447, with the FX track's category, AMT's dial and range, and names LMO and Low Mono. Its value lives in one of the FX words 38 to 41, which hold the kit's mod storage: the mod declares a 31-bit kit field, which always contains one whole word, and points id 447 at that word at each project load. The base saves edits of those words into the kit and their step locks with the pattern.

### Changes to stock flows

With both knobs at 0 and nothing locked, the block handler returns before touching a word. Nothing else in stock's flows changes.
With all three knobs at 0 and nothing locked, both handlers return before touching a word. Nothing else in stock's flows changes.

## Compatibility and limitations

- AUDIO IN jacks only. EXT IN is an analog sum after DIST: no firmware switch reaches it.
- DIST is one analog stage, so AMT applies to drums and input alike.
- E feeds the delay and the reverb at one level. A separate reverb level would need a third saved FX word, and the FX track has no more: the base's kit storage (words 38 to 41) is full.
- E feeds the delay and the reverb at one level.
- LOW MONO keeps its value in 31 bits of the kit's mod storage. A set with a send effect (CHORUS, FLANGER and the like) has no room left there, so the set builder refuses Improved FX Routing beside a send effect.
- LOW MONO's parameter locks are saved, and its scene and performance locks survive a power cycle or project load, on Rytm bases after 0.7.1 (the FX track's lock words in every variant, and a guard on stock's kit lock lists, which would otherwise store a lock on words 38 to 41 as one on the delay's TIME). On an older plain or voices base the parameter locks play but are dropped at the next save. The kit value saves on any base.
- LOW MONO filters only the delay's and the reverb's returns: the drums, AUDIO IN through D and EXT IN keep their stereo.
- LOW MONO costs about 1.8 % of the audio block while the effects sound, 0.3 % while both rest and 0.05 % at OFF (rytm-emu counts, not measured on a unit). At OFF it leaves every audio word as stock wrote it.
- Mono is not saved.
- Mono is L + R, so one cable in either jack plays at its level on both sides, and a loud stereo source can clip digitally, ahead of DIST.
- Level, noise and latency have not been measured on a unit. In rytm-emu a sine at -8.7 dBFS on AUDIO IN, D at 110, peaks at 4442 in the analog mix, against 5897 for the default kit's BD, 5362 for SD and 4489 for CH; 127 is 2.5 dB up.
- OS 1.74 only, with core-ar2 0.7.

## Tests and measurements

On the author's Analog Rytm MKII (AC20, AC21) and in rytm-emu, on the builds named in [TESTING.md](TESTING.md). Level, noise and latency are not measured: the emulator models the analog stages roughly.
On the author's Analog Rytm MKII (0.1.0: AC20, AC21; 0.3.0: LMC3, by the test rig) and in rytm-emu, on the builds named in [TESTING.md](TESTING.md). With LOW MONO at 300Hz on a ping-pong delay, the side of MAIN fell 28.5 dB at 30-60 Hz and 19 dB at 60-120 Hz while the mid moved at most 0.06 dB. Level, noise and latency are not measured: the emulator models the analog stages roughly.

## Authorship and licences

Original code by Nathaniel Pavel (@npp1993), GPL-3.0-or-later ([LICENSE](LICENSE)). No stock code is included: patch preconditions are an address, a length and a SHA-256.

## Screens and audio

Screenshots are rytm-emu captures of build AF22 ([media/capture.json](media/capture.json)). No audio preview yet.
Screenshots are rytm-emu captures ([media/capture.json](media/capture.json)). No audio preview yet.
Loading
Loading