Repository navigation
Ghost Cut 0.1.0-experimental (draft): a tempo-synced microlooper on FX2 - #1935
Conversation
A microlooper on FX2: GRAB loops a tempo-synced piece of the track (LEN 1/64 to 1/4 at the project's tempo, in a 15,870-word mono ring that stops short of Sidechain Compressor's key window) at RATE 1/4 x to 4 x, FWD, REV or PEND, with AUTO, MAN and OFF capture, GRAB hysteresis and 256-sample fades. Exact dry whenever no loop plays. verify.py: 67 dsp_host render gates pass, bit-exact against the integer reference ghost_cut_ref.py. Static cost 188 cycles a sample. Not run on a unit or in ot_emu yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…PU meter, as Vibrato's are) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ENG (Setup A) switches between TAPE and GRAIN. GRAIN moves the playhead through the loop at RATE while two grains, half a grain apart with triangular windows, read at PTCH (+-24 semitones, Main D), so pitch and time part; GRN (Setup C) sets the grain length, 10 to 79 ms, at most half the loop. Switching ENG while a loop plays ducks it out and back in. verify.py: 96 dsp_host gates pass, bit-exact against ghost_cut_ref.py in both engines; a 500 Hz sine plays at PTCH's pitch whatever RATE does. Static cost 390 cycles a sample on GRAIN (about 1.5x SPRING REV): it needs an optimization pass. Not tested on a unit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The seam is baked into the ring once a GRAB (32 words a block over eight blocks, the track dry meanwhile), so every read is a plain interpolation; the loop starts 112 samples in, where it would be had it played since GRAB. One priced fork holds the three per-sample jobs (record, TAPE, GRAIN), and grains are capped at a quarter of the loop so their wrap takes one step. Static: GRAIN 266 (about stock SPRING REV's 257.5), TAPE 148. Executed in dsp_host: GRAIN 271 -> 200, TAPE 144 -> 111 at worst. verify.py's 96 gates still pass, bit-exact against the updated reference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DRFT (Main E) puts a second read head up to half the loop after the first, swinging as a tempo-synced triangle over MOTN (Setup D: 1/4 to 32 bars) from each GRAB, ramped a sample at a time. TAPE plays the first head left and the second right; GRAIN reads its second grain there. DRFT 0 is one head, as before. FDBK is not built: writing back into the loop would undo the baked seam. verify.py: 115 dsp_host gates pass, bit-exact against the reference; with DRFT, TAPE's left side is unchanged and its right plays the second head. Static cost 281 cycles a sample on GRAIN, 188 on TAPE. Not tested on a unit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the Ghost Cut draft. Please name Before we schedule a unit trial, could you show what a locked GRAB, LEN and MOTN do at a track speed other than 1×, with swing, and across a live tempo change and STOP/PLAY? The code latches the loop length at capture and reads stock tempo each audio block for the drift. Please make explicit which timing comes from the track and which is intentionally held for a captured loop, and record the cases you can check in the draft. A device reviewer can take the USB trial once those points are clear and the checks pass. |
|
Ghost Cut 0.1.0-experimental is a microlooper for an audio track’s FX2 slot. GRAB captures a short piece of the track and repeats it; releasing GRAB fades back to the original track. Main page
SETUP page
|
|
Thanks for spelling out the timing and recording the private trial. There’s one mismatch left in the evidence. The tempo-change row in TESTING.md says LEN reads tempo every block, while a captured LEN stays fixed and MOTN is the part that follows live tempo. Please align that row with the implementation and qualify the manifest’s “under a sample a repeat” line. That figure is rounding at the nominal rate and unchanged tempo, and can read as a promise about alignment on a swung or differently scaled track. The TAPE report and the DSP-host results can keep their own scope. |
|
Is Ghost Cut ready for another review, or are you still testing on the Octatrack? I reran the 15 host tests and they all passed. The four RAM trials and your report that GRAB, release and RATE worked in TAPE give us a good starting point. Do you feel you’ve tested this build enough for a device reviewer to pick it up? In particular, have you since confirmed on the unit that GRAIN loops with ENG set to 1 and that PTCH changes pitch with RATE held steady? I also spotted that TESTING.md records a private Keep while the PR description still says “No Keep.” Could you update the description with what you saw, including whether the FX2 selection came back after a power cycle? If either check is still open, just say so and we can pick it up from there. You’re welcome in the Modwerk Discord if it’s easier to compare what you’re hearing or coordinate the next trial. |
|
Thanks for rerunning the 15 host tests. Yes, I'm ready for a device reviewer to pick up this exact 0.1.0-experimental build for focused testing. I would keep the PR in draft; I'm not claiming full device qualification yet. The "No Keep" line was stale, and I've corrected the PR description. After the four RAM trials, the same package was privately Kept following a 30-second trial. The loader returned to normal and reported one Ghost Cut, with one saved and one live module. The refusal counter rose during that trial (55 to 62); we have not isolated why. I did hear PTCH affect pitch while RATE stayed steady, but I did not record whether ENG was definitely 1 or GRAB was active. So I cannot honestly mark either the ENG=1 GRAIN loop or PTCH independence as confirmed on the unit. I also have not power-cycled since Keep, so I cannot say whether the FX2 selection returned. Those are the focused checks I'd like the device review to cover. I'd also like willing testers to be able to try the draft 0.1.0-experimental build from this branch through the existing |
|
Thanks for Ghost Cut! I've staged it on main as a draft: it lives in What works: FX2 only, its ring in the slot's own buffer, no hooks and no claims on panel controls. It doesn't touch anything Freeze (#1971) needs. What's still open before it can be listed, all on your unit with the test procedure's record (
Once those pass, the first release goes in a new pull request of its own ( |
Ghost Cut 0.1.0-experimental (draft): a microlooper on FX2
GRAB (a knob, a scene or the crossfader) loops a tempo-synced piece of the track: the last LEN, the next LEN, or the ring as it was (CAPT AUTO, MAN, OFF), 1/64 to 1/4 of a note at the project's tempo. Let go and the track fades back.
Whenever no loop plays, the track passes dry, bit for bit. Original DSP by @Jacobphono. The table read
gcTBand two small patterns are adapted from Bryan T's Vibrato (MIT, credited in LICENSE).The draft lives in
sdk/drafts/ghost-cut/: an experimental draft until it has completed unit qualification, so it is not in the catalog yet. Claimed on the agent board (octatrack/ghost-cut).How it fits
uiClaims: []: it takes no key, screen or stock site, only a row in the base's FX2 list. No hooks, norequires.docs/module-guides/effects.md#one-effect-per-module).Test evidence (21–22 November 2026)
modules/ghost-cut/verify.pyin dsp_host on OS 1.40C, 115 of 115 pass.ghost_cut_ref.py, in every mode: TAPE, GRAIN, the drift head, MAN and OFF capture, every direction, 30 to 300 BPM, and engine switches and the duck.-guard -guard-sharedclean on track 1 and track 3 FX2; four instances a core bit-identical to one.test_ghost_cut_ref.py).module:doctor --draft: the experimental lines are green.cycle_count.py --verifygives 281 cycles a sample on GRAIN with the drift head (about 1.09× stock SPRING REV's 257.5) and 188 on TAPE. Executed indsp_host -meter, the worst is 217 and 149, dispatch included. The history (390 down to 266 by baking the seam) is in TESTING.md.fx:audit: its figures are recorded, but a looper does not fit its steady-tone model (TESTING.md says why). Aliasing when RATE is above 1× is a known limitation: linear interpolation, no anti-alias filter.ot_emu. Vibrato's listed package was refused the same way, so the emulator cannot exercise an effect on a track. The finding is posted on the board, and Docs: what the Octatrack emulator can test for an effect #1933 folded it into the guides.58289edadefd1d41280c4fdcc2eace329276ef56facede77aa9925159e0c7517) ran as RAM trials for 30, 180, 300 and 600 seconds on Octatrack OS 1.40C with base 0.7.12 (254c5a75a139…). All four trials rolled back; the unit log recorded no crash, stall, frozen UI or skipped track, and the active base and empty inventory were restored. The developer reported that GHOST CUT appeared in FX2, GRAB looped and released the track, and RATE changed the loop in TAPE. The same package was then privately Kept after a 30-second trial: the loader returned to normal, inventory listed one Ghost Cut, and the saved/live counts were both one. The refusal counter rose from 55 to 62 during that trial; its cause was not isolated. The developer later heard PTCH affect pitch with RATE held steady, but did not record whether ENG was 1 or GRAB was active, so GRAIN looping and independent PTCH control on the unit remain unconfirmed. No power cycle was performed, so whether the FX2 selection returned is unknown. CPU price and full unit qualification remain open.Not in this draft
npm run test:procedure,device:qualify), the CPU price,evidence/performance.json, the thumbnail and the catalog entry.The first private run was on the developer's Octatrack. The next step is the full test procedure on a development base, including effect controls, edge cases, CPU price and reviewer evidence before release.
What the guides lacked, and where it was fixed
--cycles/--bufferor the base refuses them, andbuild_core.py --devlinks only with--resident-stock-hooks --resident-on-demand. Fixed in Docs: what the Octatrack emulator can test for an effect #1933, which is now on main.divsteps on a 48-bit dividend (high word in a1, low in a0) leave (dividend / 2) / divisor in a0. The module's table stores 2N, andghost_cut_ref.pysays why. The separate Docs PR Docs: the DSP div step leaves half the quotient for a 48-bit dividend #1938 added the trap and is merged.sdk/.gitignore:octabam/vendor/does not ignore a symlink namedvendor, which the effects guide's setup creates. Fixed separately in merged PR Fix: ignore a vendor symlink in sdk/octabam #1939; this branch still has its local untracked vendor link until it merges current main.🤖 Generated with Claude Code