Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
3591e7e
Bounce 0.1.0 draft: bounce tracks in place (design, no code yet)
seniorspiz Dec 2, 2026
77a7d98
Bounce: settle the gesture, length and Part questions before code
seniorspiz Dec 2, 2026
39f48e7
Bounce: CUE carries a track after its FX (emulator render)
seniorspiz Dec 2, 2026
01be1fa
Bounce: SRC3 = the track records it after its FX (emulator render)
seniorspiz Dec 2, 2026
0415b9b
Bounce: map a track's pattern record for UNDO (emulator dump)
seniorspiz Dec 2, 2026
1d4129f
Bounce 0.1.0 prototype: gesture, BOUNCE window, take, Flex switch and…
seniorspiz Dec 2, 2026
ecfbebd
Bounce 0.1.1: first unit run recorded; write the pattern record direc…
seniorspiz Dec 2, 2026
a865af2
Bounce: 0.1.1 merges three tracks on the unit
seniorspiz Dec 2, 2026
11ef613
Bounce 0.2.0: merge where lengths meet, bounce Grain and synth tracks…
seniorspiz Dec 2, 2026
53bddea
Bounce 0.2.0: take any machine signature version; record the silent T…
seniorspiz Dec 2, 2026
4d1334c
Bounce 0.2.1: RESET TRACK no longer silences the track
seniorspiz Dec 2, 2026
fda086c
Bounce 0.3.0: save the take as a WAV; refuse T8 as master track and c…
seniorspiz Dec 2, 2026
0c0dcbe
Bounce In Place 0.4.0: trig keys 1-8 light the merge; rename; texts m…
seniorspiz Dec 3, 2026
fb9d789
Bounce In Place 0.4.0: a failed WAV save says NOT SAVED: TAKE IN BUFF…
seniorspiz Dec 3, 2026
9f17972
Bounce In Place 0.4.0: tappable trig keys yellow, tracks in the take …
seniorspiz Dec 3, 2026
c2214fe
Bounce In Place 0.4.0: the test procedure's unit steps on the MKII, C…
seniorspiz Dec 3, 2026
0ab8ad5
Bounce In Place 0.4.0: the active track's trig key red, merged green,…
seniorspiz Dec 3, 2026
3d0b1a3
Bounce In Place 0.4.0: bounces always in the project's BOUNCES folder
seniorspiz Dec 3, 2026
ae69ad6
Bounce In Place 0.4.0: BOUNCES folder and trig key lamps worked in th…
seniorspiz Dec 3, 2026
72517c2
Bounce In Place 0.4.0: a popup says to pick FLEX after a Grain or syn…
seniorspiz Dec 3, 2026
64d32dc
Bounce In Place 0.4.0: the PICK FLEX popup in two lines
seniorspiz Dec 3, 2026
afe1b44
Bounce In Place 0.4.0: the first popup's unit run, as reported
seniorspiz Dec 3, 2026
72af1cd
Bounce In Place 0.4.0: CPU price on package 196de6d7, measured on the…
seniorspiz Dec 3, 2026
d9f2af7
Bounce In Place 0.4.0: the test procedure's unit steps on package 196…
seniorspiz Dec 3, 2026
a09ccf7
Bounce In Place 0.4.0: TESTING names which build the power cycle repo…
seniorspiz Dec 3, 2026
7790d7c
Bounce In Place 0.4.0: the developer's test of package 196de6d7, and …
seniorspiz Dec 3, 2026
55dbfe0
Bounce In Place 0.4.0: key-press cost record, stress run and four emu…
seniorspiz Dec 3, 2026
02cd155
Fix: device tool's Part RELOAD and SAVE reach PART's actions in the b…
seniorspiz Dec 3, 2026
91ff6b1
Bounce In Place 0.4.0: list it (catalog, package list, release notes)…
seniorspiz Dec 3, 2026
3a006fe
Bounce In Place 0.4.0: release record from test:procedure on package …
seniorspiz Dec 3, 2026
7220f83
Bounce In Place 0.4.0: its USB package, 196de6d7 (the tested one)
seniorspiz Dec 3, 2026
8ae0792
Bounce In Place 0.4.0: the module packages, built in the isolated con…
seniorspiz Dec 3, 2026
8ff1acb
Bounce In Place 0.4.0: author registry, device tool's Part menu reach…
seniorspiz Dec 3, 2026
ad21dd8
Bounce In Place 0.4.0: packages rebuilt in the isolated container for…
seniorspiz Dec 3, 2026
e53e97b
Bounce In Place 0.4.0: a cancelled take keeps UNDO, the recorder setu…
seniorspiz Dec 4, 2026
7fb68a4
Bounce In Place 0.4.0: packages rebuilt in the isolated container (US…
seniorspiz Dec 4, 2026
819162b
Bounce In Place 0.4.0: README, memory and cost numbers for package ad…
seniorspiz Dec 4, 2026
7d9173a
Bounce In Place 0.4.0: release record from test:procedure on package …
seniorspiz Dec 4, 2026
aeb2cbd
Bounce In Place 0.4.0: the developer's own test of package ad2b4cfe, …
seniorspiz Dec 4, 2026
3f5bdb0
Merge remote-tracking branch 'upstream/main' into module/bounce
seniorspiz Dec 4, 2026
5a94e93
Bounce In Place 0.4.0: packages rebuilt on current main in the isolat…
seniorspiz Dec 4, 2026
5dbf921
Bounce In Place 0.4.0: the developer's test ran on release base 0.8.5…
seniorspiz Dec 4, 2026
0e5f053
Bounce In Place 0.4.0: the device tool fix moves to its own pull request
repeat98 Dec 4, 2026
33ba4c6
Merge remote-tracking branch 'origin/main' into module/bounce-2548
repeat98 Dec 4, 2026
04a1246
Bounce In Place 0.4.0: packages rebuilt on main with Fuzzbox in the i…
repeat98 Dec 4, 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 .github/module-authors.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"npp1993": 833410,
"repeat98": 67785539,
"sambanks": 3905846,
"seniorspiz": 137111931,
"soejrd": 34421739,
"stigmagit": 288131171,
"sumedho": 8923447,
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/build-module-packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
ORDER = ['miniverb', 'tapeecho', 'euclid', 'repitch', 'tapehead', 'airwindows-chorus', 'everb', 'bbd', 'lofi2', 'ring-sc', 'vibrato', 'resonator', 'mackity', 'midiverb', 'ringbank', 'void', 'fuzzbox']
# DSP code that stock code reaches through hooks. Output Matrix has no FX menu entry and is also a requested ColdFire module.
HOOKED = ['sidechain-compressor', 'output-matrix']
REQUESTED = ['analog-bassdrum', 'usb-audio-out-tracks-main-cue', 'quantizer', 'synth', 'vector', 'playmodes', 'mute-modes', 'recorder-loop-fix', 'poly8', 'output-matrix', 'quantize-live-rec-toggle', 'apply-scene', 'direct-jump-kyoti', 'dejavu', 'arp-key-locks', 'temp-save', 'tuner', 'scope', 'slow-lfo', 'bar-led', 'stem-rec', 'songbook', 'arr-rows', 'smart-reload', 'defrost']
REQUESTED = ['analog-bassdrum', 'usb-audio-out-tracks-main-cue', 'quantizer', 'synth', 'vector', 'playmodes', 'mute-modes', 'recorder-loop-fix', 'poly8', 'output-matrix', 'quantize-live-rec-toggle', 'apply-scene', 'direct-jump-kyoti', 'dejavu', 'arp-key-locks', 'temp-save', 'tuner', 'scope', 'slow-lfo', 'bar-led', 'stem-rec', 'songbook', 'arr-rows', 'smart-reload', 'defrost', 'bounce']
UTILITIES = ['previewvol', 'cc-map']
ASSET_NAMES = ['dsp-packages.json', 'coldfire-packages.json', 'resident-dsp.json', 'rom-packages.json',
'bootstrap-package.json', 'menu-recipes.json', 'descriptor-recipes.json', 'platform-writes.json', 'requested-packages.json', 'utility-packages.json', 'usb-audio-packages.json']
Expand Down
5 changes: 5 additions & 0 deletions sdk/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,11 @@
"id": "quick-fill-trig-condition",
"version": "0.1.0-experimental",
"addedAt": "2026-12-03T16:27:00Z"
},
{
"id": "bounce",
"version": "0.4.0-experimental",
"addedAt": "2026-12-03T22:31:23Z"
}
]
}
30 changes: 30 additions & 0 deletions sdk/octatrack/modules/bounce/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
MIT License

