Repository navigation
Conversation
…sample alone A SMPL LAYER page after the SMPL waveform (core_view_pages), with FRQ, RES, TYP (OFF/LP/BP/HP) and DEC, applied to the sample stream before stock's voice mixer. Probe SL01 confirmed the stream on a unit; SL02 reported working. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Proposal: SMPL engines, a base list chosen with FUNC + SMPL (owner decision needed) @repeat98: before Sample Layer goes further, @chevyone would like the SMPL key to work the way SRC does with machines.
What it means musically: you pick how a track plays its sample the same way you pick its machine. The list is a familiar place, so you don't have to learn one key gesture per module. What has to be decided, and by whom:
Ran on a unit: nothing of this yet. Only the research below, on OS 1.74's code. What OS 1.74 shows (research, no code yet)
If the hook is agreed, Sample Layer becomes the TRANSIENTS engine: its own knobs (a hold and decay for the sample, and a two-knob band filter) on the SMPL page while TRANSIENTS is chosen. Until then this PR stays a draft. 🤖 Generated with Claude Code |
|
Hi @chevyone, thanks for asking. Yes in principle: once @repeat98 agrees to the hook, I'm open to Loop Sync registering as LOOPS. Three things matter to me:
When the hook exists, I'll look at the LOOPS entry with you. |
FUNC + SMPL opens a list of sample engines for the selected track:
SAMPLER (stock, bit for bit) and TRANSIENTS. With TRANSIENTS, SMPL shows
one page and stays on it:
A PCH punch: right a snap with a pitch blip up to +2.5 semitones,
left a fade-in of up to 40 ms rising from 4 semitones under
B DEC the sample's decay, held 10 ms after a trig, 127 INF
C BR stock's
D SMP stock's
E BAS the band's base (a high-pass)
F WID the band's width above it (a low-pass), drawn as one band
G SHF the sample 0 to 30 ms after the analog voice, taken at each trig
H LEV stock's
The band is not drawn while a stock window (micro timing, RETRIG) is on
screen. Settings live in two sound fields (34 bits). Ids 447-451 are
renamed hidden TEST ids.
Played on the author's MKII (build SL14, 27 November 2026). Not done
yet: CPU measurement, tests beside other modules, a sound reset, the
README, TESTING, captures and the tutorial. The new parameters cannot
be p-locked; that needs mod locks on sound tracks in the Rytm base.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A third engine in the SAMPLE ENGINE list. GRANULAR reads the track's
sample from memory itself (its slot after SMP locks and scenes, through
the slot table Loop Sync reads), and plays a cloud of Hann-windowed
grains in place of stock's sample stream:
A POS where in the sample, 0-127
B SIZ a grain's length, 4 ms to 1 s
C DEN grains a second, 1 to 200
D SMP stock's
E SPR how far a grain's start strays, 0 to 250 ms
F PIT the grains' pitch, -24 to +24 semitones
G SPD how fast the position moves: 100 % plays through the sample,
0 freezes it, negative runs backward (a time stretch)
H LEV stock's
A voice holds at most 6 grains, and all voices together 12, as a CPU
budget. The cloud keeps making grains for 10 s after each trig, and AMP
shapes it. Engines share the sound's storage bits (a new 6-bit field,
40 bits in all); choosing another engine starts it from its defaults.
TRANSIENTS' storage layout is unchanged.
Checked on the host only: pitch, the sample's own rate, density, spray,
reverse, an empty slot, and TRANSIENTS unchanged. Not run on a unit,
CPU not measured.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SMPL LEV now sets GRANULAR's level. Stock applies LEV in its own sample render, which the grains replace, so LEV had no effect. The grains now take the track's LEV as it plays (locks and scenes too), ramped across each block. SMPL's second press on GRANULAR opens the waveform page with GRANULAR's knobs. Each grain shows as a line at its place in the sample, as tall as it is loud, and the cloud's position as a dotted line, redrawn at every tick. TRANSIENTS keeps its single page. Host-checked: LEV 127, 64 and 0. Not run on a unit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for building this out and for asking before going further. It's the right question on a machine that's still being unlocked. Yes to a base-owned list of sample engines, and to a hook at the voice mixer call. Sample Layer and Loop Sync both want it already, and more will follow, so the base should own the mixer call site and the list as a table each engine module adds one entry to, the way effects join the FX list. Please propose both on the Rytm's cumulative base draft (#1934), with the site's address, length and guard, the record size and room. Sample Layer then subscribes instead of patching the mixer call itself, and Loop Sync can add LOOPS beside it. No to taking FUNC + SMPL. It moves a stock shortcut, and the module guides treat that as more than a minor change. Please find an entry that leaves stock's gestures as they are, for example an engine choice on the SAMPLE page itself, and the base list will use it for every engine. Small thing while you write the docs: the manifest's presentation and controls still describe the earlier FRQ, RES, TYP page, so update them with TRANSIENTS' knobs. |
- The waveform page shows POS as a line at all times, and the grains draw there again: the window test, which stock's waveform tripped, is skipped on that page. - Stock's silent playback of the sample stops one block after each trig, so its playhead no longer runs from the start and its render is saved. - Grains: 3 a voice and 6 in all, each rendered through the block in one go, and none starts while the audio block's load is over 86%. The waveform page shows the load (CPU nn%) for testing. - FUNC + SMPL, or SMPL, closes the SAMPLE ENGINE list and nothing else. - On TRANSIENTS the SAMPLE view goes back from the waveform to its first page. - Nothing is drawn while the screen saver blanks the screen. Played on the author's Rytm MKII (SG03 to SG09): the POS line, the load from 96% down to 91% at most, the list and the TRANSIENTS page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Proposal: sample engines in the Analog Rytm MKII base (
|
| Piece | Today in Sample Layer | In the base |
|---|---|---|
| FUNC + SMPL list | ev_key, ev_enc, ev_draw |
the list, its look matching stock's machine list |
| Engine page | core_page_fns for pages 4 and 5, hidden ids 447–458 |
one page built from the record, labels from c[] |
| Storage | 40 sound bits (sample_layer_eng, _flt, _gx) |
an engine id (4 bits) and 8 values a sound, in one block of sound storage every engine shares |
| P-locks | not possible: sound tracks have no free lock word | mod locks on sound tracks, saved in lanes stock's loader skips, as locks.c does for the FX track's words 38–41 |
| Audio | a jsr over the voice mixer's call at 0x4012129a |
the same site, owned by the base; it calls each voice's engine |
| Trig marker | ev_amp_record follower |
hit passed to render |
| Sample access | the slot table at 0x41329e70 and the effective parameters at 0x8000f7a8 (as Loop Sync reads them) | struct mw_sample passed to render |
Open questions for the owner
- Storage: 4 + 8 × 7 = 60 bits is over the sound's 56. Options: values of 6 bits (52 bits), or a sound-scope block of its own for engines. Which do you prefer?
- Mod locks on sound tracks: core-ar2 0.8 does this upstream, but the base cannot take it (
elekloader/README.md, Beside elekloader's core-ar2). Should the base grow its own, fromlocks.c? - Improved SMPL (@npp1993) also takes the SMPL key's pages. Should the base page simply not show while an engine other than SAMPLER is chosen, so both live together?
- CPU: an engine that reads the sample (GRANULAR) costs per grain. Should the base cap engines with a budget, as
mw_fxreports a CPU reading? - A slice table for SLICER: a slicer is only usable when each cut can be moved by hand. With slice 2 selected, START moves the boundary between slices 1 and 2, and END the one between 2 and 3. The slices stay contiguous, and each boundary is one shared point. That needs up to 63 boundaries per sound, at 16 bits each (a 1/65536 share of the sample) — 126 bytes a sound, about 1.5 KB a kit for twelve tracks. No scope today holds it: the sound has 16 bits left, the kit's 64 are taken by the send bus, and the pattern and project scopes would tie the cuts to the wrong thing. Can the base give engines a larger block that travels with the sound (or the kit), and if so, where should it live in the saved kit and project? Fewer bits per boundary (12, a 1/4096 share) would halve it, but at the cost of precision on long samples.
Plan
- The base draft gets
mw_engines, the list, the page, the storage and the mixer site, without locks. - Sample Layer splits: TRANSIENTS and GRANULAR become one module each, adding a record. Settings move with a migration of their 40 bits.
- Loop Sync adds LOOPS when @stigmagit is ready.
- Mod locks on sound tracks follow as their own base step.
…nd the SLICER prototype The list now offers SAMPLER and TRANSIENT; GRANULAR and SLICER stay in the source for test builds (LIST_ENGINES). TRANSIENTS is renamed TRANSIENT. The list is drawn as stock's machine list, every screen goes dark with the screen saver, and the BAS/WID band lines up with the SHF dial and stays under the list. README and release notes describe this version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Exported with package-elemod-recipe from the pinned toolchain image (modwerk-source-tools, sha256:81b0c4b6) at 697aa47, compiled twice with identical bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Import records pin the source-only package at fb40498 (sha256 d6e2fb0a), compiled twice with identical bytes in the pinned toolchain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… sections Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ntation The package's bytes are unchanged (package-elemod-recipe --check). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The package's bytes are unchanged (package-elemod-recipe --check). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The plain development base 6844766f links with 110,884 bytes of RAM spare, and 48,360 with Sample Layer (SL20). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… figure The package's bytes are unchanged (package-elemod-recipe --check). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
About 1.6 % of the audio block a voice at peak (test build SL21 with a load readout compiled only under SL_LOAD_READOUT). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…igures The package's bytes are unchanged (package-elemod-recipe --check). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ecord The package's bytes are unchanged (package-elemod-recipe --check). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Thanks for narrowing this to TRANSIENT and for the SL20 test record on your unit. The record is clear and the sound is a nice idea.
One thing blocks it, and it's the one from my earlier answer here: the engine list still opens with FUNC + SMPL. That changes a stock shortcut, and the module guides treat that as more than a minor change (Choose how a module hooks in). Please open the engine choice somewhere that leaves stock's gestures alone, for example as a row or knob on the SAMPLE page itself. Then:
- Update the manifest (
uiClaims, summary, overview, location and steps), the README and the captures to match. - Rerun the menu edge cases from your table on the unit and record the new build.
- Run
npm run pr:readyand push. That also replaces the red check, which is only left over from the run made while this was a draft.
The base-owned engine list and the mixer hook are still a yes, as agreed. They belong on the Rytm's cumulative base draft (#1934), with the storage layout and slice-table sizes measured there. This release can ship without them, as long as it keeps to stock's gestures.
… SMPL Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Exported with package-elemod-recipe from the pinned toolchain image (modwerk-source-tools, sha256:81b0c4b6) at dc42fe1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…age build Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Done: FUNC + SMPL is stock's again. The engine choice now lives on the SAMPLE page itself: SMPL gets a third page, ENGINE, added through core-ar2's
Tested on a unit: SL24 (sha256 Who must act: a Rytm MKII device reviewer or a maintainer, once CI is green. The base engine list and the mixer hook go on #1934 as agreed. |
|
Thanks, the ENGINE page is exactly what we hoped for, and stock's gestures are untouched. Three small things before a device reviewer merges it:
Then merge |
What works: Sample Layer 0.1.0-experimental for the Analog Rytm MKII (OS 1.74) gives each sound's sample an engine. SMPL gets a third page, ENGINE (stock's knobs, stock's waveform, then ENGINE), added through the core's page list so every stock gesture stays as it is; FUNC + SMPL is stock's sample list again. ENGINE shows a centred SAMPLE ENGINE window with the cursor on the sound's engine; UP/DOWN or any knob moves it, YES picks it and goes back to SMPL's first page (the engine's own), NO puts the cursor back. This version offers two engines:
The analog machine, the analog filter and the AMP envelope are unchanged. Every screen it draws goes dark with the screen saver.
What it means musically: a sample layered on an analog drum gets its own punch, decay, band and timing: a click landing after the body, a swelled or snapped layer, a flam.
Tested on a unit: build SL24 (plain dev base 6844766f + sample-layer at 230c1b9, sha256 99cf7c7f…a756), Analog Rytm MKII, OS 1.74, RAM-booted on @chevyone's unit on 28 November 2026: the ENGINE page and its window, YES back to the engine's page, SMPL from TRANSIENT's page to ENGINE, and back to SAMPLER, captured over the link; reported working by @chevyone ("Funciona bien"). TRANSIENT's sound and controls are unchanged since SL20, which @chevyone played with kit save and power cycle. The package pinned here (sha256 593a10d8…4799) is compiled from the same module source and has not run on a unit itself.
Broken or missing:
mw_enginesproposal on this PR.LIST_ENGINES); a sound saved with one plays as SAMPLER.Who must act / next step: a Rytm MKII device reviewer or a maintainer reviews this first release. For the owner (@repeat98): the
mw_enginesproposal above, so the list can become a base table other modules (Loop Sync's LOOPS) add to.Edge cases
What the guides lacked or got wrong: the Rytm guide does not say that
ev_key's pad ids are 0x90–0x9b, unlikeis_key_held's bits, nor that sound tracks have no free lock word. They go in a separateDocs:pull request.Details
jsrover stock's call of the voice mixer at 0x4012129a; anev_amp_recordfollower (order 60) for each trig;ev_key,ev_enc,ev_drawandev_tick;core_page_fnsfor SMPL's pages 4 and 5 and ENGINE (page 16);core_view_pagesto add ENGINE to the SAMPLE view;core_paramsfor the hidden TEST ids 447–456 and 458.sample_layer_eng(20 bits),sample_layer_flt(14),sample_layer_gx(6). All zero is stock's sound.modwerk-source-tools, sha256:81b0c4b6), exported withpackage-elemod-recipeat dc42fe1 and pinned insdk/imports/elekloader-sample-layer-2026-11-28.json.npm run module:doctor -- sample-layeris green;npm run pr:readywas run before marking this ready.🤖 Generated with Claude Code