Repository navigation
seven-eight-loop folds into a leaf track - #109
Conversation
36baa91 to
66a15f1
Compare
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.
66a15f1 to
ecbfe93
Compare
|
Starting review of ecbfe93. |
minjudd
left a comment
There was a problem hiding this comment.
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.
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.
drumschanges one word (sound:→track:), the recipe file moves fromsounds/totracks/keeping its comment, and the README's play line follows to thetrack:spelling. tall-grass'ssounds/directory is now empty; creek's holds the last two, both blocked on multi-rate step 3 (vocal-48kretires when a track carries its own rate, andlead-takefolds with it).The cache story is amended decision 6 exactly, proven a third time:
gen:seven-eight-loopwas a cache hit under the old sound's action key —nameandtypenever 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).drumsre-keyed once, its input moving from the raw render to the wrapper stem, and re-rendered byte-identically to its pre-fold hash (f25b9e091be2…), somainnever re-keyed and printscached.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 anaudioddaemon;field quitstops it):checksaysok. On a warm pre-fold cache the first build printscachedfor//songs/tall-grass/gen:seven-eight-loop— the folded render hitting its old sound key, which is where wrong would show: abuiltline there means the key moved and scsynth would be required (it would fail here, since it is not installed).track:seven-eight-loopandtrack:drumsbuild once whiletrack:mainstayscached— the downstream cache surviving is the proof drums re-rendered byte-identically, andshasum -a 256 .field/out/songs/tall-grass/track/drums.wavstill printsf25b9e091be2…. The second build is entirely cached.depsprints the three-line leaf shape:gen:seven-eight-loop,track:seven-eight-loop,track:drums.field fmtsaysalready 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-loopbecomes a leaf track in the nested-tracks §18 pattern (kit-sc/pad-sc): the SuperCollider recipe moves fromsounds/totracks/seven-eight-loop.yamlas a singlesupercollider:input instead oftype: supercollideron a sound.drumsnow places the track, swappingsound: seven-eight-loopfortrack: seven-eight-loop. The bloom READMEfield playexample uses thetrack:spelling.Plan docs record that this fold (unblocked after
loop-cdretirement / multi-rate step 2) has landed; tall-grasssounds/is empty aside from creek’s remaining sounds blocked on multi-rate step 3.Reviewed by Cursor Bugbot for commit 66a15f1. Configure here.