Copyright (c) 2026 seniorspiz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

---

This licence covers this module's own source code and documentation only. It
does not extend to any Elektron Music Machines firmware, which is not
distributed here and remains the property of its copyright holder. Nothing in
this module is endorsed by, supported by, or affiliated with Elektron.
Octatrack and Elektron are trademarks of Elektron Music Machines MAV AB, used
only to identify the hardware this module targets.
108 changes: 108 additions & 0 deletions sdk/octatrack/modules/bounce/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Bounce In Place

Version 0.4.0 · by @seniorspiz · experimental: 0.4.0 passed the test procedure's unit steps on one MKII in RAM, and its developer's own test (a project save, reload and power cycle, the lamps and the popup) on the same unit, as reported ([TESTING.md](TESTING.md)).

## Overview

Bounce In Place records a track in place, the way bounce or freeze works in a DAW, without setting up the recorder's buffer, length and trigs by hand. It records the active track, and any other tracks you merge in, for exactly one pattern length (in per-track mode, the track's own length; merged tracks of different lengths, until their lengths meet), with their effects. When the take ends, the active track becomes a Flex machine playing the take: its FX are off, its AMP is stock's (HOLD and REL full, VOL and BAL centred), its LFOs no longer move it, its old trigs and locks are replaced by one trig on step 1, and the take is saved as a WAV (`B<track>-YYMMDD-HHMM`) in the project's own `BOUNCES` folder, with the track's recorder buffer assigned to it, so once you save the project the take reloads with it. The other merged tracks are muted with stock's own mute. A Grain or synth track is bounced as it sounds, so its CPU is free once it plays the take as Flex. RESET TRACK turns any track back into a plain STATIC track. UNDO brings back what the last bounce or reset changed, until the next power cycle or project change.

