mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 12:54:29 +01:00
V10.6z8 restored nothing on STOP once any sound was held: the music before PLAY (its unsaved edits too) was lost and RAM kept the song's last section. Now song_poll sees the held set (snd_own over every track and the kit, so a change made in the last section counts too; motion_end has put the sounds' own values back), packs the music as the song left it into proj_wire, restores song_keep as before (SONG END), then puts each held track's sound back over it (sound_put: engine, preset, sound parameters, FM6 patch) and the DRUM-X kit when it is held (else the kit before PLAY). snd_held stays set, so PLAY again keeps holding them. If the song's music cannot be packed (SECTION FULL) it stays as the song left it (the V10.6z8 behaviour). song_hold_test: STOP keeps engine, knobs, the last section's change and the kit; the steps edited before PLAY and the other tracks' sounds come back (fails on V10.7.6's code); PLAY again holds. +132 B (248 B free). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh