Status — handover: what was last done and what comes next

What this page is for

The handover from one session to the next. Whoever starts a task reads only this page and the pages under Read for that. Whoever finishes a task overwrites the three sections below (never appends). About 30 lines at most.

Last done

T-012 step 1 (D1–D6 accepted 2026-12-06): the alignment check on C1, C3, C4, C6 (t012_soundboard.jl align, InstrumentsTraining.Soundboard, t012_align*.csv). Subtracting the reference does not work: its curve frequencies are 0.2–2.4 cents off each sample’s, and the residual is as loud as the recording. A per-partial refit with free frequency, beat and rates (scratch check) cancels 6–24 dB. D3′ proposed on the page: that refit becomes the residual’s model. Before that: T-005 closed (covered by T-008), T-010 pedals (renders in data/t010/, not yet heard).

Next task

T-012, once the maintainer has decided D3′: move the per-partial free refit into Soundboard with a test, add partials above the sample’s fit, then run D2 (a) (30 keys × 4 layers) and What 2–6. If D3′ is rejected, the page says what D3 (b) alone gives. Other unblocked tasks: T-056, T-057, T-058, T-051, T-030.

  • Read for that: the T-012 page (Step 1, D3′) and the pages its Read for that lists. Salamander: the instruments environment (hint below); data/salamander must be downloaded again in a new container.

Hints for the next session

Piano drivers, engine, editor and model files: Piano notes (read only for piano tasks).

  • Small ARM machines (1 GB RAM): a full cargo build --release --workspace OOMs; build only the needed crates with CARGO_BUILD_JOBS=2 (-p modal-bench --bin scenario, -p instruments-dsp --example pi_passage build fine, ~3 min each). Heavy gates (clippy, nextest) are best left to CI or a bigger machine; a -p modal-bench --lib cargo test is affordable.
  • target/release/scenario, precision and examples/pi_passage are built on the Pi (runnable there); target/release/build was deleted as unusable — do not expect incremental builds.
  • On the Pi: log the clock on every measurement run (scripts/pi-clock-log.sh LOGFILE CMD [ARGS…]; heatsink, no fan) and pin to the isolated core (taskset -c 3); judge worst blocks per run or by percentile. Governor performance, perf, real-time priority without sudo (chrt) and cyclictest are set up: T-028 Pi setup.
  • Data in a cloud session: use the personal environment instruments (allows freepats.zenvoid.org, archive.org, pkg.julialang.org …). Then julia --project=training training/scripts/download.jl salamander (~2 min). Sample names: data/salamander/samples/SalamanderGrandPianoV3_48khz24bit/48khz24bit/C4v8.wav; the samples are faded out over their last ~1.5 s.
  • Cloud sessions: use scripts/nix-develop-git.sh instead of nix develop (same arguments). Run Julia scripts with absolute paths; the wrapper cds to the repo.
  • For plots in a session: a Python venv in the scratchpad with matplotlib works (python3 -m venv, pip install matplotlib); nothing is installed globally.
  • The cloud VM (4 vCPU) is noisy: ±20 % on timings, and single slowest blocks there are scheduler jitter. Plugin gates only when Rust plugin code changes (bundle + clap-validator; GUI: scripts/nix-develop-git.sh .#gui-test -c scripts/gui-smoke-test.sh; if it cannot reach the X server, see Piano notes, Editor: start Nix’s Xvfb by hand).
  • CI runs on every push to main and on PRs, not on other branches: check that it is green after pushing (gh api repos/MathStruct/Instruments/commits/<sha>/check-runs). Work done on the Pi (no clippy/nextest there) gets the Rust gates on a bigger machine before it reaches main — the raspberry branch once failed clippy that way. Julia ≥ 1.13 is required (Project.toml compat, minJulia in the flake); a change to training/Project.toml changes the manifest’s project_hash, so run Pkg.resolve() and commit the manifest with it.
  • The git remote reports that the repository moved to MathStruct/Instruments; pushes still work.
  • scripts/test-libmts.sh (dev shell) runs the MTS-ESP client against ODDSound’s real libMTS.so (cloned into target/mts-esp); it is not in CI.
  • Shared machine: when told to limit cores, use CARGO_BUILD_JOBS=2, nextest -j 2, nice; for helpers taskset -c 0,1.