Category: **system**. It rewrites a track's Part and pattern when the musician asks, and uses no effect slot, DSP code or knob.

## Controls

| Control | What it does |
| --- | --- |
| DOWN held, then REC | Opens BOUNCE for the active track. REC alone stays stock. |
| FUNC+PART > BOUNCE > BOUNCE T*n* | Opens BOUNCE for the active track, from the Part Edit window. |
| Trig keys 1-8, while BOUNCE is open | Add or remove T1-T8 from the merge. The active track always stays in. Stock TRACK keys keep working as stock, so BOUNCE sits beside Track Solo. |
| YES, while BOUNCE is open | Arms the take: it starts with the next pattern start. Refused, with the reason, when the pass is over 64 steps, T8 is merged or chosen while MASTER TRACK is on, a merged track's cue level is 0, or the recorder is busy. |
| NO, while BOUNCE is open | Closes BOUNCE and changes nothing; cancels an armed or running take. |
| FUNC+PART > BOUNCE > RESET TRACK | Asks first, then makes the active track a STATIC track with a fresh project's settings (FX1 FILTER, FX2 DELAY, stock AMP, LFO, playback and recorder setup, its own slots), no trigs and no locks. Its length and scale stay. A Grain or synth track: pick STATIC in the machine chooser first. |
| After bouncing a Grain or synth track | The take is in, and a small popup reads TAKE RECORDED, CHANGE T*n* TO FLEX. Any key closes it; FUNC and SRC go straight on to the chooser. The bottom line then reads BOUNCED: T*n* PICK FLEX until you do. Pick FLEX for that track in the machine chooser: Bounce then makes it play the take. Until then the machine plays on unchanged. |
| FUNC+PART > BOUNCE > UNDO | Restores the last bounce's or reset's track: machine, FX, every page, slots, trigs, locks, and the merged tracks' mutes. |

BOUNCE shows the merge as inverted track names and on trig keys 1-8 (the active track red, merged tracks green, every other track you can tap yellow; T8 dark while MASTER TRACK is on) until the take ends, then PRESS PLAY, WAIT or RECORDING ONE PASS, and at the end BOUNCED, SAVED AS with the file's name, or the reason it refused. While stock writes the WAV, its own screens show.

## Usage

1. Select the track to bounce into, then hold DOWN and press REC (or FUNC+PART > BOUNCE > BOUNCE T*n*).
2. Press trig keys 1-8 to merge other tracks in, then YES to arm; the take starts on the next pattern start.
3. When BOUNCE reads BOUNCED, SAVED AS, the track plays the take. Save the project to keep it; FUNC+PART > BOUNCE > UNDO goes back.

### Quick tutorial

1. Select the track to bounce into with its TRACK key, here T1.
2. Hold DOWN and press REC: BOUNCE opens with T1 inverted and its trig key red.
3. Press trig key 2 to merge T2 into the take, then YES to arm it; press PLAY if the sequencer is stopped.
4. After one pattern pass BOUNCE reads BOUNCED, SAVED AS with the WAV's name: T1 plays the take as a Flex machine and T2 is muted. Save the project to keep the link.
5. To go back, FUNC+PART > BOUNCE > UNDO.

## How it works

Every piece of work runs on a key press, once a step while a take is armed, or as a card job, never every frame or sample ([Keep the ColdFire cheap](../../../../docs/module-guides/README.md#keep-the-coldfire-cheap)).

| Step | Where it runs |
| --- | --- |
| Check: audio tracks only, the pass fits RLEN (64 master steps), MASTER TRACK and T8, the merged tracks' cue levels, the active track's recorder is free | key press |
| Keep the active track's 12 recorder bytes, to put them back after the take | key press |
| One track: set its recorder's source to itself. Several: send the merged tracks to CUE for the take and record CUE | key press |
| Set the length to the pattern's (or the track's) and arm for the next step 1 | key press |
| Record, on the instrument's own tempo, scale and length | stock's recorder |
| See that the take ended | the UI tick, a few compares, only while armed |
| Light trig keys 1-8 with the merge: stock's steady LED bytes for those keys, put back as stock last drew them when the window closes | the UI tick, only while BOUNCE is open or armed |
| Snapshot the active track's Part bytes, its whole pattern record (trigs, locks, conditions, 2,330 bytes) and the mutes, for UNDO (module memory, not stock's shared undo buffer); a cancelled take leaves the last UNDO as it was | one bounded edit, at the take's end |
| Make the active track a Flex machine playing the take, FX1 and FX2 off, one trig on step 1 at full length; mute the merged tracks; restore the CUE routing (only the cue bits it set: mutes changed during the take stay) | one bounded edit |
| Save the take as a WAV in `<project>/BOUNCES/` (made with stock's folder call the first time) and assign the track's recorder buffer to it: stock's SAVE THIS RECORDING past its naming keyboard, then its ASSIGN TO SELF (the chain stock's SAVE ALL RECORDINGS runs), a name that is free, and stock's done callbacks. SAVE SAMPLES TO is set to PROJ DIR for the two calls that build a path, and put back straight after each | stock's card jobs after the take |

It has no code in the frame interrupt (no detour, no `rests` hook), so there is nothing for `ev_in_use` to rest. Its UI tick compares its phase and returns while BOUNCE is closed. It contributes its BOUNCE row to the base's `ot_part_menu` table.

## Compatibility and limitations

- Audio tracks only. MIDI tracks are refused.
- Merging several tracks uses CUE for the take, so the cue outputs carry the merged tracks while it records. The main outputs are untouched.
- `key:DOWN+REC` and `key:TRIG@BOUNCE` are declared in `compatibility.uiClaims`. Keys arrive through the base's shared `module_key` bus, so Bounce patches no stock key site. On stock, DOWN held + REC only toggles GRID RECORDING as REC alone does (emulator, TESTING.md); with Bounce, REC alone stays stock.
- With MASTER TRACK on, T8 carries the mix of T1-T7, so T8 cannot be a bounce destination then and is refused.
- Seen in the emulator (TESTING.md): CUE and SRC3 = the track both carry a track after its FX. The pattern's trig and lock layout is mapped. Still open: the same on a unit, Studio mode cue, MAIN TO CUE, and whether a take follows the track's LEVEL.
- The WAV is never deleted by Bounce: UNDO gives the track its old settings back and leaves the file on the card and the buffer's link to it. A later recording into the same buffer replaces the take in the buffer, as stock does.
- The trig key lamps are written in stock's steady LED bytes for keys 1-8 only while BOUNCE is open or armed, and patch no stock site. Another module that lights trig keys 1-8 at the same moment would be overdrawn until BOUNCE closes; none does today.
- 0.4.0 ran on one MKII (development twin, RAM only): bounce, merge and RESET TRACK, each undone; its developer saved, reloaded and power cycled a project with bounces. CPU: nothing measurable at rest; about 6 points of the frame interrupt while a take records (TESTING.md). Not yet run on an MKI.

### What 0.4.0 does and does not do yet

Its limits ([TESTING.md](TESTING.md)):

- **A full card.** When the WAV can't be written (stock shows its own error, or no answer comes within 30 s), BOUNCE reads NOT SAVED: TAKE IN BUFFER / SAVE IT IN AUDIO EDITOR until you press a key. The track still plays the take from its recorder buffer: free some space, then save it from the Audio Editor (AED) before a power cycle empties the buffer.
- **Where the WAV goes.** Always `<project>/BOUNCES/`, whatever SAVE SAMPLES TO says, so bounces stay with their project and out of the set's shared AUDIO pool. The project records it as `BOUNCES/<name>.wav`. A project that was never saved has no folder yet; its bounces go to `<set>/AUDIO/BOUNCES/`. PROJECT > SAVE TO NEW copies the `BOUNCES` folder into the new project, so the takes come along.
- **The WAV needs a project save.** The file is written at once, but the project names it only after you save the project, as with stock's SAVE THIS RECORDING. A power cycle before that leaves the WAV on the card and the buffer empty.
- **Passes over 64 master steps.** RLEN counts at most 64 master 16ths (4 bars at 1X), so a longer pass is refused with PASS OVER 64 STEPS.
- **Trig key lamps.** While the sequencer plays, stock redraws the trig keys each step; Bounce redraws its lamps on the next UI tick, so a key may flicker for up to 1/60 s.
- **Modwerk machines.** A Grain or synth track is bounced as it sounds; only the machine chooser switches a track off one (the base runs the machine's own leave), so you pick FLEX there yourself after the take, and STATIC before RESET TRACK.
- **Merged lengths.** The take runs until the merged tracks' passes meet (2 bars and 3 bars: 6 bars). Past 64 master steps it takes the longest pass instead, and the window reads PASS *n* (LONGEST). In PER TRACK mode the bounced track's length becomes the take's, at 1X.
- **Cue levels.** A merged track records at its cue level, so one at 0 is refused (T*n* CUE LEVEL IS 0). Other cue levels are taken as they are.
- **Recording with the sequencer stopped.** YES shows PRESS PLAY; the take starts with the next pattern start once the sequencer plays. STOP during the take cancels the bounce.

## Tests and measurements

See [TESTING.md](TESTING.md).

## Authorship and licences

Design and code by @seniorspiz, MIT (LICENSE). Track Solo's LED level handling and Stem Rec's recorder window are the nearest patterns; no code is taken from them. The stock addresses and the recorder mailbox word come from octabam's FREE LOOP adapter and firmware notes; the stock text call and the per-step lock index are as Pattern Sample Locks (twwwy) uses them, written anew here. The recorder length, end-of-take and pattern length findings come from Sam Banks' RLEN PLEN notes in octabam and from octabam's firmware notes (Bryan T, Tim Hastie).

## Screens and audio

Captured in the emulator from package `196de6d7` (MKII panel, [media/capture.json](media/capture.json)); no audio is published.

| Screen | What it shows |
| --- | --- |
| [media/ot-select.png](media/ot-select.png) | BOUNCE for T1, with T2 merged |
| [media/ot-recording.png](media/ot-recording.png) | RECORDING ONE PASS |
| [media/ot-bounced.png](media/ot-bounced.png) | BOUNCED, SAVED AS with the WAV's name |
| [media/ot-undo.png](media/ot-undo.png) | FUNC+PART > BOUNCE: BOUNCE TRACK, RESET TRACK, UNDO |

## Develop

- Edit `bounce.c`, then `python3 sdk/octatrack/modules/bounce/generate.py` writes `unit.s` (`--check` fails when it is stale).
- Hear it: `npm run module:dev -- bounce` builds it and tries it on your unit over USB; `--watch` does that again on every save.
- Check it: `npm run module:doctor -- --draft bounce`.
- Measure the first build that runs: `npm run device:price -- <draft .mwrm>`.
Loading
Loading