Repository navigation
Conversation
Every project plan opened with a `# Plan: …` heading. The prefix says nothing the reader doesn't already know: each one lives under `docs/projects/`, and the `project` command already labels it as a project. Because Projector takes a project's title from its first heading, the prefix also filled every row of `project list` and the project site with the same word, which made the titles harder to scan. This change removes the prefix from all 51 plans that had it. `daw-features` never had one. Three headings started with an ordinary lowercase word once the prefix was gone, so they now start with a capital: "The UI, first version", "The TUI" and "Hosted plugins — AU and VST3 as inserts". Headings that start with a name the docs keep lowercase stay as they were: `bloom`, `prettier`, `src/engine` and the backticked `field` commands. Projector's own templates never add the prefix. It was a habit in this repository, and new plans picked it up by copying the existing ones. Once this merges, `main` has no plan left to copy it from. This change covers only plans that already exist on `main`. Two open PRs add new plans that still carry the prefix, because their authors copied it from `main`: #185 adds `install` (`# Plan: Install and upgrade`) and #202 adds `instrument-knobs` (`# Plan: Instrument knobs`). Each needs the same one-line fix on its own branch. The other open PRs that edit plans (#196, #197, #198, #201) change plan bodies but not headings, so they merge cleanly on top of this. ## Testing From the repository root, with nothing to build first: ```sh grep -rn "Plan: " docs/projects project list project check ``` `grep` should print nothing. `project list` should show titles such as `Arming` and `The UI, first version`. A title that still begins with `Plan:` means a heading was missed. `project check` should print `Project plans are valid.` It also prints a `site-workflow-outdated` warning, which `main` already shows and which this change does not touch. None of the commands change any files.
ninjudd
left a comment
There was a problem hiding this comment.
📽️ Projector review · 0.7.4 · model claude-opus-5-5 · effort xhigh · CHANGES REQUESTED · took 38m 13s over 2 heads
This head makes field keys <track> play through the track's effects. routeArmed opens a daemon input for each armed track and loads the song's live session with those inputs. The voice host then plays each routed instrument into a private bus, and a field-route synth carries that bus into the input's ring through FieldOut. With the transport stopped, the daemon plays the inputs through a second instance of main's chain. When routing is not possible, the voice plays straight to the device and the instrument's line says why. The change leaves hearing it (criterion 3), its latency (criterion 4), and an hour without a dropout (criterion 5) to be checked by hand, and it accepts that a session swap rebuilds the overlay cold.
5 finding threads: 0 resolved, 5 open
Covered 23 of 23 changed files; none is generated.
The routing itself works. The five threads are about what happens around it. A field keys that fails after routing leaves its input open and the daemon pinned. Any other command that loads a session drops the input window. Nothing ties the voice host's device and rate to the daemon's. On Linux the routed scsynth loses its core UGens. And the voice contract still tells instrument authors that out is bus 0. Each of the first four leaves the voice silent, or misplaced, while the instrument's line says the effects are heard.
Disclosures
src/keys/routing-voice.test.tswas read, not run. It boots a voice host whosescsynthopens the output device and whosesclangconnects every MIDI source. The operator's ownfield keyssession was live on that device during the review.- The Linux thread rests on SuperCollider's source, not a run. The review ran on macOS. It read
SC_Lib_Cintf.cppat 3.13.0 and 3.14.1 and the CMake files that defineSC_PLUGIN_DIRandSC_DATA_DIR. - Windows CI fails, but not because of this change. Linux CI passes at this head. The windows job fails 12 tests in
src/keys/voice-host.test.tsand 2 insrc/commands/record-midi-daemon.test.ts. #198's windows job fails the same ten older voice-host tests and the same two record-midi tests. The two voice-host tests this change adds fail the same way, because the fakesclangis not an.exe.mainhas a fix for windows CI that this stack does not include yet.
Suggestions
docs/keys.md:233: the latency sentence counts only the limiters and hosted plugins. The reader also holds a daemon block plus 256 frames (RingInput::writerBurst), which is often more than the limiter's 5 ms. Name the ring's share, or leave the figure to criterion 4.src/keys/voice-host.ts:216: each start leaves afield-route-*directory in the temp directory, and nothing removes it. Remove it inclose().src/commands/keys.ts:161: with routing, a program armed on two tracks appears twice inprograms. It is then watched twice, and each save reloads every voice twice. Watch each program once.src/keys/routing.ts:42:AudiodClient.connectsits outside thetry. A daemon that never answers then endsfield keyswith an error instead of the dry fallback. Move it inside.sc/voice-host.scd:123:hostLinedoes not parse the ready line'sroutedcount, and nothing reads it. Drop it, or show it on the line.native/audiod/src/main.cpp:210:--ring-feed abc take.wavparses the ring as 0, so the daemon starts as a server instead of failing. Refuse a ring that is not a positive number.src/keys/voice-host.ts:269:stopServernow encodes/g_freeAllwithsynthdef.ts'soscMessage, imported asoscWith, beside this file's own argument-lessoscMessage. Use the one encoder for both messages.docs/projects/keyboard-instrument/readme.md: §7 question 4 still says hearing the voice through the mix is deferred to live-supercollider. A dated amendment like the one this change adds to arming.md §2.1 would point readers at chunk 3.
Plans
live-supercollider and arming are in-progress. This change adds a progress entry to the first and an amendment to the second, and neither introduces an open question. §7's three questions were answered before this head. §9 says chunk 3 decides whether a swap under a playing input may go silent for the path's latency, and §10's new entry answers "accepted for now". §9's sentence still says chunk 3 decides. keyboard-instrument.md §3 recorded that live-supercollider would change where the sound goes, so this change carries that record out rather than reversing it. The fifth thread covers the one place in §2.6 that is now wrong.
What was run, at 5a51b4f
- Build.
pnpm install --frozen-lockfile,field-audiodin Release against a read-only JUCE 8.0.4 copy, and FieldOut. All three built. - Checks.
pnpm typecheckpasses.project checkpasses, with the standing warning about the site workflow. - Focused tests.
src/keys/routing.test.ts,src/audiod/live-ring.test.ts,src/keys/voice-host.test.ts, andsrc/commands/keys.test.ts, withFIELD_AUDIODset: 32 passed. Every ring the tests opened was gone from shared memory afterward. - Reproductions. Each ran in a temp project with its own null-output daemon. They covered the orphaned input, a
field play-style session load, and a 44100 Hz song under conversion. Each daemon quit at the end, and no ring was left behind. - By reading. The idle path's latency equals the playing path's: the output chain runs once, and its FIFO starts with exactly the chain's latency. No new code on the audio thread allocates, as long as a block stays within the reserved 16384 frames. The new SuperCollider code uses no names that Event, Environment, or Dictionary define. A rate restart frees the route before quitting, then loads its SynthDef again and makes new buses at the next boot. Reload leaves the routes alone and keeps
voiceDefsin instrument order. Quitting sends/g_freeAllbefore/quit.
ninjudd
left a comment
There was a problem hiding this comment.
📽️ Projector review · 0.7.4 · model claude-opus-5-5 · effort xhigh · CHANGES REQUESTED · took 9m 27s
This head makes field keys <track> play through the track's effects, as the review of 5a51b4f read it. Each armed track gets an input in the daemon, the song loads with those inputs, and the voice host writes each routed instrument through a field-route synth into FieldOut. When the transport is stopped, the daemon plays the inputs through a second instance of main's chain. The new commit, dc4d01c, answers that review in five ways:
- An input closes with its connection. The daemon now closes an input when the connection that opened it drops, replacing the
inputsOpen()pin, andfield keyscloses its routing in afinally. - Other loads keep the inputs.
field play, its watch,field ui, andfield recordcompile in the openkeys:inputs for their song. - The voice host follows the daemon. It boots on the daemon's device and plays dry with a reason when
--devicenames another device or the daemon converts the song's rate. - FieldOut is added, not substituted. FieldOut's directory goes on
SC_PLUGIN_PATH, soscsynthkeeps its own plugins. - The voice contract is corrected. The docs now say a voice writes to
out.
10 finding threads: 5 resolved, 5 open
Covered 30 of 30 changed files; none is generated.
The five earlier threads are fixed at this head, and each was already resolved. I checked each fix:
- Orphaned input. A process that routed and exited without closing left no input open one second later. The next
field keyson that track routed. - Other loads. A load compiled with
keysInputsForkept reading the ring: 23552 frames at peak 0.25 while stopped. - Device and rate.
routing.test.tsroutes a 44100 Hz song on the 48 kHz null device and gets the dry reason with no input left open. The device check was verified by reading, because null output has no named device. - Plugin path. Non-realtime
scsynthwith FieldOut only onSC_PLUGIN_PATHand no-Uloaded the core UGens and FieldOut with no errors, and wrote into the ring. - Voice contract. Both
outrows now say what the voice must write to.
The five new threads come from this head and from candidates the first review's helpers raised. Starting or quitting field keys turns off another terminal's loop and solo. A gain change while stopped makes the routed voice buzz. A failed route can say nothing at all. Two plans still describe chunk 3 as designed. And one comment promises a fallback the code does not take.
Disclosures
- Tests left out.
src/keys/routing-voice.test.ts,src/commands/record-tracks-daemon.test.ts, andsrc/commands/record-midi-daemon.test.tswere not run. They bootsclang, publish a MIDI source, or arm MIDI, and the operator's ownfield keyssession was live on this machine. - The buzz thread is verified by reading, not by ear. It rests on the ramp arithmetic in
rampedGain,ramp, andrenderIdle. A null-output daemon gives no output waveform to measure. - The Linux fix is verified by mechanism on macOS. This review ran
scsynthwithSC_PLUGIN_PATHand no-Uon macOS. Its Linux behavior rests on SuperCollider's source at 3.13.0 and 3.14.1. - CI. Linux passes at this head, and windows was still running when this review was written. The base's windows job still fails in
voice-host.test.tsandrecord-midi-daemon.test.ts, asmaindid before #197.
Suggestions
docs/keys.md:234: the latency sentence still counts only the limiters and hosted plugins. The reader also holds a daemon block plus 256 frames.src/keys/voice-host.ts:208: each start still leaves afield-route-*directory in the temp directory. Remove it inclose().src/commands/keys.ts:182: a program armed on two tracks is watched twice, so each save reloads every voice twice. Watch each program once.src/keys/routing.ts:61:AudiodClient.connectsits outside thetry, so a daemon that never answers endsfield keyswith an error. It also waits in raw mode before the key handler exists, so Esc does nothing until it answers.sc/voice-host.scd:122: nothing reads the ready line'sroutedcount, so a route that fails insidescsynthgoes unreported.native/audiod/src/main.cpp:210:--ring-feed abc take.wavparses the ring as 0, and the daemon starts as a server.native/audiod/src/live.cpp:482: the idle chain keeps its state across play and stop. After a stop, the first blocks replay the end of what you played before you pressed play, including an old reverb tail.docs/projects/keyboard-instrument/readme.md: §7 question 4 still defers hearing the voice through the mix to live-supercollider.
Plans
live-supercollider, arming, and keyboard-instrument are in-progress. This change edits all three and opens no question. §9 still says chunk 3 decides whether a swap under a playing input may go silent for the path's latency, and §10 answers "accepted for now". The fourth thread covers the sections the build changed.
What was run, at dc4d01c
- Build.
pnpm install --frozen-lockfile,field-audiodin Release against a read-only JUCE 8.0.4 copy, and FieldOut. All three built. - Checks.
pnpm typecheckpasses, and so doesproject check. - Tests. With
FIELD_AUDIODset, 98 tests passed in nine files:routing,live-ring,voice-host,keys,play-daemon,record-daemon,ui,ui-edits, andwatch. Every ring the tests opened was gone from shared memory afterward. - Reproductions. Each ran in a temp project with its own null-output daemon: the orphaned input, a reload through
keysInputsFor, a 44100 Hz song,SC_PLUGIN_PATH, another terminal's loop and region, and the instrument line after a failed route. Every daemon quit, and no ring was left behind.
ninjudd
left a comment
There was a problem hiding this comment.
📽️ Projector review · 0.7.4 · model claude-opus-5-5 · effort xhigh · CHANGES REQUESTED · took 3m 56s
This head makes field keys <track> play through the track's effects. Each armed track gets an input in the daemon, the song loads with those inputs, and the voice host writes each routed instrument through a field-route synth into FieldOut. With the transport stopped, the daemon plays the inputs through a second instance of main's chain. The new commit, 269cb99, answers the five threads from the review of dc4d01c. A field keys load now keeps the loaded session's loop, region, and solo, which status now reports. Overlay glides run on the overlay's own clock. The dry note always gives the reason and names the effects above the track. A comment and its error text now agree. And the plans carry dated amendments for what chunk 3 built. It also takes most of the earlier suggestions.
11 finding threads: 10 resolved, 1 open
Covered 34 of 34 changed files; none is generated.
All ten finding threads are fixed at this head, and each was already resolved. I checked the five from the last review:
- Loop, region, and solo. Against a null-output daemon,
loopingstayed true throughfield keysrouting and quitting, and a region set withloop(0, 48000)survived routing.routing.test.tscovers the solo. - Ramp while stopped.
renderOverlaynow evaluates each glide onoverlayClock, which advances with every block the overlay renders, playing or stopped.rampstarts the glide there, so it finishes in its 15 ms either way, and while playing it keeps step withclock. Verified by reading. - Failed route. The instrument line now reads
bass (bass) live at 48000 Hz on MacBook Pro Speakers · dry (FieldOut is not built: run pnpm build:native).effectsAbovelists the effects frommaindown to the named track. - Plans. live-supercollider §2.1, §2.2, and §9, arming.md §2.1, §3, and criterion 2, and keyboard-instrument.md §7 question 4 carry dated amendments.
- Comment. The
fieldOutPluginDircomment matches the code, and the reason namesFIELD_FIELDOUTwhen it is the cause.
The earlier five still hold. An input left by a dead process was closed within a second, and a reload through keysInputsFor kept reading the ring.
The one new thread is a line the glide sentence left unwrapped.
Disclosures
- Tests left out.
src/keys/routing-voice.test.ts,src/commands/record-tracks-daemon.test.ts, andsrc/commands/record-midi-daemon.test.tswere not run. They bootsclang, publish a MIDI source, or arm MIDI, and the operator's ownfield keyssession was live on this machine. - The ramp fix is verified by reading, not by ear. A null-output daemon gives no output waveform to measure, and the golden tests in
live-input.test.tsexercise no ramp. - CI. Linux passes at this head, and windows was still running when this review was written.
Suggestions
native/audiod/src/live.cpp:624:} overlayClock += n;puts the clock's advance on the closing brace of the slot loop, where it reads as part of the loop. Give it a line of its own.src/commands/keys.ts:187: when FieldOut is not writing, the line saysdry: the effects on … are not heard. But the voices then play into a bus that nothing reads, so you hear nothing at all. Say the voice is silent.docs/projects/live-supercollider/readme.md:245: the §9 amendment says resetting the idle chain "would rebuild stages inside the audio callback".Player::stopalready rebuilds the output chain throughlocate(0)underliveLockon the message thread, and the idle chain could be rebuilt beside it instopandpause.src/keys/routing.ts:87:reloadswaps the session during a take, becauseloadSessionhas no capture check. It then fails to restore a loop take's region, because the daemon refusesloopwhile recording. Starting or quitting afield keysin the middle of a loop take therefore breaks the take's loop. Refuse to reload whilestatus.recordis active.src/keys/routing.ts:75: a daemon that never answers now plays dry with a reason. But the connect still waits up to about 6 s in raw mode, before the key handler exists, so Esc does nothing in that time.
Plans
live-supercollider, arming, and keyboard-instrument are in-progress. This change amends all three and opens no question. §9 now records how glides behave on the idle path, and why the idle chain keeps its state. The third suggestion is about that reason.
What was run, at 269cb99
- Build.
pnpm install --frozen-lockfile,field-audiodin Release against a read-only JUCE 8.0.4 copy, and FieldOut. All three built. - Checks.
pnpm typecheckpasses, and so doesproject check. - Tests. With
FIELD_AUDIODset, 108 tests passed in ten files:routing,targets,live-ring,voice-host,keys,play-daemon,record-daemon,ui,ui-edits, andwatch. The 5 golden tests inlive-input.test.tsalso passed. Every ring the tests opened was gone from shared memory afterward. - Reproductions. Each ran in a temp project with its own null-output daemon: the orphaned input, a reload through
keysInputsFor, another terminal's loop and region, and the instrument line after a failed route. Every daemon quit, and no ring was left behind.
ninjudd
left a comment
There was a problem hiding this comment.
📽️ Projector review · 0.7.4 · model claude-opus-5-5 · effort xhigh · CHANGES REQUESTED · took 3m 52s
This head makes field keys <track> play through the track's effects. Each armed track gets an input in the daemon, the song loads with those inputs, and the voice host writes each routed instrument through a field-route synth into FieldOut. With the transport stopped, the daemon plays the inputs through a second instance of main's chain. The new commit, f1d634d, makes these changes:
- Rewraps the glide sentence. This answers the one open thread.
- Resets the idle chain on stop and pause. It rebuilds that chain on the message thread.
- Leaves a take alone.
field keysneither routes nor reloads while a take is recording. - Calls a voice that never flowed silent. The line no longer calls it dry.
- Lets Ctrl-C quit during routing. It works while the daemon is still answering.
12 finding threads: 11 resolved, 1 open
Covered 35 of 35 changed files; none is generated.
The open thread is fixed: the "Live inputs" paragraph in docs/audio-engine.md now wraps between 66 and 73 characters. The other ten threads still hold at this head:
- Orphaned input. An input left by a dead
field keysclosed within a second. - Reloads. A reload through
keysInputsForkept reading the ring. - Loop and region. Another terminal's loop and region survived routing and quitting.
The new thread is a crash. The idle chain's reset leaves the FIFO behind it empty while the rebuilt limiter withholds its latency again. So the first idle block after a stop or a pause reads past the FIFO and erases past its end. It needs only a routed input and a limiter or hosted plugin on main.
Disclosures
- Tests left out.
src/keys/routing-voice.test.ts,src/commands/record-tracks-daemon.test.ts, andsrc/commands/record-midi-daemon.test.tswere not run. They bootsclang, publish a MIDI source, or arm MIDI, and the operator's ownfield keyssession was live on this machine. - Crash cleanup. The reproduction crashed two of my own null-output daemons in temp projects. I unlinked the two rings they left behind.
- The take guard is verified by reading. It refuses to route, and
closeskips the reload, whilestatus.record.stateisrecording. Reproducing it would mean arming a take, which this review avoided. - CI. Linux passes at this head, and windows was still running when this review was written.
Suggestions
src/commands/keys.ts:207: the silent reason, "scsynth is not writing the voice into the daemon, so FieldOut did not load", puts cause and effect the wrong way round. FieldOut not loading is why nothing is written.src/commands/keys.ts:100: the Ctrl-C handler decodes each chunk on its own, so a quit sequence split across two reads is missed. After a quit, the process also waits for routing to finish before it exits.
Plans
live-supercollider, arming, and keyboard-instrument are in-progress, and this change opens no question. The §9 amendment says the idle chain is rebuilt on stop and pause, which matches Player::stop and Player::pause. The thread above is about how that rebuild leaves the FIFO.
What was run, at f1d634d
- Build.
pnpm install --frozen-lockfile,field-audiodin Release against a read-only JUCE 8.0.4 copy, and FieldOut. All three built. - Checks.
pnpm typecheckpasses, and so doesproject check. - Tests. With
FIELD_AUDIODset, 113 tests passed in eleven files:routing,targets,live-ring,live-input,voice-host,keys,play-daemon,record-daemon,ui,ui-edits, andwatch. Every ring the tests opened was gone from shared memory afterward. No test stops or pauses with a routed input under a limiter. - Reproductions. Each ran in a temp project with its own null-output daemon. The orphaned input, a reload through
keysInputsFor, and another terminal's loop and region all hold. A stop and a pause with a limiter onmaincrash the daemon at this head and not at269cb99.
ninjudd
left a comment
There was a problem hiding this comment.
📽️ Projector review · 0.7.4 · model claude-opus-5-5 · effort xhigh · CLEAN · took 3m 48s
This head makes field keys <track> play through the track's effects. Each armed track gets an input in the daemon, the song loads with those inputs, and the voice host writes each routed instrument through a field-route synth into FieldOut. With the transport stopped, the daemon plays the inputs through a second instance of main's chain. The new commit, bf90bdb, fixes the crash from the last review: a stop or a pause now preloads the idle chain's delay with its latency in zeros, through a chainLatency helper that buildOverlay shares. routing.test.ts now stops and pauses under a limiter on main. The commit also reverses the silent reason so it reads cause first, carries an unfinished key sequence in the quit handler, and exits at once when you quit before routing lands.
12 finding threads: 12 resolved, 0 open
Covered 35 of 35 changed files; none is generated.
This head is clean. Every finding thread is fixed, and I checked each against this head.
Checked
- The crash is gone, with a limiter or a hosted plugin on
main. Each case ran with a routed input and a null-output daemon in a temp project. Amainwith- effect: limitsurvived bothstopandpause, and so did amainhosting the fixture VST3 at 128 samples of latency. Atf1d634dthe same four runs each killed the daemon. After play then stop under the limiter, a fed tone read all 24000 frames at peak 0.25, so the idle path plays again and does not merely survive. - The new test catches the crash. Run against
f1d634d's daemon, the newrouting.test.tscase fails with "This socket has been ended by the other party". Against this head it passes. - The earlier fixes hold. An input left by a dead
field keysclosed within a second. A reload throughkeysInputsForkept reading the ring, 23552 frames at peak 0.25. Another terminal's loop and region survived routing and quitting. A failed route readsbass (bass) live at 48000 Hz on MacBook Pro Speakers · dry (FieldOut is not built: run pnpm build:native). - The quit path holds. By reading: the quit handler carries
restacross chunks and hands it toplayRouted. On a quit before routing lands,keysCommandrestores the terminal and then callsprocess.exit(0). An input a late routing opens closes when that connection drops. - The plans pass the readiness gate. live-supercollider, arming, and keyboard-instrument are
in-progress, and this change opens no question.
Disclosures
- Tests left out.
src/keys/routing-voice.test.ts,src/commands/record-tracks-daemon.test.ts, andsrc/commands/record-midi-daemon.test.tswere not run. They bootsclang, publish a MIDI source, or arm MIDI, and the operator's ownfield keyssession was live on this machine. - Crash cleanup. The control runs at
f1d634dcrashed my own null-output daemons in temp projects. I unlinked every ring they left, and none is left. - CI. Linux passes at this head, and windows was still running when this review was written.
What was run, at bf90bdb
- Build.
pnpm install --frozen-lockfile,field-audiodin Release against a read-only JUCE 8.0.4 copy, the fixture plugin, and FieldOut. All four built. - Checks.
pnpm typecheckpasses, and so doesproject check. - Tests. With
FIELD_AUDIODset, 114 tests passed in eleven files:routing,targets,live-ring,live-input,voice-host,keys,play-daemon,record-daemon,ui,ui-edits, andwatch. Every ring the tests opened was gone from shared memory afterward. - Reproductions. Stop and pause under a limiter and under a hosted plugin, play then stop with a fed tone, the orphaned input, a reload through
keysInputsFor, another terminal's loop and region, and the instrument line after a failed route. Every daemon quit, and no ring was left behind.
…ough FieldOut (live-supercollider.md chunk 3) field keys on tracks opens an input per armed track in field-audiod, loads the song's live session with those inputs, and starts the voice host with a ring per instrument: each routed instrument's voices play into a private bus, and a route synth Field writes itself, In into FieldOut, carries the bus into the ring. The voice then passes through the track's effects and every track's above it, up to main's. On quit the inputs close and the song loads again without them; when routing is not possible the line keeps the dry note and says why. With the transport stopped, the daemon plays what the inputs reach through a second instance of main's chain, so you play over silence and the song's chain and position stay put. Open inputs pin the daemon open, each input reports a peak, and --ring-feed writes a file into a ring as FieldOut would. Every way the voice host stops frees its nodes first, because scsynth crashes quitting with a FieldOut still running.
…, and route only on the daemon's device An input now closes when the connection that opened it drops, in place of pinning the daemon open, and field keys closes its routing in a finally, so a failure or a kill leaves nothing open. field play, its watch, field ui, and field record compile in the open keys: inputs for their song, read from status, so their loads keep a routed voice heard, and field keys' own loads keep another terminal's. The voice host boots on the daemon's device, and a track plays dry with the reason when --device names another or the daemon converts the song's rate; each ring carries the device's rate once a session has settled it. FieldOut reaches scsynth through SC_PLUGIN_PATH beside its own plugins, which on Linux the replaced plugin path had lost, and the voice contract in keys.md and keyboard-instrument.md says a voice writes to out, a private bus when routed.
…hy a route failed A field keys load compiled the song with its inputs alone, so it dropped the loop, region, and solo another terminal had set; it now reads them from status, which reports the session's solo, and loads the song with them. Overlay glides run on a clock of the overlay's own, which keeps moving while the transport is stopped, so a fader moved while stopped no longer restarts its glide every block. The dry note gives the reason whenever routing failed, and names the effects above the track as well as those under it; FIELD_FIELDOUT is named when it is the cause, and field keys checks that FieldOut is writing once the voice is live. The voice host removes its route file on close, field keys watches each program once, routing reports a daemon that does not answer, and --ring-feed refuses a ring that is not a number. live-supercollider §2.1 and §2.2, arming.md, and keyboard-instrument.md carry dated amendments for what chunk 3 changed.
…take alone The glide sentence in audio-engine.md and FieldOut's README rewrap to the paragraphs around them. A stop or a pause now rebuilds the idle path's chain on the message thread beside the output chain's own rebuild, so playing over silence carries no tail from before play, and §9 says so. field keys neither routes nor reloads the session under a take, whose bed and loop region a reload would disturb; a route that never flowed reads as silent rather than dry; and Ctrl-C quits while the daemon is still answering.
… at once before routing lands A stop or a pause rebuilt the idle path's chain, whose limiter then withholds its lookahead again, but only zeroed the delay after it, which in steady state is empty; the next idle block read past its end and the daemon died. resetIdle now refills the delay with the chain's latency in zeros, as buildOverlay does, through a chainLatency helper both share, and routing.test.ts stops and pauses under a limiter on main. The silent reason reads cause first. The quit handler that runs while routing is in flight carries an unfinished key sequence into the next chunk, and a quit there exits at once: an input a late routing opens closes with the process's connection.
ninjudd
left a comment
There was a problem hiding this comment.
📽️ Projector review · 0.7.4 · model claude-opus-5-5 · effort xhigh · CHANGES REQUESTED · took 19m 40s over 2 heads
This head is the stack rebased onto main through d94b734. Its base also gains one #198 commit, d1e80ab, which counts the ring header and FieldOut as daemon sources in field upgrade status and rewraps FieldOut's README. #201's own change is unchanged from the head I last found clean, bf90bdb, except for one resolved conflict. field keys <track> still plays through the track's effects. Each armed track gets an input in the daemon, the song loads with those inputs, and the voice host writes each routed instrument through FieldOut. In src/keys/voice-host.test.ts, the resolution adopts main's itStartsTheStub helper for the two voice-host tests this change adds and for the reload test.
13 finding threads: 12 resolved, 1 open
Covered 34 of 34 changed files; none is generated.
The base moved, so this is a full review. #201's own diff matches bf90bdb's file for file, with two exceptions: voice-host.test.ts differs, and the FieldOut README rewrap now sits in the base. I reviewed the move from 3bab47e to this head before publishing, and nothing else changed. I then read what main brought in for code this change touches. These changes come from #200 (plan headings), #197 (the windows fixes), #185 (install.sh and field upgrade), and #202 (a plan). #185 adds src/remedies.ts and moves every build remedy the CLI prints into it, so that a message names a command that works inside a song project. This change adds one more such remedy, written out by hand, and that is the one new thread.
All twelve earlier finding threads stay fixed at this head:
- Stop and pause. The daemon survives both under a limiter on
main. After play then stop, a fed tone reads all its frames at peak 0.25. - Orphaned input. An input left by a dead
field keyscloses within a second. - Reloads. A reload through
keysInputsForkeeps reading the ring. - Loop and region. Another terminal's loop and region survive routing and quitting.
- Failed route. The line gives the reason.
Disclosures
- Native code did not change, so I did not rebuild the daemon.
native/andsc/are identical betweenbf90bdband this head, andmaintouched neither. The daemon tests here ran against thefield-audiodI built and verified atbf90bdb. FieldOut was built again in this worktree. - Tests left out.
src/keys/routing-voice.test.ts,src/commands/record-tracks-daemon.test.ts, andsrc/commands/record-midi-daemon.test.tswere not run. They bootsclang, publish a MIDI source, or arm MIDI, and the operator's ownfield keyssession was live on this machine. - CI. With #197's fixes now in the base, a windows failure would be this change's own. Neither job had finished at this head when this review was written. The run at
3bab47epassed on linux, and its windows job was cancelled by this push.
What was run, at 5afb4b5
- Checks.
pnpm install --frozen-lockfile,pnpm typecheck, andproject checkpass. - Tests. With
FIELD_AUDIODset, 114 tests passed in eleven files:routing,targets,live-ring,live-input,voice-host,keys,play-daemon,record-daemon,ui,ui-edits, andwatch. Every ring the tests opened was gone from shared memory afterward. - Reproductions. Stop and pause under a limiter, play then stop with a fed tone, the orphaned input, a reload through
keysInputsFor, another terminal's loop and region, and the instrument line after a failed route all hold. In a fresh song project,pnpm build:nativefails withERR_PNPM_NO_IMPORTER_MANIFEST_FOUND, which is the basis of the new thread. Every daemon quit, and no ring was left behind.
field keys runs inside a song project, where the checkout's pnpm scripts do not exist, so the dry reason's pnpm build:native failed there. It now takes BUILD_DAEMON from src/remedies.ts, field upgrade audiod, which runs build:native in the checkout and so builds FieldOut too; keys.test.ts and the example line in keys.md match.
ninjudd
left a comment
There was a problem hiding this comment.
📽️ Projector review · 0.7.7 · model claude-opus-5-5 · effort xhigh · CLEAN · took 0m 17s
This head makes field keys <track> play through the track's effects. Each armed track gets an input in the daemon, the song loads with those inputs, and the voice host writes each routed instrument through a field-route synth into FieldOut. With the transport stopped, the daemon plays the inputs through a second instance of main's chain. The new commit, b13d283, answers the one open thread. routeArmed now builds the FieldOut reason from BUILD_DAEMON in src/remedies.ts, which is field upgrade audiod, and the example line in docs/keys.md and the strings in keys.test.ts match.
13 finding threads: 13 resolved, 0 open
Covered 34 of 34 changed files; none is generated.
This head is clean. Every finding thread is fixed, and I checked each against this head.
Checked
- The remedy. The built
dist/keys/routing.jsgivesFieldOut is not built: run field upgrade audiod. That command runsbuild:nativein the checkout, which builds FieldOut as well as the daemon. This change adds no other hand-writtenpnpm build:native. On Windows,routeArmedreturns its platform reason before this one, so the Windows form ofBUILD_DAEMONnever shows here. - The earlier fixes hold. The daemon survives
stopandpauseunder a limiter onmain. An input left by a deadfield keyscloses within a second, and the next one on that track routes. Another terminal's loop and region survive routing and quitting. - Windows CI passes. Run 38165135190 passes on linux and on windows. It is the first windows run for this change with #197's fixes in its base, so the windows job is a clean signal for this change.
- The plans pass the readiness gate. live-supercollider, arming, and keyboard-instrument are
in-progress, and this change opens no question.
Disclosures
- Native code did not change, so I did not rebuild the daemon.
native/andsc/are identical tobf90bdb, where I built and checkedfield-audiod. The daemon tests here ran against that build, and FieldOut was built again in this worktree. - The review was set up twice. The
projectcommand on this machine moved from 0.7.4 to 0.7.7 during the review, and 0.7.7 does not read a review that 0.7.4 set up. I deleted the first start comment and set this head up again at 19:06 UTC, so the time in the signature counts from there. Every check here ran on this same commit,b13d283, from 18:46. - Tests left out.
src/keys/routing-voice.test.ts,src/commands/record-tracks-daemon.test.ts, andsrc/commands/record-midi-daemon.test.tswere not run. They bootsclang, publish a MIDI source, or arm MIDI, and the operator's ownfield keyssession was live on this machine.
What was run, at b13d283
- Checks.
pnpm install --frozen-lockfile,pnpm typecheck, andproject checkpass. - Tests. With
FIELD_AUDIODset, 114 tests passed in eleven files:routing,targets,live-ring,live-input,voice-host,keys,play-daemon,record-daemon,ui,ui-edits, andwatch. Every ring the tests opened was gone from shared memory afterward. - Reproductions. Stop and pause under a limiter, the orphaned input, and another terminal's loop and region all hold. Every daemon quit, and no ring was left behind.
- CI. Run 38165135190, watched to the end: linux passed at 18:50 UTC and windows at 19:04 UTC.
When you play a track with
field keys, you should hear it the way the song plays it, through the track's effects and the effects of every track above it up tomain's limiter. Until now the voice played straight to the device, and the line said "dry". This is chunk 3 of the live-supercollider plan, the one you hear. It wiresfield keysto the input path of #196 and the ring of #198, and makes the daemon play inputs while the song is stopped.When you name tracks,
field keysasks the daemon for an input per armed track, loads the song's live session with those inputs, and starts the voice host with one ring per instrument. Each track gets a voice of its own, even when two tracks share an instrument, because each voice goes to its own ring. In the voice host, each routed instrument's voices play into a private bus, and a route synth at the tail,InintoFieldOut, carries that bus into the ring. sclang has noFieldOutclass, and adding one would mean editing every user's class library, so Field writes the route's SynthDef itself withsrc/keys/synthdef.tsand the host loads it by file. An instrument named without a track still plays straight to the device. When you quit, the inputs close and the song loads again without them.When routing isn't possible, the voice still plays straight to the device, and the instrument's line keeps the dry note with the reason:
FieldOutnot built, Windows, a daemon that predates live inputs, tracks in two songs,--devicenaming a device other than the daemon's, or a device the daemon has to convert the song's rate for. So a missing build degrades to what the line already said, never to silence. The voice host boots on the daemon's device, so the two share a clock, andFieldOutreachesscsynththroughSC_PLUGIN_PATH, beside its own plugins.A routed voice survives the rest of Field:
field play, its--watch,field ui, andfield recordcompile in the openkeys:inputs for their song when they load it, andfield keys' own loads keep the loop, region, and solo another terminal set. An input closes on its own when the connection that opened it drops, so afield keysthat fails or is killed leaves nothing open. Once the voice is live,field keyschecks thatFieldOutis writing its ring, and otherwise marks the line dry. A gain ramp on the routed voice glides on the overlay's own clock, so it finishes while the transport is stopped.With the transport stopped, the daemon now plays what the inputs reach, as the plan's §7 question 2 settled. It runs a second instance of
main's chain, so you play over silence while the song's own chain and position stay where they were; pressing play hands the input to the song's path. Each input now reports apeak, andfield-audiod --ring-feed <ring> <file.wav>writes a file into a ring at real-time pace asFieldOutwould, so an input can be checked without SuperCollider.Chunk 2 found that
scsynthcrashes quitting with aFieldOutstill running. Every way the voice host stops now frees its nodes first:field keysquitting, the host's own restart for a new sample rate, and the host noticing its parent has gone.Testing
From the repository root of this branch, after
pnpm installandpnpm build:native, which builds the daemon andFieldOut:The typecheck passes. The five focused files pass, and the full suite passes 1103 with 1 skipped (the no-MIDI-source case, which runs only without a MIDI service).
project checkpasses with its standing site-workflow warning.routing-voice.test.ts, through real programs: a track is routed into the daemon in null-output mode, the real voice host starts on sclang andscsynthwithFieldOut, and a note from a published MIDI source reaches the track's input. The daemon reports a peak above 0.01 while the transport is stopped. It needs SuperCollider, the built plugin, and an output device forscsynth, so it runs on a workstation and skips on CI.routing.test.ts:routeArmedopenskeys:creek/basswith a ring, loadscreekwith it, and on close leaves no inputs and the song loaded. It also says why when it can't route: tracks in two songs, orFieldOutnot built.live-ring.test.ts: a ring fed by--ring-feedwhile the transport is stopped is read through the idle path at the sine's 0.25 peak. Wherescsynthis installed, the route SynthDef carries a private bus into the ring in non-realtime mode.voice-host.test.ts: the host receivesFIELD_RINGS,FIELD_FIELDOUT, and a route file that startsSCgf, routes nothing when no instrument has a ring, and sends/g_freeAllbefore/quit.keys.test.ts: the instrument line drops the dry note when routed, and gives the reason when not.By hand, in
examples/bloomwithcreek'sbasstrack givenrecord: {instrument: bass}and placed inmain:field keys creek/track:bassshould show no dry note, and the bass should play throughmain's limiter.field keys creek/track:mainshould do the same. I couldn't play it myself, becausefield keysneeds a kitty-protocol terminal, so criterion 3, hearing it, is yours. Any of these would mean the change is wrong: a dry note with no reason, silence instead of the dry fallback, or a crash report fromscsynthafter quitting. Criteria 4 and 5 (the added latency, and an hour without a dropout) need the real device and are owed by hand. A session swap under a playing input rebuilds the overlay cold, a gap of the path's latency; §10 records that as accepted for now.📽️ Projector summary of b13d283: https://field.amnes.ac/reviews/201