Skip to content

seven-eight-loop folds into a leaf track - #109

Merged
ninjudd merged 1 commit into
mainfrom
tracks/seven-eight-fold
Aug 10, 2026
Merged

ninjudd merged 1 commit into
mainfrom
tracks/seven-eight-fold

Conversation

@ninjudd

@ninjudd ninjudd commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

The last supercollider sound becomes a leaf track whose one entry is the program — the fold that loop-cd's retirement (#108, multi-rate step 2) unblocked, and the third run of the pattern kit-sc and pad-sc set in #103. drums changes one word (sound: → track:), the recipe file moves from sounds/ to tracks/ keeping its comment, and the README's play line follows to the track: spelling. tall-grass's sounds/ directory is now empty; creek's holds the last two, both blocked on multi-rate step 3 (vocal-48k retires when a track carries its own rate, and lead-take folds with it).

The cache story is amended decision 6 exactly, proven a third time: gen:seven-eight-loop was a cache hit under the old sound's action key — name and type never reach a key, the entry's parameters are the sound schema's verbatim, and scsynth never ran (it is not installed here; nothing needed it). drums re-keyed once, its input moving from the raw render to the wrapper stem, and re-rendered byte-identically to its pre-fold hash (f25b9e091be2…), so main never re-keyed and prints cached.

Testing

From the repo root, pnpm build && pnpm typecheck && pnpm test — 562 tests pass, unchanged from the base: the fold is example-and-docs only, exercising machinery #103 landed and tested.

In examples/bloom (spawns an audiod daemon; field quit stops it):

field check
field build tall-grass
field build tall-grass
field query 'deps(//songs/tall-grass/track:drums)'

check says ok. On a warm pre-fold cache the first build prints cached for //songs/tall-grass/gen:seven-eight-loop — the folded render hitting its old sound key, which is where wrong would show: a built line there means the key moved and scsynth would be required (it would fail here, since it is not installed). track:seven-eight-loop and track:drums build once while track:main stays cached — the downstream cache surviving is the proof drums re-rendered byte-identically, and shasum -a 256 .field/out/songs/tall-grass/track/drums.wav still prints f25b9e091be2…. The second build is entirely cached. deps prints the three-line leaf shape: gen:seven-eight-loop, track:seven-eight-loop, track:drums. field fmt says already canonical.


Note

Low Risk
Example YAML and documentation only; no runtime or schema code changes, with cache behavior validated by existing build machinery.

Overview
seven-eight-loop becomes a leaf track in the nested-tracks §18 pattern (kit-sc / pad-sc): the SuperCollider recipe moves from sounds/ to tracks/seven-eight-loop.yaml as a single supercollider: input instead of type: supercollider on a sound.

drums now places the track, swapping sound: seven-eight-loop for track: seven-eight-loop. The bloom README field play example uses the track: spelling.

Plan docs record that this fold (unblocked after loop-cd retirement / multi-rate step 2) has landed; tall-grass sounds/ is empty aside from creek’s remaining sounds blocked on multi-rate step 3.

Reviewed by Cursor Bugbot for commit 66a15f1. Configure here.

@ninjudd

ninjudd commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Stack note (not for the squash): this is the child layer of stack #110 on #108 — the export flags land first, this fold builds on the branch that removed loop-cd. Review the base first; if #108 changes, this branch gets gh stack sync and its gate re-runs.

@ninjudd
ninjudd force-pushed the tracks/seven-eight-fold branch from 36baa91 to 66a15f1 Compare August 9, 2026 23:37
@ninjudd
ninjudd marked this pull request as ready for review August 10, 2026 00:15
Base automatically changed from export/rate-and-depth to main August 10, 2026 00:16
The last supercollider sound becomes a track whose one entry is the
program — the fold loop-cd's retirement unblocked. gen:seven-eight-
loop cache-hit under the old sound key (scsynth never ran), drums
re-rendered byte-identically to its pre-fold hash, and main never
re-keyed — amended decision 6, third time proven. tall-grass's
sounds/ is now empty; creek's holds the two normalize-blocked
stragglers that multi-rate step 3 frees.
@ninjudd
ninjudd force-pushed the tracks/seven-eight-fold branch from 66a15f1 to ecbfe93 Compare August 10, 2026 00:16
@minjudd

minjudd commented Aug 10, 2026

Copy link
Copy Markdown

Starting review of ecbfe93.

@minjudd minjudd left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving ecbfe93, reviewed after it came out of draft and restacked onto main — base is main, and GitHub reports it mergeable, which I checked rather than assumed now that #108 has landed under it.

The cache hit is provable here, so scsynth never has to run to know it. Comparing the node either side of the fold:

main   //songs/tall-grass/sound:seven-eight-loop   parameters {"seed":7801,"duration":3.182,"channels":2}   action d61bda15904e
head   //songs/tall-grass/gen:seven-eight-loop     parameters {"seed":7801,"duration":3.182,"channels":2}   action d61bda15904e

Same program hash, same parameters, same key. That is the whole of the claim that the last supercollider sound can move without re-rendering, and it needs no warm cache to check.

Nothing else moves. Every track's input: list and parameters across both songs, main against this head, and the entire difference is:

drums   input: //songs/tall-grass/sound:seven-eight-loop  →  //songs/tall-grass/track:seven-eight-loop
+ tall-grass/seven-eight-loop: a new stem, one clip, start 0, no duration

drums' parameters line is byte-identical — including the slip: 5455 that makes it interesting — so its re-key comes only through the input hash, which is amended decision 6 for the third time. drums re-rendering byte-identically and main never re-keying is the daemon half, yours.

The README edit was necessary rather than tidy: //songs/tall-grass/sound:seven-eight-loop is now no such label, and the track: spelling resolves, so the line would have been a broken invitation. deps(//songs/tall-grass/track:drums) prints the three-line leaf shape.

tall-grass's sounds/ is gone entirely, creek's holds exactly lead-take.yaml and vocal-48k.yaml, and the plan's "one sound still waits" is right on a reading the PR body's "two stragglers" obscures: vocal-48k retires rather than folds, so lead-take really is the last sound. A clean git archive export of examples/bloom is 34 files and checks ok, so nothing here leans on a built cache.

562 tests, 63 fail — identical to main's baseline, all field-audiod is not built. pnpm typecheck clean.

No findings.

@ninjudd
ninjudd merged commit 88a981b into main Aug 10, 2026
1 check passed
@ninjudd
ninjudd deleted the tracks/seven-eight-fold branch August 10, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants