Files
JIANT/tests
Claude b06a64ebe3 Master EQ / TAPE kept by SAVE SONG AS and RESTORE LAST
A Discord report: saving a project "resets" the master's 4-band EQ, and a
loaded project sometimes forgets it.

- song_save.c song_copy_section: SAVE SONG AS wrote the live globals into
  every section but left each section's own stored EQ and TAPE. Loading the
  project opens section A (song_switch -> section_load), so when another
  section was playing at save time, or A was stored before the EQ was set,
  the EQ came back flat or stale. Every section now gets the master's EQ
  and TAPE (proj_master_put, shared with project_capture).
- project.c autosave_sig: the EQ and TAPE were not in the signature, so a
  change to only them was never autosaved and RESTORE LAST brought back
  older values at power-on.

The format does not change ('E' 'Q' / 'T' 'P' blocks as before), so old
projects load the same way.

Tests: tests/eq_save_cases.h (persistence_test): SAVE SONG AS while on
section C, then reload / section changes / another project / project
section save+load / UNDO / NEW PROJECT / autosave + power-on.
cpu_vg: song/cputest.eq section; target_budget: eq_block (cost 355).
Image +48 B (164 -> 116 B free), BT segment +8 B.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-11-09 19:26:49 +00:00
..