REC then PLAY records the loop in SONG mode; NEW PROJECT plays the loop again

A YouTube user (V10.7.6): "I pressed record then play and entered a few notes, pressed stop and pressed
play to listen and it played nothing; if I then press record it plays notes I did not enter". After a GEN
song (gen.c: live.mode = 1, kept with a saved song's rows over a power cycle) PLAY played the song, which
does not record (song_play.c chain_start: song.rec off while it plays, REC's light out); STOP brought the
music before PLAY back and PLAY played the song again. Now, a track armed, PLAY on any page but TIMELINE
plays and records the loop (ui_input.c B_PLAY); REC off, PLAY plays the song as before. NEW PROJECT
(system_init) left SONG mode on with no rows: PLAY did nothing ("ADD A SONG ROW"); it is LOOP now, as at
power-on (gen_clean's own reset folded into it).
rec_play_test: REC PLAY keys STOP PLAY from power-on, NEW PROJECT, a GEN song then NEW PROJECT, after a
GEN song (SONG mode, and over a power cycle), the song again with REC off and the take kept after it,
TIMELINE's row loop and STOP keeping the take (two checks fail on the old code). +16 B (148 B free).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
Claude committed 2026-11-09 19:11:58 +00:00
1 parent dfb9635163
commit e9befab600
6 files changed
+128 -4

No files matched your search

+2
View File
@@ -75,6 +75,8 @@ jobs:
mkdir -p build/rec
cc -O1 -w -Ibuild/gen -Ifirmware/src -Itests tests/rec_workflow_test.c -lm -o build/rec/rec_workflow
build/rec/rec_workflow | tee build/rec/controls.log
cc -O1 -w -Ibuild/gen -Ifirmware/src -Itests tests/rec_play_test.c -lm -o build/rec/rec_play
build/rec/rec_play | tee build/rec/rec_play.log
- name: Timing compared against exact base
run: |
cc -O1 -w -Ibuild/gen -I/tmp/rec-base/firmware/src -I/tmp/rec-base/tests /tmp/rec-base/tests/micro_test.c -lm -o build/rec/micro_base