diff --git a/checklist.md b/checklist.md index 4a03590..b1ef773 100644 --- a/checklist.md +++ b/checklist.md @@ -338,24 +338,25 @@ still `adopt`: discovery must not change live audio. # APC MINI lifecycle and mapping checkpoint -This checkpoint verifies server-owned MIDI discovery and hotplug recovery. MIDI -messages are deliberately not routed to audio yet, so moving controls must not -change application volume during this test. +This checkpoint originally verified server-owned MIDI discovery and hotplug +recovery before routing was enabled. The later live-routing checkpoint now +supersedes its control-movement expectation. ## Connection and hotplug -- [ ] Connect the APC MINI and start the server with the Arch profile: +- [x] Connect the APC MINI and start the server with the Arch profile: ```sh cargo run --locked -p fader_master -- serve \ --config examples/profiles/arch-pipewire.toml --audio pulse ``` -- [ ] In another terminal run `cargo run --locked -p fader_master -- status`. +- [x] In another terminal run `cargo run --locked -p fader_master -- status`. Confirm it contains `device=apc-mini`, `status=connected`, a backend ID such as `36:0`, and `error=None`. -- [ ] Move several APC controls and confirm the server stays running and no - application volume or mute changes. Routing is intentionally inactive here. +- [ ] Move only unassigned APC controls and confirm the server stays running and + application volume or mute does not change. The six assigned controls are + listed in the live-routing checkpoint below and are expected to change audio. - [ ] Unplug the APC MINI, wait two seconds, and run `status` again. Confirm the device remains listed as `status=missing` while audio objects remain usable. - [ ] Reconnect it, optionally through another USB socket, wait two seconds, and @@ -364,15 +365,85 @@ change application volume during this test. ## Record controls for the pickup-safe routing slice -- [ ] Stop the server, run +- [x] Stop the server, run `cargo run --locked -p midi --example midi_monitor -- list`, and note the APC index. -- [ ] Run `cargo run --locked -p midi --example midi_monitor -- watch INDEX 30` +- [x] Run `cargo run --locked -p midi --example midi_monitor -- watch INDEX 30` and move the physical fader you want assigned to `Media group`. Record its `ControlChange` channel and number plus the endpoint values it reports. -- [ ] During another watch, press and release the button you want assigned to +- [x] During another watch, press and release the button you want assigned to group mute. Record whether it is `Note` or `ControlChange`, its channel and number, and the press/release values. -- [ ] Report those two mappings and any connection, hotplug, or unexpected audio +- [x] Report those two mappings and any connection, hotplug, or unexpected audio behavior. They will be added to the profile before MIDI-to-audio routing is enabled. + +# APC MINI live routing and pickup checkpoint + +This checkpoint is the first physical MIDI-to-application-volume test. The Arch +profile now uses MIDI channel 1 and the following assignments: + +| Target | Volume fader | Mute button | +| --- | ---: | ---: | +| Music / Qobuz | CC 48 | Note 64 | +| Browser | CC 49 | Note 65 | +| Media group | CC 56 | Note 98 | + +The non-motorized faders use pickup. They must not change audio until their +physical position reaches or crosses the current live volume. + +## Prepare and connect + +- [ ] Start Qobuz and browser playback. Set both volumes above 30%, unmute them, + and note their starting values. +- [ ] Before starting the server, place faders 48, 49, and 56 at the bottom. +- [ ] Start the server: + + ```sh + cargo run --locked -p fader_master -- serve \ + --config examples/profiles/arch-pipewire.toml --audio pulse + ``` + +- [ ] In another terminal start + `cargo run --locked -p fader_master -- tui`. Confirm Music, Browser, and Media + are online and the APC MINI is `connected`. +- [ ] Confirm server startup itself did not change any volume or mute state. + +## Verify startup pickup and target isolation + +- [ ] Move fader 48 slightly near the bottom. Confirm Music does not jump down. + Raise it slowly through Music's displayed starting volume; once crossed, + confirm Music follows the fader and Browser does not change. +- [ ] Repeat with fader 49. Confirm only Browser responds after its pickup point + is crossed. +- [ ] With Music and Browser at visibly different levels, move fader 56 slightly + near the bottom. Confirm neither application jumps. Cross the displayed Media + level and confirm both applications then follow the group fader and converge + to the same volume. +- [ ] Move an unassigned fader and press an unassigned button. Confirm neither + changes Music, Browser, or Media. + +## Verify mute buttons + +- [ ] Press and release button 64 once. Confirm Music toggles mute exactly once + and Browser is unchanged; press it again to restore Music. +- [ ] Repeat with button 65 and confirm only Browser toggles. +- [ ] Press button 98 once and confirm every online Media member is muted. Press + it again and confirm every member is unmuted without changing their gains. + +## Verify pickup rearming and hotplug + +- [ ] After fader 48 is tracking, change Music to a clearly different volume in + the desktop mixer. Move fader 48 without crossing the new value and confirm it + does not snap Music back. Cross the new value and confirm tracking resumes. +- [ ] Unplug the APC MINI and wait two seconds. Confirm the server and TUI stay + alive, audio remains controllable from the TUI, and `status` reports the + device as `missing`. +- [ ] Reconnect the APC MINI, wait two seconds, and confirm it returns to + `connected`, even if its ALSA backend ID changes. +- [ ] Move a mapped fader without crossing its current live value and confirm no + volume jump occurs. Cross the live value and confirm control resumes. +- [ ] Restore the starting volume and mute states, stop the server, and report + any wrong target, duplicate button toggle, startup/reconnect jump, or server + error. Pickup state is not displayed explicitly in the TUI yet, so judge this + checkpoint by the observed audio values and behavior.