Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 3 additions & 4 deletions sdk/drafts/ghost-cut/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
[
{
"version": "0.1.0-experimental",
"date": "2026-11-21",
"version": "0.1.0",
"date": "2026-12-04",
"changes": [
"New: Ghost Cut, a microlooper on FX2. GRAB loops a tempo-synced piece of the track (LEN 1/64 to 1/4); let go and the track fades back.",
"TAPE plays the loop from a quarter speed to almost four times; GRAIN keeps that speed and sets the pitch with PTCH (±24 semitones).",
"DRFT adds a second head that drifts against the first over MOTN bars (1/4 to 32), in stereo on TAPE.",
"CAPT loops the last LEN, the next LEN or the ring as it was; DIR plays forwards, backwards or back and forth.",
"Not yet tried on a unit."
"CAPT loops the last LEN, the next LEN or the ring as it was; DIR plays forwards, backwards or back and forth."
]
}
]
4 changes: 2 additions & 2 deletions sdk/drafts/ghost-cut/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ghost Cut

Version 0.1.0-experimental · by @jacobphono · a draft: milestones A to C (the TAPE and GRAIN engines and the drift head), rendered in dsp_host. A private RAM trial ran on an Octatrack; full unit qualification and an emulator track run are still pending.
Version 0.1.0 release candidate · by @jacobphono · milestones A to C (the TAPE and GRAIN engines and the drift head), rendered in dsp_host. Private TAPE trials ran on an Octatrack; release qualification is pending.

## Overview

Expand Down Expand Up @@ -45,7 +45,7 @@ On a private draft package, ENG may show numbers rather than the engine names: 0
## Timing

- LEN reads the project's tempo word (tempo24) every block, so a tempo change sets the length of the next GRAB. A loop that is already playing keeps its length.
- The loop starts at GRAB, which only changes at a knob event: a turn, a scene, the crossfader or a lock on a trig. It does not restart on the sequencer's steps. A loop is a whole number of samples (5,512 for 1/16 at 120 BPM, against an exact 5,512.5), so a held loop drifts by under a sample a repeat against the pattern.
- The loop starts at GRAB, which only changes at a knob event: a turn, a scene, the crossfader or a lock on a trig. It does not restart on the sequencer's steps. At 1x track speed, unchanged tempo and nominal RATE, the whole-sample rounding is under one sample per repeat (5,512 samples for 1/16 at 120 BPM, against an exact 5,512.5). Swing, other track speeds and live RATE changes do not share that alignment claim.
- RATE changes glide over about 6 ms.
- Stop, play, a Part or pattern change don't touch the loop or the ring. They are runtime state, not saved with the project. Choosing the effect again clears the ring.

Expand Down
18 changes: 16 additions & 2 deletions sdk/drafts/ghost-cut/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Milestones A (the TAPE engine), B (the GRAIN engine) and C (the drift head). The

`ghost_cut_ref.py` itself is also checked without firmware by [test_ghost_cut_ref.py](test_ghost_cut_ref.py).

The 115 render checks were repeated on 4 December 2026 against the unchanged Ghost Cut DSP source. They passed after a separate SDK build fix excluded out-of-range and selected effect IDs from the card remix's omitted-module null stubs. The SDK fix is kept outside this module's release changes.

## Performance

- **Static:** `tools/build/cycle_count.py --verify` gives **281 cycles a sample** on the worst path, GRAIN with the drift head. That is the fork's dispatch (11 words), the GRAIN arm (167 words and two `gcRD` calls), and the envelope, MIX run and output. TAPE's worst path is 188, with the second head's read. Against stock SPRING REV's 257.5 (`benchmark_stock_dsp.py` on the original image), GRAIN is about 1.09 times and TAPE about 0.73 times. Not modelled: memory-contention stalls.
Expand All @@ -43,7 +45,8 @@ Milestones A (the TAPE engine), B (the GRAIN engine) and C (the drift head). The
| GRAIN FWD / REV / PEND | 265.2 / 268.2 / 271.2 | 194.2 / 197.2 / 200.2 | 210.5 / 213.5 / 216.5 |

The seven bake blocks after a GRAB run at 81.4 a sample. The block where baking ends and the loop starts peaks at 222.0.
- **Not measured yet:** the benchmark against stock in the same harness (`perf.py bench` / `stress`), `evidence/performance.json`, and the CPU price on a unit.
- **Not measured yet:** Ghost Cut's matched moving-control benchmark and full stress run against stock in the same harness (`perf.py bench` / `stress`), `evidence/performance.json`, and the CPU price on a unit.
- **Stock baseline repeated 4 December 2026:** `benchmark_stock_dsp.py --blocks 4096` on the developer's private OS 1.40C extraction again measured SPRING REV's worst tested path at 257.5 executed instructions per sample. This measures the comparator only; Ghost Cut's matched moving-control and stress records remain open.
- Memory: 15,870 Y words of the FX2 slot's own buffer, 53 state words in the r7 block (`$00..$34`), and a 107-word P table. Milestone A's package was 585 DSP words; milestone B's, optimized, was 997; milestone C's is 1,107 (`module:dev --build-only --slots fx2 --cycles 281 --cycles-kind modeled --state 53 --buffer 15870`, SHA-256 `58289edadefd1d41…`).

## Sound quality
Expand Down Expand Up @@ -98,10 +101,17 @@ Milestones A (the TAPE engine), B (the GRAIN engine) and C (the drift head). The
| A Part or pattern change while a loop plays | runtime state across the change | — | not run: no pick is admitted in the emulator |
| Knobs swept, selects past their counts | the clamps | dsp_host | dsp_host pass; unit not run |
| The trial ends while a loop is held | rollback in the middle of a loop | — | not run |
| A tempo change while looping | LEN reads the tempo every block | dsp_host (per-tempo renders) | dsp_host pass for a fixed tempo per render; a live change not run |
| A tempo change while looping | The next GRAB uses the live tempo; a captured LEN stays fixed, while MOTN's drift follows the live tempo. | dsp_host (per-tempo renders) | dsp_host pass for a fixed tempo per render; a live change not run |

Nothing here is hardware evidence. Ghost Cut has not run on a track in the emulator: only dsp_host has run its DSP.

### 4 December 2026: current candidate in a minimal development twin

- **Package:** `0.1.0-experimental` candidate SHA-256 `5eef3e908545ae81b8a0151aa68098b5e161f93438afbb9fb417dd2cbfa705fd`, built from the unchanged DSP source with `npm run module:dev -- ghost-cut --build-only --slots fx2 --cycles 281 --cycles-kind modeled --state 53 --buffer 15870`.
- **Base:** an offline RAM-build candidate with `--dsp-loader --site-events --module-sets --cached-modules --dev`, base `536ab03d26fbfe94…`; no base was loaded on the physical unit. A fuller development twin with the current beta options exceeded the flash slot by 1,332 bytes and did not build.
- **Procedure:** `test:procedure --target emulator` passed preflight, software checks, compatibility and the cycle model. The candidate installed as a temporary trial, and all 12 scripted Part switches ran. Its effect could not be selected in the emulator: both T1 and T5 reported “No GHOST CUT in the FX2 chooser.” The emulator reported 100 % CPU, refused other picks, and reported `needs-recovery` on rollback; its inventory retained the trial until the emulator session ended. These results do not establish Ghost Cut audio behavior or a hardware CPU price.
- **Test tooling:** the first two attempts stopped while reading stock chooser placeholders outside the development MEM windows. The third exposed the same issue in `device pick` while restoring DELAY. The final run used local fixes to skip unreadable placeholders. Those fixes are tracked separately from the module.

## On the unit

### 22 November 2026: private RAM install and Undo
Expand All @@ -121,6 +131,10 @@ Nothing here is hardware evidence. Ghost Cut has not run on a track in the emula
- **After Keep:** `inventory` returned one Ghost Cut (handle 10, module `4326ed5b`); `saved` reported one saved and one live module. The unit's later status was normal with the same active package identity. The project and Part were not saved by these commands.
- **Not tested:** A power cycle and restored FX2 selection, extended playing after Keep, and the remaining control/qualification cases above. This is a private experimental Keep, not release qualification.

### 4 December 2026: developer listening report

The developer said they had played Ghost Cut on their connected Octatrack, that it worked well and that they liked the result enough to request a 0.1 release. They did not name the active package hash, GRAIN or PTCH settings, bank/Part, a power cycle, or CPU readings. This is a positive listening report, not a passed release procedure or evidence for those unreported cases.

## Stock flows

Not tested. The module adds a row to the FX2 chooser through the base and takes no key, screen or stock site (`uiClaims: []`).
4 changes: 2 additions & 2 deletions sdk/drafts/ghost-cut/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
triangle over MOTN bars: TAPE plays it right (the first left), GRAIN reads its
second grain there. verify.py renders the DSP against the reference. FDBK is
not built (writing back into the loop would undo the baked seam); its slot
is blank. Not tested on hardware.
is blank. Private hardware trials covered TAPE controls; full qualification is pending.
"""

import importlib.util
Expand All @@ -42,7 +42,7 @@
category=Category.TRACK, author="jacobphono", author_url="https://github.com/jacobphono",
proof=Proof.UNTESTED,
proof_note="Milestones A to C (TAPE, GRAIN, the drift head): rendered in dsp_host against ghost_cut_ref.py on OS 1.40C; "
"not run on a unit or in ot_emu.",
"private unit trials and a TAPE report, but no full qualification or effect pick in ot_emu.",
doc="Microlooper: GRAB loops a tempo-synced piece of the track at RATE, fwd, rev or pendulum.",
menu=MenuEntry(
fx2_id=0x0a,
Expand Down
8 changes: 4 additions & 4 deletions sdk/drafts/ghost-cut/octamod.module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"id": "ghost-cut",
"key": "GHOST CUT",
"name": "Ghost Cut",
"version": "0.1.0-experimental",
"version": "0.1.0",
"category": "effects",
"author": {
"github": "jacobphono",
"credits": [
"jacobphono: Ghost Cut's design, DSP56300 code, integer reference, render gate and documentation (milestone A, the TAPE engine).",
"jacobphono: Ghost Cut's design, DSP56300 code, integer reference, render gate and documentation (milestones A to C).",
"Sam Banks: the octabam SDK, schema and render harness the module is written against.",
"Bryan T (bryantysinger): gcTB is adapted from VIBRATO's vb_tab, and the MIX run and the FX1/FX2 decision follow VIBRATO's (MIT; the notice is in LICENSE). Techniques also learnt from BBD Delay (Cam Jones) and octabam's STUTTR (Ilia Murzinov), no code copied."
]
Expand Down Expand Up @@ -153,7 +153,7 @@
"Mono loop: the ring records the track's mono sum. One wet plays on both sides, except TAPE with DRFT, which plays its two heads left and right.",
"The longest loop is 353 ms; a longer LEN is halved until it fits.",
"After a GRAB the track stays dry for 2.9 ms while the seam is baked into the ring; the loop then starts where it would be had it played since GRAB.",
"The loop starts at GRAB and keeps its own length; it does not restart on the sequencer's steps, so it drifts by under a sample a repeat against the pattern. A GRAB locked on a trig starts it on that step.",
"The loop starts at GRAB and keeps its own length; it does not restart on the sequencer's steps. At 1x track speed, unchanged tempo and nominal RATE, whole-sample rounding is under one sample per repeat. A GRAB locked on a trig starts it on that step.",
"RATE above 1 x has no anti-alias filter and reads with linear interpolation, so high content aliases when sped up.",
"GRAIN uses triangular windows on two grains: steady tones keep their pitch, but transients smear and a slight flutter at the grain rate can be heard. FDBK is not built: writing the loop back into itself would undo the baked seam.",
"The DSP was rendered in dsp_host. A private RAM trial on a unit confirmed the TAPE loop by developer report; GRAIN and full unit qualification remain untested. The effect has not run on a track in the emulator."
Expand Down Expand Up @@ -183,7 +183,7 @@
},
"tests": {
"report": "TESTING.md",
"summary": "Milestones A to C: 115 dsp_host gates pass, bit-exact against the integer reference. Static cost is 281 cycles a sample on GRAIN and 188 on TAPE. Four private RAM trials installed and rolled back on an Octatrack without logged faults; the developer reported that TAPE's GRAB and RATE worked. GRAIN and full hardware qualification remain untested. The emulator refused all effect picks, including Vibrato.",
"summary": "Milestones A to C: 115 dsp_host gates pass, bit-exact against the integer reference. Static cost is 281 cycles a sample on GRAIN and 188 on TAPE. Four private RAM trials installed and rolled back on an Octatrack without logged faults; the developer reported that TAPE's GRAB and RATE worked. A later private Keep retained the same experimental package. GRAIN and full hardware qualification remain untested. The emulator refused all effect picks, including Vibrato.",
"hardwareStatus": "untested",
"evidenceRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d",
"gates": [
Expand Down
27 changes: 27 additions & 0 deletions sdk/drafts/ghost-cut/presentation/thumbnail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading