diff --git a/CHANGELOG.md b/CHANGELOG.md index 60915721..eba00935 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -169,6 +169,14 @@ the project file format or the controls. 2 s (`HOLD AGAIN: REMOVE 3`); turning A or B opens PREP on the zone, START and END's one home. PREP SLICE: push B twice removes the point, CLR goes back. PREP WRITE: CLR goes back, dropping an OK that waits for its second press. A run of CLRs now walks out to GRID and removes nothing. +- **The FUNC menu has a DO part and a SET part** (the second review, 2026-11-30). The rows OK + runs come first: SAVE, GEN ALL, JAM REC, ARR REC, ARR UNDO, then the file rows; the settings + follow from CLICK. The screen keys jump between the parts. GEN ALL is FUNC + HOME, DOWN, OK + (it was UP), JAM REC two DOWNs, ARR REC three. +- **The track menu's screen keys jump group to group**: GEN, EVOLVE, PLAY, SAMPLE, CAPTURE; the + last line names the group. +- **PROJECTS: RENAME, DELETE and COLLECT are a menu on a held OK.** Pushes B, C and D, where + they sat next to push A's NEXT, say `HOLD OK: MENU`; a tap of OK still opens. | Was | Is | | --- | --- | diff --git a/app/app.hpp b/app/app.hpp index e29ba254..d307c3c6 100644 --- a/app/app.hpp +++ b/app/app.hpp @@ -1187,6 +1187,12 @@ class Strata : public enaga::App { int slot_menu_cursor_ = 0; bool slot_ok_held_ = false; // OK down on a slot: a tap queues, a hold opens the menu uint32_t slot_ok_down_ms_ = 0; + // PROJECTS' file menu (hold OK on a project): RENAME, DELETE, COLLECT (the second review, + // 2026-11-30, proposal 8: off the pushes, where delete sat next to rename and NEXT). + bool file_menu_ = false; + int file_menu_cursor_ = 0; + bool file_ok_held_ = false; + uint32_t file_ok_down_ms_ = 0; // The track menu (hold OK in GRID, app/ui_trackmenu.hpp): GEN's knobs and EVOLVE. bool track_menu_ = false; Mode track_menu_mode_ = Mode::grid; // GRID or KEYS: the screen it opened over diff --git a/app/ui_browsers.hpp b/app/ui_browsers.hpp index 01434f76..b8f087da 100644 --- a/app/ui_browsers.hpp +++ b/app/ui_browsers.hpp @@ -978,6 +978,133 @@ project_cursor_ = at < 0 ? 0 : at; } + // --- PROJECTS' file menu: hold OK on a project ---------------------------------------- + // + // RENAME, DELETE and COLLECT, off the pushes they sat on (the second review, 2026-11-30, + // proposal 8): delete was one knob from rename and from NEXT, the live action. Push A stays + // NEXT. A tap of OK opens the project (twice, as ever): the list waits for a hold of + // kSlotMenuHoldMs, as the pattern menu does, and a tap acts on its release. + static constexpr int kFileMenuRows = 3; + static const char *file_menu_name(int row) { + return row == 0 ? "RENAME" : row == 1 ? "DELETE" : "COLLECT OPEN PROJECT"; + } + + bool file_ok_target() const { + return mode_ == Mode::project && project_page_ == ProjectPage::files && !shift_ && + !name_entry_.active() && held_step_ < 0; + } + + bool on_file_menu_key(int key, bool down) { + if (file_menu_) { + const bool mine = key == ENAGA_KEY_OK || key == ENAGA_KEY_UP || + key == ENAGA_KEY_DOWN || key == ENAGA_KEY_CLR; + if (!down || !mine) return mine; + if (key == ENAGA_KEY_CLR) { + file_menu_ = false; + notice("PROJECTS"); + return true; + } + if (key != ENAGA_KEY_OK) { + file_menu_cursor_ = (file_menu_cursor_ + (key == ENAGA_KEY_UP ? -1 : 1) + + kFileMenuRows) % kFileMenuRows; + return true; + } + file_menu_ = false; + if (file_menu_cursor_ == 2) project_collect(); + else project_rename_or_delete(file_menu_cursor_ == 0); + return true; + } + if (key != ENAGA_KEY_OK || !file_ok_target() || delete_armed_ >= 0) return false; + if (down) { + file_ok_held_ = true; + file_ok_down_ms_ = last_ms_; + } else if (file_ok_held_) { + file_ok_held_ = false; + (void)on_projects_key(ENAGA_KEY_OK); // a tap: what OK always did here + } + return true; + } + + // update(): a held OK opens the file menu. + void service_file_menu() { + if (file_menu_ && (mode_ != Mode::project || project_page_ != ProjectPage::files)) { + file_menu_ = false; + } + if (!file_ok_held_) return; + if (!file_ok_target()) { + file_ok_held_ = false; + return; + } + if (uint32_t(last_ms_ - file_ok_down_ms_) < kSlotMenuHoldMs) return; + file_ok_held_ = false; + const SampleList &list = storage_.browse_list(); + if (storage_.browsing() || list.count() == 0) return; + file_menu_ = true; + file_menu_cursor_ = 0; + open_armed_ = -1; + notice("PROJECT MENU"); + } + + void draw_file_menu(enaga::Canvas &canvas) { + const SampleList &list = storage_.browse_list(); + char line[24]; + char *out = line; + const char *name = list.count() > 0 ? list.name(project_cursor_) : ""; + for (int i = 0; name[i] != '\0' && i < 20; i++) *out++ = name[i]; + *out = 0; + paint::small_text(canvas.data(), 0, 19, line, 15); + for (int row = 0; row < kFileMenuRows; row++) { + const bool here = row == file_menu_cursor_; + out = line; + *out++ = here ? '>' : ' '; + append(out, file_menu_name(row)); + *out = 0; + list_row(canvas, 0, 29 + row * 9, line, here, 9); + } + paint::small_text(canvas.data(), 0, 105, "OK: RUN CLR: BACK", 10); + } + + void project_collect() { + if (!storage_.card_usable()) { + notice("NO CARD"); + return; + } + storage_.request_collect(); + projects_reread_ = true; + notice("COLLECTING"); + } + + // RENAME or DELETE on the project under the cursor; DELETE asks OK twice (on_projects_key). + void project_rename_or_delete(bool rename) { + const SampleList &list = storage_.browse_list(); + if (storage_.browsing() || list.count() == 0) return; + const char *name = list.name(project_cursor_); + if (!storage_.card_usable()) { + notice("NO CARD"); + } else if (!list.is_folder(project_cursor_)) { + notice("NOT A PROJECT"); + } else if (!Storage::valid_name(name)) { + notice("NAME NOT USABLE"); + } else if (storage_.project_op_pending()) { + notice("CARD BUSY"); + } else if (rename) { + int n = 0; + for (; name[n] != '\0' && n < Storage::kNameBytes - 1; n++) rename_from_[n] = name[n]; + rename_from_[n] = '\0'; + entry_for_ = EntryFor::rename; + name_entry_.open("RENAME", name); + } else if (SampleList::same_name(name, storage_.project_name())) { + // Deleting what is in RAM would leave a project whose files are gone, and the next + // save would bring them back. + notice("PROJECT IS OPEN"); + } else { + delete_armed_ = project_cursor_; + delete_oks_ = 0; + open_armed_ = -1; + notice("OK TWICE: DELETE"); + } + } + bool on_projects_key(int key) { if (held_step_ >= 0) return false; const SampleList &list = storage_.browse_list(); @@ -1015,53 +1142,13 @@ if (shift_) return false; queue_next_song(); return true; - case ENAGA_KEY_PUSH_D: - // Push D collects the OPEN project's samples into its folder and saves it, for a - // project from before collecting existed (SAVE AS collects on its own). - if (shift_) return false; // FUNC + push D: kill all bands - if (!storage_.card_usable()) { - notice("NO CARD"); - return true; - } - storage_.request_collect(); - projects_reread_ = true; - notice("COLLECTING"); - return true; case ENAGA_KEY_PUSH_B: - case ENAGA_KEY_PUSH_C: { - // Push B renames and push C deletes the project under the cursor: the two card - // actions a list of projects needs, on the knobs the page leaves free. - if (storage_.browsing() || list.count() == 0) return true; - const char *name = list.name(project_cursor_); - const bool rename = key == ENAGA_KEY_PUSH_B; - if (!storage_.card_usable()) { - notice("NO CARD"); - } else if (!list.is_folder(project_cursor_)) { - notice("NOT A PROJECT"); - } else if (!Storage::valid_name(name)) { - notice("NAME NOT USABLE"); - } else if (storage_.project_op_pending()) { - notice("CARD BUSY"); - } else if (rename) { - int n = 0; - for (; name[n] != '\0' && n < Storage::kNameBytes - 1; n++) { - rename_from_[n] = name[n]; - } - rename_from_[n] = '\0'; - entry_for_ = EntryFor::rename; - name_entry_.open("RENAME", name); - } else if (SampleList::same_name(name, storage_.project_name())) { - // Deleting what is in RAM would leave a project whose files are gone, and - // the next save would bring them back. - notice("PROJECT IS OPEN"); - } else { - delete_armed_ = project_cursor_; - delete_oks_ = 0; - open_armed_ = -1; - notice("OK TWICE: DELETE"); - } + case ENAGA_KEY_PUSH_C: + case ENAGA_KEY_PUSH_D: + // RENAME, DELETE and COLLECT are in the file menu, on a held OK (above). + if (shift_) return false; // FUNC + a push: the kill switches + notice("HOLD OK: MENU"); return true; - } case ENAGA_KEY_OK: { if (shift_) return false; // F1 + OK is redo if (storage_.browsing() || list.count() == 0) return true; diff --git a/app/ui_input.hpp b/app/ui_input.hpp index 42f14d6d..f5f297c8 100644 --- a/app/ui_input.hpp +++ b/app/ui_input.hpp @@ -110,6 +110,8 @@ // PROJECT's slots: a held OK opens the pattern menu, which then takes its keys. if (on_slot_menu_key(key, down)) return; + // PROJECTS: a held OK opens the file menu (RENAME, DELETE, COLLECT); a tap opens, twice. + if (on_file_menu_key(key, down)) return; // GRID and KEYS: a held OK opens the track menu (GEN and EVOLVE), which then takes its keys. if (on_track_menu_key(key, down)) return; // PROJECT held: the STEP keys queue a pattern, on any screen. diff --git a/app/ui_lights.hpp b/app/ui_lights.hpp index 3b2b3787..cd86d0c5 100644 --- a/app/ui_lights.hpp +++ b/app/ui_lights.hpp @@ -281,6 +281,7 @@ last_ms_ = ms; service_slot_menu(); + service_file_menu(); service_track_menu(); service_launch(); service_section(); diff --git a/app/ui_perfmix.hpp b/app/ui_perfmix.hpp index 25080f12..21591225 100644 --- a/app/ui_perfmix.hpp +++ b/app/ui_perfmix.hpp @@ -12,15 +12,18 @@ // change a setting row, CLR or FUNC + HOME closes it and returns to the screen it opened // over. The cursor always starts on SAVE, so FUNC + HOME, OK saves. - // Project-wide rows only, ordered by how often a jam reaches for them: the live toggles - // first, the file actions at the bottom, and GEN ALL last of all, which the wrap makes one - // UP from SAVE (FUNC + HOME, UP, OK) without moving JAM REC and ARR REC off their DOWNs. The selected track's rows (SPEED, PLAY, FREEZE, - // RELOAD SAMPLE) are in GRID's track menu (app/ui_trackmenu.hpp). - enum class MenuItem : uint8_t { save, jam, arr, click, count_in, rec_mode, quantize, - autofill, glide, transpose, loop_len, chain, song, arr_undo, - prog_out, tempo_guard, save_as, open, kits, fresh, reload, clear, demo, gen_all, + // Project-wide rows only, in two parts (the second review, 2026-11-30, proposal 8): DO, the + // actions, the most used first (SAVE, then GEN ALL, so FUNC + HOME, DOWN, OK is GEN ALL), + // the file actions after them; then SET, the settings. The screen keys jump between the two + // (LEFT: SAVE, RIGHT: CLICK), so no row is more than a few presses from where the list + // opens. The selected track's rows are in GRID's track menu (app/ui_trackmenu.hpp). + enum class MenuItem : uint8_t { save, gen_all, jam, arr, arr_undo, save_as, open, kits, fresh, + reload, clear, demo, + click, count_in, rec_mode, quantize, autofill, glide, + transpose, loop_len, chain, song, prog_out, tempo_guard, count }; static constexpr int kMenuItems = int(MenuItem::count); + static constexpr int kMenuSetFirst = int(MenuItem::click); // where SET begins static constexpr int kMenuRows = 9; static const char *menu_item_name(MenuItem item) { @@ -1005,9 +1008,15 @@ return true; case ENAGA_KEY_SELECT_LEFT: case ENAGA_KEY_SELECT_RIGHT: + if (shift_) return false; // FUNC + a screen key is TRANSPOSE + // DO and SET: the screen keys jump to the first row of each. + menu_cursor_ = key == ENAGA_KEY_SELECT_LEFT ? 0 : kMenuSetFirst; + card_armed_ = CardAction::none; + notice(key == ENAGA_KEY_SELECT_LEFT ? "DO" : "SET"); + return true; case ENAGA_KEY_OCTAVE_LEFT: case ENAGA_KEY_OCTAVE_RIGHT: - return true; // one page; no steps behind it + return true; // no steps behind it default: return false; } @@ -1034,8 +1043,9 @@ while (value[length] != '\0') length++; if (length > 0) canvas.text(kFrameMeterX - length * 6, y, value, here ? 0 : 9); // on the row's bar } - paint::small_text(canvas.data(), 0, 105, "OK: RUN CLR: BACK", 10); - paint::small_text(canvas.data(), 0, 113, "LEFT/RIGHT: CHANGE", 10); + const bool set = menu_cursor_ >= kMenuSetFirst; + paint::small_text(canvas.data(), 0, 105, set ? "SET LEFT/RIGHT: CHANGE" : "DO OK: RUN", 10); + paint::small_text(canvas.data(), 0, 113, set ? "SCREEN KEY LEFT: DO" : "SCREEN KEY RIGHT: SET", 10); } void open_kits() { diff --git a/app/ui_project.hpp b/app/ui_project.hpp index f8ba0d6e..703f197c 100644 --- a/app/ui_project.hpp +++ b/app/ui_project.hpp @@ -641,7 +641,8 @@ return; } if (project_page_ == ProjectPage::files) { - draw_projects(canvas); + if (file_menu_) draw_file_menu(canvas); + else draw_projects(canvas); return; } if (project_page_ == ProjectPage::launch) { diff --git a/app/ui_trackmenu.hpp b/app/ui_trackmenu.hpp index 2262df07..22f3366c 100644 --- a/app/ui_trackmenu.hpp +++ b/app/ui_trackmenu.hpp @@ -71,6 +71,30 @@ } } + // The rows in groups (the second review, 2026-11-30, proposal 8): the screen keys jump to the + // first row of the group before or after, round, so no row is more than a few presses away. + struct TrackGroup { TrackRow first; const char *name; }; + static constexpr TrackGroup kTrackGroups[] = { + {TrackRow::generate, "GEN"}, {TrackRow::evolve, "EVOLVE"}, {TrackRow::speed, "PLAY"}, + {TrackRow::sample, "SAMPLE"}, {TrackRow::capture, "CAPTURE"}}; + static constexpr int kTrackGroupCount = int(sizeof kTrackGroups / sizeof kTrackGroups[0]); + + static int track_group_of(int row) { + int group = 0; + for (int g = 0; g < kTrackGroupCount; g++) + if (row >= int(kTrackGroups[g].first)) group = g; + return group; + } + + // LEFT: the start of this group, or of the one before when already there; RIGHT: the next. + void track_group_jump(int delta) { + int group = track_group_of(track_menu_cursor_); + if (delta > 0 || track_menu_cursor_ == int(kTrackGroups[group].first)) + group = (group + delta + kTrackGroupCount) % kTrackGroupCount; + track_menu_cursor_ = int(kTrackGroups[group].first); + notice(kTrackGroups[group].name); + } + // The screens the menu opens over, and draws in place of. bool track_menu_screen() const { return (mode_ == Mode::grid || mode_ == Mode::keys) && !step_page_; @@ -326,10 +350,15 @@ if (track_menu_) { const bool mine = key == ENAGA_KEY_OK || key == ENAGA_KEY_UP || key == ENAGA_KEY_DOWN || key == ENAGA_KEY_CLR || - key == ENAGA_KEY_LEFT || key == ENAGA_KEY_RIGHT; + key == ENAGA_KEY_LEFT || key == ENAGA_KEY_RIGHT || + key == ENAGA_KEY_SELECT_LEFT || key == ENAGA_KEY_SELECT_RIGHT; if (!mine || shift_) return false; // F1 + OK / CLR stay redo and undo if (!down) return true; switch (key) { + case ENAGA_KEY_SELECT_LEFT: + case ENAGA_KEY_SELECT_RIGHT: + track_group_jump(key == ENAGA_KEY_SELECT_LEFT ? -1 : 1); + break; case ENAGA_KEY_CLR: track_menu_ = false; close_prep(); @@ -429,5 +458,9 @@ append(out, " OK: RUN CLR: BACK"); *out = 0; paint::small_text(canvas.data(), 0, 105, line, 10); - paint::small_text(canvas.data(), 0, 113, "LEFT/RIGHT: CHANGE", 10); + out = line; + append(out, kTrackGroups[track_group_of(track_menu_cursor_)].name); + append(out, " SCREEN KEYS: GROUP"); + *out = 0; + paint::small_text(canvas.data(), 0, 113, line, 10); } diff --git a/core/help.cpp b/core/help.cpp index cd54363b..6cf7ef93 100644 --- a/core/help.cpp +++ b/core/help.cpp @@ -360,13 +360,13 @@ constexpr Text kProjects = {"PROJECTS:", { "UP/DOWN/A MOVE", "LEFT/RIGHT PAGE", "OK TWICE OPEN", - "PUSH B RENAME", - "PUSH C DEL OK TWICE", + "HOLD OK FILE MENU", + "MENU RENAME DELETE", "PUSH A NEXT SONG", "FUNC+DOWN SAVE AS", "FUNC+UP READ AGAIN", "CLR BACK", - "PUSH D COLLECT OPEN", + "MENU COLLECT OPEN", }}; constexpr Text kNaming = {"NAMING:", { @@ -470,7 +470,7 @@ constexpr Text kMenu = {"FUNC MENU:", { "OK RUN", "LEFT/RIGHT/B CHANGE", "CLR/FUNC+HOME CLOSE", - "OPENS ON SAVE:", + "SCREEN KEYS DO/SET", "FUNC+HOME OK SAVES", "NEW RELOAD CLEAR", "PATTERN OK TWICE", @@ -490,9 +490,9 @@ constexpr Text kTempoGuard = {"TEMPO GUARD:", { "SAVED WITH PROJECT", }}; -// GEN ALL, the FUNC menu's last row, one UP from SAVE (app/ui_perfmix.hpp, gen_all). +// GEN ALL, the FUNC menu's second row, one DOWN from SAVE (app/ui_perfmix.hpp, gen_all). constexpr Text kGenAll = {"GEN ALL:", { - "FUNC+HOME UP THE ROW", + "FUNC+HOME DOWN ROW", "OK A NEW PART ON", "EVERY UNMUTED TRACK", "EACH OF ITS OWN TYPE", @@ -839,7 +839,7 @@ constexpr Text kTrackMenu = {"HOLD OK: TRACK MENU", { "KICK SNARE HATS PERC", "MONO POLY FILL=LEAP", "EVOLVE 1 2 4 8 LOOPS", - "ORBIT DRIFT KEEP HOME", + "SCREEN KEYS GROUP", "SPEED 2X TO 1/8", "PLAY FWD REV PING RND", "FREEZE LOOP IN RAM", diff --git a/docs/CHEATSHEET.md b/docs/CHEATSHEET.md index 234e4498..0afc3a13 100644 --- a/docs/CHEATSHEET.md +++ b/docs/CHEATSHEET.md @@ -38,7 +38,7 @@ pads and the performance mixer. | --- | --- | --- | | GRID | HOME (from anywhere) | All 8 tracks; STEP keys edit the selected track | | KEYS | HOME twice quickly (double-tap) | The pads are a piano (lower white, upper black keys), the STEP keys steps, on the selected track | -| FUNC menu | FUNC+HOME ("system") | The project-wide rows: save, JAM REC, ARR REC, click, count-in, REC MODE, quantize, auto-fill, FX glide, TRANSPOSE (scale or semitones), loop length, chain, song, ARR UNDO, PROG CHG OUT, TEMPO GUARD, save as, open, kits, new, reload, clear pattern, load demo, GEN ALL (a part on every unmuted track, one undo level) | +| FUNC menu | FUNC+HOME ("system") | The project-wide rows in two parts. DO: save, GEN ALL (a part on every unmuted track, one undo level), JAM REC, ARR REC, ARR UNDO, save as, open, kits, new, reload, clear pattern, load demo. SET: click, count-in, REC MODE, quantize, auto-fill, FX glide, TRANSPOSE (scale or semitones), loop length, chain, song, PROG CHG OUT, TEMPO GUARD. The screen keys jump between the parts | | EDIT | EDIT | The selected track's sound: pages SRC, FLTR, AMP, FX, LFO, ARP, and on the VA, WAVE, FM4 and GRAIN machines ENV and OSC, SCAN on the WAVE machines and OPS on FM4 | | MACHINE | FUNC+EDIT | Pick the machine on each track, and its MIDI OUT channel | | KIT | FUNC+EDIT twice, or the menu's KITS | Save and recall whole kits: 16 slots on the card, shared by all projects | @@ -46,7 +46,7 @@ pads and the performance mixer. | SOUNDS | OK in EDIT or MACHINE on a drum, VA, WAVE or FM4 track; OK in EDIT on a GRN track | Load a factory sound or one of your own into that track only; AS WAS puts yours back. FUNC+DOWN saves the track's sound as your own, FUNC+UP copies it for the PASTE row | | MIXER | MIXER | Levels, the sidechain duck, stereo width, delay, reverb, routing, chorus, master, kill EQ | | PERFORM | FUNC+MIXER | Scenes, morph, macros, mutation | -| Track menu | **Hold OK** in GRID or KEYS (a tap says `HOLD OK: TRACK MENU`) | The selected track's rows: GENERATE a part of the track's TYPE: KICK, SNARE, HATS, PERC, MONO or POLY (DENSITY, RANGE, LEAP or FILL, WHAT); EVOLVE every 1-8 loops (mutation MIX: a different one each turn), ORBIT or DRIFT, KEEP or HOME, saved with the project; SPEED, PLAY, FREEZE, RELOAD SAMPLE, ZONES (a SAMPLE track's zones: A or B opens PREP for START and END, C LVL, D TUN, push A MODE, push B CHK, push C PREP, push D file, OK held twice remove, CLR back); PREP (trim and NORM a SAMPLE track's file or a zone: A STA, B END onto zero crossings, C ZOOM, D GAIN, push A/B cut silence, push C hear, push D NORM to -1 dBFS; screen key RIGHT: SLICE, push D EVEN/AUTO/MAN, LEFT/RIGHT a point, A move, push A onto a hit, push C hear, OK add at the playhead while push C plays (else halfway), push B twice remove; CLR back on every PREP page; RIGHT again: WRITE, OK twice writes START..END with GAIN to NAME-E1.WAV in the project's SAMPLES or /RECORD and the track plays it) | +| Track menu | **Hold OK** in GRID or KEYS (a tap says `HOLD OK: TRACK MENU`) | The selected track's rows: GENERATE a part of the track's TYPE: KICK, SNARE, HATS, PERC, MONO or POLY (DENSITY, RANGE, LEAP or FILL, WHAT); EVOLVE every 1-8 loops (mutation MIX: a different one each turn), ORBIT or DRIFT, KEEP or HOME, saved with the project; SPEED, PLAY, FREEZE, RELOAD SAMPLE, ZONES (the screen keys jump group to group: GEN, EVOLVE, PLAY, SAMPLE, CAPTURE; ZONES: a SAMPLE track's zones: A or B opens PREP for START and END, C LVL, D TUN, push A MODE, push B CHK, push C PREP, push D file, OK held twice remove, CLR back); PREP (trim and NORM a SAMPLE track's file or a zone: A STA, B END onto zero crossings, C ZOOM, D GAIN, push A/B cut silence, push C hear, push D NORM to -1 dBFS; screen key RIGHT: SLICE, push D EVEN/AUTO/MAN, LEFT/RIGHT a point, A move, push A onto a hit, push C hear, OK add at the playhead while push C plays (else halfway), push B twice remove; CLR back on every PREP page; RIGHT again: WRITE, OK twice writes START..END with GAIN to NAME-E1.WAV in the project's SAMPLES or /RECORD and the track plays it) | | PROJECT | PROJECT | Banks and patterns, key and scale, the card. On the slots: **hold OK** for the pattern menu (COPY, PASTE, CLEAR, DOUBLE; OK runs, PASTE/CLEAR/DOUBLE twice). Shortcuts: FUNC+UP copies, FUNC+DOWN twice pastes, FUNC+LEFT twice clears. From any screen: hold PROJECT + STEP queues that slot | | CHAIN | PROJECT, then screen key RIGHT | The pattern chain as a list | | PATTERN | PROJECT, screen key RIGHT twice | Master length (LEN), swing (SWG), FEEL and each track's own swing of the playing pattern | @@ -212,18 +212,19 @@ RELOAD PROJECT, NEW PROJECT and LOAD DEMO are in the FUNC menu (FUNC+HOME), the the track menu (hold OK in GRID); the last three throw away unsaved work, so each needs OK twice within 2 s (OK AGAIN: RELOAD, OK AGAIN: NEW, OK AGAIN: DEMO). NEW is empty; LOAD DEMO is the factory demo a first start plays. -**FUNC menu (FUNC+HOME):** SAVE, JAM REC, ARR REC, CLICK, COUNT-IN, REC MODE, QUANTIZE, AUTO-FILL, -FX GLIDE, TRANSPOSE (SCALE or SEMI), LOOP LEN, CHAIN, CHAIN END, ARR UNDO, PROG CHG OUT, -TEMPO GUARD (ON: VALUE's turn and tap leave the tempo; saved), SAVE AS, -OPEN PROJECT, KITS, NEW PROJECT, RELOAD PROJECT, CLEAR PATTERN, LOAD DEMO, GEN ALL. It always opens on SAVE: -DOWN once is JAM REC, twice ARR REC, three times CLICK; the list wraps, so -UP once is GEN ALL (GENERATE on every unmuted track, each of its own TYPE, one undo level; OK again -for another), twice LOAD DEMO, three times CLEAR PATTERN. UP/DOWN or A +**FUNC menu (FUNC+HOME):** DO: SAVE, GEN ALL, JAM REC, ARR REC, ARR UNDO, SAVE AS, OPEN PROJECT, +KITS, NEW PROJECT, RELOAD PROJECT, CLEAR PATTERN, LOAD DEMO. SET: CLICK, COUNT-IN, REC MODE, +QUANTIZE, AUTO-FILL, FX GLIDE, TRANSPOSE (SCALE or SEMI), LOOP LEN, CHAIN, CHAIN END, PROG CHG +OUT, TEMPO GUARD (ON: VALUE's turn and tap leave the tempo; saved). It always opens on SAVE: +DOWN once is GEN ALL (GENERATE on every unmuted track, each of its own TYPE, one undo level; OK +again for another), twice JAM REC, three times ARR REC. The right screen key jumps to SET (CLICK), +the left one back to SAVE. UP/DOWN or A scroll, OK runs the row (NEW, RELOAD, CLEAR PATTERN and LOAD DEMO need OK twice), LEFT/RIGHT or B change a setting row (OK steps it too), CLR or FUNC+HOME close it. **Track menu (hold OK in GRID):** GENERATE, TYPE, DENSITY, RANGE, LEAP, WHAT, EVOLVE, MODE, MUTATION, AMOUNT, KEEP, HOME, SPEED, PLAY, FREEZE, RELOAD SAMPLE, ZONES, PREP, CAPTURE, for the selected track (a lower pad picks another with it -open); it keeps its row, and from GENERATE UP once is CAPTURE, twice PREP, three times ZONES. FREEZE: the track plays a 1-8 +open); it keeps its row, and from GENERATE UP once is CAPTURE, twice PREP, three times ZONES. Its +groups are GEN, EVOLVE, PLAY, SAMPLE and CAPTURE: the screen keys jump to the next or the one before. FREEZE: the track plays a 1-8 bar loop of itself from RAM and stops computing; OK again unfreezes. CLICK: a click on every beat (ON/OFF). COUNT-IN: OFF, 1 BAR, 2 BAR clicked before a PLAY from stop with REC on (`COUNT-IN 4` .. `1`); internal clock only; neither saved. JAM REC: OK records the finished master to `/RECORD/JAM_.WAV` (24-bit, about 1 GB an hour, @@ -242,9 +243,9 @@ that captured, it also empties the captured slots (not one edited since or playi under the cursor (OK AGAIN: OPEN; it throws away unsaved work and stops the transport). FUNC+DOWN (or the menu's SAVE AS) is SAVE AS: A or LEFT/RIGHT move, B, VALUE or UP/DOWN change the character, OK saves under that name (NAME TAKEN if another project has it), CLR cancels. FUNC+UP reads the card again. -Push B renames the project under the cursor (the same entry, titled RENAME; the open one too). -Push C deletes it: OK TWICE: DELETE, then OK twice within 2 s; CLR or any other key keeps it; the -open project cannot be deleted (PROJECT IS OPEN). +Hold OK for the file menu: RENAME (the same entry, titled RENAME; the open project too), DELETE +(OK TWICE: DELETE, then OK twice within 2 s; CLR or any other key keeps it; the open project +cannot be deleted: PROJECT IS OPEN) and COLLECT OPEN PROJECT. UP/DOWN pick, OK runs, CLR closes. Push A queues the project under the cursor as the NEXT song (`NEXT FIRST` on every screen): it opens when the transport stops (SONG END or STOP) while the tails ring, and starts by itself under the internal clock (`NEXT PLAYS`); under an outside clock it opens on the outside STOP. Push A on diff --git a/docs/CONTROLS.md b/docs/CONTROLS.md index 50a4ca1f..3f1f9848 100644 --- a/docs/CONTROLS.md +++ b/docs/CONTROLS.md @@ -84,12 +84,14 @@ HOME "system", PLAY "◀◀", STOP "▶▶", MIXER "fx", EDIT "rec src". RHYTHM, push C (OCT) ACCENT, push D (GAT) RATCHET. Per track, the kit's, as LFO TRIG; on EDIT, GRID and KEYS. OK on the ARP page opens ARPS, the factory arps, as OK on the sound pages opens SOUNDS (same keys, AS WAS first). - On PROJECTS, where only A turns, push B renames and push C deletes the project under the - cursor (delete then asks for OK twice), push D collects the open project's samples into - its folder and saves it (`COLLECTING`), wherever the cursor is, and push A queues the - project under the cursor as the NEXT song, which opens when the transport stops and starts - by itself under the internal clock (push A on the queued or open one takes the queue off; - unsaved edits ask for a second push). SOUNDS does the same for your own saved sounds + On PROJECTS, where only A turns, push A queues the project under the cursor as the NEXT + song, which opens when the transport stops and starts by itself under the internal clock + (push A on the queued or open one takes the queue off; unsaved edits ask for a second push). + RENAME, DELETE (then OK twice) and COLLECT OPEN PROJECT (the open project's samples into its + folder, then a save: `COLLECTING`) are a menu on OK held for kSlotMenuHoldMs on the list, + UP/DOWN to pick, OK to run, CLR to close; a tap of OK opens, on its release. Pushes B, C and + D say `HOLD OK: MENU` (review 2026-11-30, proposal 8: DELETE sat one knob from NEXT, the live + action). On SOUNDS, push B renames and push C deletes your own saved sounds (core/usersounds.hpp); on a factory sound or in ARPS they say `YOUR OWN SOUNDS ONLY`. - **VALUE is the crossfader.** Push VALUE + STEP picks what it fades: an effect, the morph (13) or the looper (16), on every screen (the performance mixer, below). With nothing @@ -170,19 +172,31 @@ HOME "system", PLAY "◀◀", STOP "▶▶", MIXER "fx", EDIT "rec src". A list over whatever screen was up, of the project-wide rows only: the selected track's rows are in GRID's track menu (below). UP/DOWN or A scroll, OK runs the row, LEFT/RIGHT or B change a setting row, CLR or FUNC + HOME closes it and returns to the screen it opened over. STEP -keys, screen keys and pad-row keys do nothing in it. FUNC + CLR / OK stay undo and redo, and -FUNC + a screen key stays TRANSPOSE. -The rows run by how often a jam reaches for them: the live toggles first, the file actions at -the bottom. The cursor starts on SAVE every time, so **FUNC + HOME, OK saves** and -**FUNC + HOME, DOWN, OK starts or stops JAM REC**; the list wraps, so **FUNC + HOME, UP, OK is -GEN ALL** and the file rows are a few UPs away. JAM REC has a key of its own as well: **FUNC + REC twice** (RESAMPLE, then again), as -FUNC + EDIT twice is KIT. +keys and pad-row keys do nothing in it. FUNC + CLR / OK stay undo and redo, and FUNC + a screen +key stays TRANSPOSE. +The list has two parts. **DO**, the rows OK runs, comes first: SAVE, GEN ALL, JAM REC, ARR REC, +ARR UNDO, then the file rows. **SET**, the rows LEFT/RIGHT change, follows from CLICK. The +screen keys jump between them: the right screen key to the first SET row (`SET`), the left one +back to SAVE (`DO`); the last line says which part the cursor is in. The cursor starts on SAVE +every time, so **FUNC + HOME, OK saves**, **FUNC + HOME, DOWN, OK is GEN ALL** and **FUNC + HOME, +DOWN, DOWN, OK starts or stops JAM REC**. JAM REC has a key of its own as well: **FUNC + REC +twice** (RESAMPLE, then again), as FUNC + EDIT twice is KIT. (Review 2026-11-30, proposal 8: +the setting rows used to sit between SAVE and the file rows.) | Row | What OK does | Value (LEFT/RIGHT, B, or OK steps) | | --- | --- | --- | | SAVE | saves the project, closes the menu | | -| JAM REC | starts recording the finished master to `/RECORD/JAM_.WAV` and closes the menu (`JAM REC JAM 3`); OK again stops it (`JAM STOPPING`, then `SAVED JAM 3` once the file is closed). FUNC + HOME, DOWN, OK. FUNC + REC on RESAMPLE does the same and stays on RESAMPLE, whose last line shows the time and `FUNC+REC: STOP JAM` (`JAM OFF` when none runs) | `OFF`, or how long it has run, `4:07`, `1:02:33` | -| ARR REC | starts a take (`ARR REC ON`, or `ARR: PRESS PLAY` with the transport stopped) and closes the menu; OK again ends it (`ARR 23 SECTIONS`). FUNC + HOME, DOWN, DOWN, OK. See ARR REC below | `OFF`, `ON`, or `ON 7`: the sections written so far | +| GEN ALL | GENERATE on every unmuted track at once, each of its own TYPE, with the track menu's DENSITY, RANGE, LEAP and WHAT: a whole idea from one press. One undo level (FUNC + CLR takes every track back at once); the menu stays open, so OK again is the next idea. A lane playing another pattern's part (LAUNCH) is passed over. `GEN ALL: ALL MUTED` when nothing would be written. The second row: FUNC + HOME, DOWN | `GEN ALL 7 TRACKS` | +| JAM REC | starts recording the finished master to `/RECORD/JAM_.WAV` and closes the menu (`JAM REC JAM 3`); OK again stops it (`JAM STOPPING`, then `SAVED JAM 3` once the file is closed). FUNC + HOME, DOWN, DOWN, OK. FUNC + REC on RESAMPLE does the same and stays on RESAMPLE, whose last line shows the time and `FUNC+REC: STOP JAM` (`JAM OFF` when none runs) | `OFF`, or how long it has run, `4:07`, `1:02:33` | +| ARR REC | starts a take (`ARR REC ON`, or `ARR: PRESS PLAY` with the transport stopped) and closes the menu; OK again ends it (`ARR 23 SECTIONS`). FUNC + HOME, DOWN three times, OK. See ARR REC below | `OFF`, `ON`, or `ON 7`: the sections written so far | +| ARR UNDO | swaps the chain the last ARR REC take replaced back in (`ARR UNDONE`); OK again brings the take back (`ARR REDONE`), unless the take captured launched lanes: then the undo also empties the slots it captured into and is final. `NO ARR TO UNDO` with none, or during a take | | +| SAVE AS | PROJECTS page with the name entry open | | +| OPEN PROJECT | PROJECTS page; OK twice there opens | | +| KITS | the kit browser | | +| NEW PROJECT | OK twice within 2 s: a new, empty project (the factory sounds, every pan centred, no steps, scenes or macros) | | +| RELOAD PROJECT | OK twice within 2 s: read the project back from the card | | +| CLEAR PATTERN | OK twice within 2 s: every track's trigs and locks gone, one undo level (FUNC + CLR). FUNC + HOME, DOWN ten times | | +| LOAD DEMO | OK twice within 2 s: the factory demo project (the boot beat), under a new name. FUNC + HOME, DOWN eleven times | | | CLICK | | the metronome, `ON` / `OFF`: a click on every beat while the transport runs, higher on a bar's first. Not saved | | COUNT-IN | | `OFF`, `1 BAR`, `2 BAR`: a PLAY from stop with REC on clicks that many bars first (`COUNT-IN 4` .. `1`), then the pattern starts on step 1. Internal clock only. Not saved | | REC MODE | | `REPLACE` (default) / `ADD`: what a note recorded onto a chord track's step does. REPLACE: the first note of a pass on a step takes it over (its notes and chord type go), the rest of that pass's notes join it. ADD: every note joins the step's notes. Saved with the project | @@ -193,17 +207,8 @@ FUNC + EDIT twice is KIT. | LOOP LEN | | the performance mixer's looper: `4 BAR` (1 2 4 8), what push VALUE + STEP 16 records | | CHAIN | | ON / OFF | | CHAIN END | | SONG (play once) / LOOP | -| ARR UNDO | swaps the chain the last ARR REC take replaced back in (`ARR UNDONE`); OK again brings the take back (`ARR REDONE`), unless the take captured launched lanes: then the undo also empties the slots it captured into and is final. `NO ARR TO UNDO` with none, or during a take | | | PROG CHG OUT | | `OFF` (a new project) / `ON`: a program change on MIDI CH every time the playing pattern changes, the pattern's number 0-127. Saved with the project | | TEMPO GUARD | | `OFF` (a new project) / `ON`: a plain turn or tap of VALUE where it would set the tempo changes nothing and says `TEMPO GUARD 130.0`; turn the row off to change the tempo. The nudge, VariSpeed, swing and a section's BPM still play (review 2026-11-29, proposal 9; Roland chose this over push + turn, which is swing, 2026-11-30). `EXT CLOCK` first under an outside clock. Saved with the project | -| SAVE AS | PROJECTS page with the name entry open | | -| OPEN PROJECT | PROJECTS page; OK twice there opens | | -| KITS | the kit browser | | -| NEW PROJECT | OK twice within 2 s: a new, empty project (the factory sounds, every pan centred, no steps, scenes or macros) | | -| RELOAD PROJECT | OK twice within 2 s: read the project back from the card | | -| CLEAR PATTERN | OK twice within 2 s: every track's trigs and locks gone, one undo level (FUNC + CLR). FUNC + HOME, UP three times | | -| LOAD DEMO | OK twice within 2 s: the factory demo project (the boot beat), under a new name. FUNC + HOME, UP, UP | | -| GEN ALL | GENERATE on every unmuted track at once, each of its own TYPE, with the track menu's DENSITY, RANGE, LEAP and WHAT: a whole idea from one press. One undo level (FUNC + CLR takes every track back at once); the menu stays open, so OK again is the next idea. A lane playing another pattern's part (LAUNCH) is passed over. `GEN ALL: ALL MUTED` when nothing would be written. The last row: FUNC + HOME, UP | `GEN ALL 7 TRACKS` | Moved here from: FUNC + PROJECT twice (save), PROJECT's FUNC + UP/DOWN/LEFT/RIGHT (chain, reload, new), PROJECTS' FUNC + DOWN (save as, still there too), CHAIN's FUNC + @@ -436,6 +441,10 @@ nothing, so the hold costs no gesture; a tap says where the menu is (`HOLD OK: T has the same hold and tap (usability review, 2026-11-28): GEN on a melodic track while playing the pads. There the pads stay the piano, and the arrows are the menu's until CLR closes it (`KEYS`). +The rows come in five groups: GEN (GENERATE to WHAT), EVOLVE (EVOLVE to HOME), PLAY (SPEED to +FREEZE), SAMPLE (SAMPLE, ZONES, PREP) and CAPTURE. The screen keys jump to the next group +(right) or the one before (left), wrapping, and say its name (`EVOLVE`); the last line names the +group the cursor is in (review 2026-11-30, proposal 8). | Row | Does | Says | | --- | --- | --- | diff --git a/docs/FEATURES.md b/docs/FEATURES.md index e47f2de9..65b8280c 100644 --- a/docs/FEATURES.md +++ b/docs/FEATURES.md @@ -197,10 +197,11 @@ FM4 and GRAIN machines. | MUTATE (rotate, density, velocity, micro, chance, notes), OK keeps, CLR reverts | v0.1.0 | ○ (10) | | | **GEN and EVOLVE** (hold OK in GRID or KEYS): a new drum or melodic part in the key (DENSITY, RANGE, LEAP, WHAT); a track mutating on its own every 1-8 loops, ORBIT or DRIFT, KEEP or HOME | #195, #200 | ○ (W52, W53) | The mutation and amount are PERFORM's MUTATE setting; MIX draws one each turn. Saved in PROJECT.BIN (section 7); HOME is not | | **GEN TYPE** (track menu): KICK, SNARE, HATS, PERC, MONO or POLY per track, each writing its own kind of part (four on the floor, backbeats and fills, off-beat hats and ratchets, a 3+3+2 figure, a line in the key, chord stabs through a progression) | this PR | ○ (W52) | Starts on the machine's type and returns to it on a machine switch; saved on the end of PROJECT.BIN's section 7. LEAP reads FILL on a drum type | -| **GEN ALL** (the FUNC menu's last row, FUNC+HOME, UP, OK): GENERATE on every unmuted track at once, each of its own TYPE with the track menu's knobs, one undo level; OK again for the next idea | this PR | ○ (W98), E (scenario_genall.sh) | A muted track and a launched (READ ONLY) lane keep what they have. The notice counts the tracks | +| **GEN ALL** (the FUNC menu's second row, FUNC+HOME, DOWN, OK): GENERATE on every unmuted track at once, each of its own TYPE with the track menu's knobs, one undo level; OK again for the next idea | this PR | ○ (W98), E (scenario_genall.sh) | A muted track and a launched (READ ONLY) lane keep what they have. The notice counts the tracks | | **GEN as a band** (GEN ALL and GENERATE): the bass (the MONO track with the most SUB) from C2 on the off-beats, off the kick's steps; every other MONO track answers in its gaps an octave up; PERC spreads hits over slices or zones; a clap gets two ghosts at most | #301 | ○ (W112), E (scenario_genall.sh) | GEN ALL writes kicks, bass, answers, then the rest; GENERATE reads the other tracks as they stand. Muted tracks count for nothing (host: test_generate, test_engine_evolve) | | **CLR is back on every sample screen** (review 2026-11-30, proposal 5): ZONES' A/B open PREP (START/END's one home), a zone is removed by OK held twice, a SLICE point by push B twice | this PR | ○ (W118), E (scenario_zoneedit.sh, scenario_prep.sh) | CONTROLS rules 6 and 7 (host: test_ui, test_help) | | **A shorter road to PREP** (review 2026-11-30, proposal 6): push STA/LEN on SRC opens PREP; a take put on a SAMPLE track opens PREP; RESAMPLE FREE takes (OK to OK, stopped or running) | this PR | ○ (W119) | A FREE take is as long as the take buffer; with AUTO REC it waits for the input (host: test_ui, test_engine_gaps) | +| **Menus by group** (review 2026-11-30, proposal 8): the FUNC menu's DO and SET parts (screen keys jump; GEN ALL one DOWN), the track menu's groups on the screen keys, PROJECTS' RENAME/DELETE/COLLECT on a held OK | this PR | ○ (W123), E (scenario_genall.sh, scenario_clear.sh) | Push A on PROJECTS stays NEXT; pushes B-D point to the menu (host: test_ui, test_help) | | Note repeat on the pads, pressure as velocity | v0.1.0 | ○ (13f) | Recorded with REC as a roll over LEN (P3, #187; not at 1/4T) | | Step stutter: hold REPEAT + STEP loops that step on every track (FUNC: one track) | #151 | ○ (W11) | Sequencer, not audio: sounds stay live. Host-tested; the emulator cannot press pads | | Roll rate on LEFT/RIGHT under REPEAT or a rolling pad, on the live strip | #151 | ○ (W11) | | diff --git a/docs/MANUAL.md b/docs/MANUAL.md index c09b271c..be749d0e 100644 --- a/docs/MANUAL.md +++ b/docs/MANUAL.md @@ -36,7 +36,9 @@ key, FUNC + a knob or pad, the upper pads, and two pages on the performance mixe Left: FUNC held alone on GRID: A-D and their words, then GRID's keys; LEFT/RIGHT turn to the steps, the STEP lights and FUNC + each key. -Right: the FUNC menu (FUNC+HOME), which always opens on SAVE. +Right: the FUNC menu (FUNC+HOME), which always opens on SAVE. Its DO part, the rows OK runs +(SAVE, GEN ALL, JAM REC, ARR REC, ARR UNDO, the file rows), comes first, then its SET part, the +rows LEFT/RIGHT change; the right screen key jumps to SET, the left one back to SAVE. **Contents** @@ -444,7 +446,9 @@ level: OK keeps it, CLR takes it back. pad picks another track with the menu open. Its last four rows are the track's **SPEED** and **PLAY** (see "Length, speed and swing"), **FREEZE** (see "Freeze") and **RELOAD SAMPLE**, which loads the track's sample again after a `FAIL` or a card that was out; the list wraps, so UP from -GENERATE reaches them. **GENERATE** writes a new part on the selected track, of the kind its +GENERATE reaches them. The rows come in groups, GEN, EVOLVE, PLAY, SAMPLE and CAPTURE, and the +**screen keys** jump from group to group (right to the next, left to the one before); the +bottom line names the group the cursor is in. **GENERATE** writes a new part on the selected track, of the kind its **TYPE** row names: | TYPE | The part | @@ -464,7 +468,7 @@ four-note ones), LEAP how often the line jumps or the chords move, and WHAT whet the rhythm, the notes or both. On a drum type LEAP reads **FILL**: how often SNARE fills and HATS ratchet. Every press is a new part and one undo level. -**GEN ALL** does this for every track at once: the FUNC menu's last row, **FUNC+HOME, UP, OK**. +**GEN ALL** does this for every track at once: the FUNC menu's second row, **FUNC+HOME, DOWN, OK**. Each unmuted track gets a new part of its own TYPE, with the DENSITY, RANGE, LEAP and WHAT the track menu is set to, so an empty pattern becomes a whole idea in one press: a kick, a clap, hats, perc, a bass line and chords, all in the key. Mute a track first to keep what it has. The menu @@ -1471,7 +1475,7 @@ an entry with its fields. A project from before sections opens with every field **ARR REC** writes the jam into the chain while you play, so a set comes out as a song you can replay and edit. It records the structure, not the sound: JAM REC records the audio, and the two -can run together. ARR REC is the FUNC menu's third row: **FUNC+HOME, DOWN, DOWN, OK**. The menu +can run together. ARR REC is the FUNC menu's fourth row: **FUNC+HOME, DOWN** three times, **OK**. The menu closes and STRATA says `ARR: PRESS PLAY` (or `ARR REC ON` with the transport running). The chain you had is kept for undo, the chain is emptied, and the chain is not followed while you record. @@ -1503,7 +1507,7 @@ To hear it, set CHAIN END to SONG, turn CHAIN on and press PLAY from stop: the j its patterns, mutes, scenes, breakdowns, key changes and tempo changes, quantized to whole passes. Edit any entry on the CHAIN page or in its SECTION view. A morph swept by hand is written as the side it ended a pass nearer to; set RIDE or BACK on the entry for a sweep. **ARR UNDO** (the FUNC menu, -under CHAIN END) swaps the chain from before the take back in (`ARR UNDONE`), and OK again brings +under ARR REC) swaps the chain from before the take back in (`ARR UNDONE`), and OK again brings the take back (`ARR REDONE`). It keeps one chain until the next take or until a project is opened. After a take that wrote launched tracks into slots, ARR UNDO also empties those slots, so the jam leaves nothing behind in the bank; a slot you have edited since, or one playing at that @@ -1563,9 +1567,9 @@ can be built up one pass at a time. The edit line says `REC+` under ADD. Transpo MUTATE's note moves and turning NOTE move the whole chord. VA MONO, WAVE MONO, SAMPLE, GRAIN and the drums keep one note a step: the last one played. -

The FUNC menu on CLICK, with ARR REC above and COUNT-IN below

+

The FUNC menu on CLICK, the first row of its SET part, with COUNT-IN below

-**CLICK and COUNT-IN** (FUNC menu, the two rows under ARR REC). CLICK `ON` clicks every beat while the transport runs, a +**CLICK and COUNT-IN** (FUNC menu, the first two rows of its SET part). CLICK `ON` clicks every beat while the transport runs, a higher click on each bar's first beat. COUNT-IN `1 BAR` or `2 BAR` makes a PLAY from stop with REC on click that many bars first (the notice counts `COUNT-IN 4` .. `1`), whether CLICK is on or not; the pattern then starts on step 1 on the next beat, and nothing is recorded during the clicks @@ -2407,7 +2411,7 @@ for RESAMPLE and again to start it (`JAM REC JAM 3`). A dot blinks in the top ba the REC key blinks a dim red, and everything that comes out of STRATA goes to `/RECORD/JAM_.WAV` until you stop it with FUNC+REC on RESAMPLE again (`JAM STOPPING`, then `SAVED JAM 3`). RESAMPLE's last line shows how long it has run, `4:07` or `1:02:33`, and the key -that stops it. The FUNC menu's JAM REC row, its second (FUNC+HOME, DOWN, OK), does the same, with the time on the row. +that stops it. The FUNC menu's JAM REC row, its third (FUNC+HOME, DOWN, DOWN, OK), does the same, with the time on the row. It records what RESAMPLE's MASTER take hears: every track, the sends, the master effects, REPEAT and the tape stop. The metronome and the sample browser's audition are for you and are @@ -2500,16 +2504,19 @@ of eight at a time. room). Two different files with one name become `KICK.WAV` and `KICK-2.WAV`, and a name too long is shortened. SAVE on a collected project copies only the files added since; the autosave never copies. A kit stored in the kit library keeps the full paths of the copies, so deleting - the project leaves that kit's tracks without their files. **Push D** collects the open project - without a new name (`COLLECTING`, then the count, or `NOTHING TO COLLECT`): for a project saved + the project leaves that kit's tracks without their files. **COLLECT OPEN PROJECT** in the + file menu (below) collects the open project without a new name (`COLLECTING`, then the count, or `NOTHING TO COLLECT`): for a project saved before it had a SAMPLES folder. The copies are under `PROJECT/` at the top of the sample browser. -- **Rename:** push B on a project opens the same name entry, titled RENAME and starting from +- **File menu:** hold OK on a project for its menu: RENAME, DELETE and COLLECT OPEN PROJECT. + UP/DOWN pick, OK runs, CLR closes it (`PROJECTS`). A tap of OK still opens, as above, and + pushes B, C and D say `HOLD OK: MENU`. +- **Rename:** RENAME in the file menu opens the same name entry, titled RENAME and starting from that project's name. OK renames it (`RENAMING`), CLR leaves it (`NAME KEPT`); a name another project has is refused (`NAME TAKEN`). The open project can be renamed too: it carries on under the new name, and STRATA starts with it. Unsaved work stays unsaved; the rename moves what is on the card, the collected samples included. -- **Delete:** push C on a project asks `OK TWICE: DELETE`; OK, then OK again within 2 s +- **Delete:** DELETE in the file menu asks `OK TWICE: DELETE`; OK, then OK again within 2 s (`OK AGAIN: DELETE`), deletes its folder and everything in it (`DELETING`). CLR, or any other key, keeps it. The open project cannot be deleted (`PROJECT IS OPEN`): open another one first. A delete cannot be undone. diff --git a/docs/UNIT_CHECKLIST.md b/docs/UNIT_CHECKLIST.md index d7347148..c9e31101 100644 --- a/docs/UNIT_CHECKLIST.md +++ b/docs/UNIT_CHECKLIST.md @@ -3757,3 +3757,12 @@ chord pattern playing. EDIT, the ninth page: it reads OPS with WAV `SIN`. - CPU with WAV on `DBL` against `SIN` on the same chords (the readout): `____` / `____` - Track 1 (KCK), EDIT, TAPS: TAP turns past 7% up to 100%, and the ghost hits are clearly heard from about 40%. `____` + +**W123. The menus by group (3 min).** Any project, PLAY. +- FUNC + HOME, DOWN, OK: `GEN ALL 7 TRACKS` (or how many play). FUNC + HOME, right screen key: + `SET`, the cursor on CLICK; left screen key: `DO`, back on SAVE. `____` +- GRID, hold OK: the track menu, its last line `GEN SCREEN KEYS: GROUP`. The right screen key + walks EVOLVE, PLAY, SAMPLE, CAPTURE and round to GEN. `____` +- PROJECTS (FUNC + HOME, OPEN PROJECT): push B says `HOLD OK: MENU` and does nothing else. Hold + OK on a project you can lose: `PROJECT MENU` with RENAME, DELETE, COLLECT OPEN PROJECT. CLR + closes it; a tap of OK still asks `OK AGAIN: OPEN`. `____` diff --git a/docs/screens/menu.png b/docs/screens/menu.png index 0bc4570e..1e04e021 100644 Binary files a/docs/screens/menu.png and b/docs/screens/menu.png differ diff --git a/tests/scenario_arrrec.sh b/tests/scenario_arrrec.sh index 4f1f5b00..0962caf2 100755 --- a/tests/scenario_arrrec.sh +++ b/tests/scenario_arrrec.sh @@ -4,18 +4,18 @@ # and says how many sections it wrote, and ARR UNDO swaps the chain from before back in. # # PLAY -> A01, 16 steps: a pass is about 690 M cycles at 130 BPM -# FUNC + HOME, DOWN x2, OK -> "ARR REC ON", the menu closes +# FUNC + HOME, DOWN to ARR REC, OK -> "ARR REC ON", the menu closes # FUNC + MIXER -> PERFORM # FUNC + turn VALUE -2 -> "ENERGY -4", inside the take's second pass (VALUE since #288) # STOP -> "ARR 2 SECTIONS" (the first pass, cut in early, is kept whole) -# FUNC + HOME, UP to ARR UNDO, OK -> ARR UNDO: "ARR UNDONE" +# FUNC + HOME, DOWN to ARR UNDO, OK -> ARR UNDO: "ARR UNDONE" # # What each pass writes, the half rule and the X16 split are tests/test_arrrec.cpp's and # tests/test_engine.cpp's (engine_arr_*); this proves the path runs on the C674x, with the # chain written from the audio side, under the load target. # # Keys (third_party/enaga/include/enaga/abi.h): F5 = 22, F6 = 29, F1 = 19, F4 = 27, F7 = 21, -# DOWN = 25, UP = 17, OK = 23; encoder VALUE is 4. A chord is FUNC and the second key 5 M cycles later; +# DOWN = 25, OK = 23; encoder VALUE is 4. A chord is FUNC and the second key 5 M cycles later; # a turn 2 M cycles after FUNC is FUNC + turn (scenario_energy). The first press must come LATE # (tests/scenario_m1.sh). set -euo pipefail @@ -46,19 +46,24 @@ mkdir -p "$ENAGA_BUILD" LOG="$ENAGA_BUILD/scenario_arrrec.log" keys=(--key 22@300000000) -keys+=(--key 19@340000000 --key 27@345000000 --key 25@380000000 --key 25@420000000) -keys+=(--key 23@460000000) +# FUNC + HOME, DOWN to ARR REC (tools/menu_rows.py), OK. +keys+=(--key 19@340000000 --key 27@345000000) +arr_downs=$(python3 -B tools/menu_rows.py app/ui_perfmix.hpp MenuItem arr) +for ((i = 0; i < arr_downs; i++)); do + keys+=(--key "25@$((380000000 + i * 40000000))") +done +keys+=(--key "23@$((380000000 + arr_downs * 40000000 + 40000000))") keys+=(--key 19@560000000 --key 21@565000000) keys+=(--key 19@1300000000 --turn 4:-2@1302000000) keys+=(--key 29@2600000000) keys+=(--key 19@2800000000 --key 27@2805000000) -# UP from SAVE, round the bottom, to ARR UNDO: counted from the FUNC menu's own order +# DOWN from SAVE to ARR UNDO: counted from the FUNC menu's own order # (app/ui_perfmix.hpp, MenuItem; tools/menu_rows.py), so a row added there does not move it. -ups=$(python3 -B tools/menu_rows.py app/ui_perfmix.hpp MenuItem arr_undo --up) -for ((i = 0; i < ups; i++)); do - keys+=(--key "17@$((2840000000 + i * 40000000))") +downs=$(python3 -B tools/menu_rows.py app/ui_perfmix.hpp MenuItem arr_undo) +for ((i = 0; i < downs; i++)); do + keys+=(--key "25@$((2840000000 + i * 40000000))") done -keys+=(--key "23@$((2840000000 + ups * 40000000 + 40000000))") +keys+=(--key "23@$((2840000000 + downs * 40000000 + 40000000))") echo "running the emulator for $CYCLES cycles: ARR REC on the factory beat, STOP, ARR UNDO ..." python3 -B tools/enaga_cached.py emulate "$STAGE" --cycles "$CYCLES" "${keys[@]}" \ diff --git a/tests/scenario_clear.sh b/tests/scenario_clear.sh index affe197e..d9694ed3 100755 --- a/tests/scenario_clear.sh +++ b/tests/scenario_clear.sh @@ -2,7 +2,7 @@ # CLEAR PATTERN (FUNC menu, docs/CONTROLS.md) in the emulator, on the factory beat while it plays: # # PLAY -> the beat runs, track 1's grid line is not empty -# FUNC + HOME, UP to CLEAR PATTERN, OK, OK -> round from SAVE past GEN ALL and LOAD DEMO: +# FUNC + HOME, DOWN to CLEAR PATTERN, OK, OK -> down the menu's DO part: # `g0000 u1`: track 1 empty, one undo level # FUNC + CLR -> the grid line is back, undo depth 0 # @@ -11,7 +11,7 @@ # empty too is tests/test_ui.cpp's. # # Keys (third_party/enaga/include/enaga/abi.h): F1 = 19, F4 = 27, F5 = 22, OK = 23, CLR = 30, -# UP = 17. A chord is FUNC pressed and the second key 5 M cycles later (tests/scenario_m6.sh). +# DOWN = 25. A chord is FUNC pressed and the second key 5 M cycles later (tests/scenario_m6.sh). # The two OKs are 60 M cycles (0.16 s) apart, well inside the 2 s arm. set -euo pipefail @@ -19,7 +19,7 @@ cd "$(dirname "$0")/.." # shellcheck source=tools/env.sh source tools/env.sh -CYCLES=1100000000 +CYCLES=1300000000 while [ $# -gt 0 ]; do case "$1" in --cycles) CYCLES="$2"; shift 2 ;; @@ -40,14 +40,16 @@ STAGE="$ENAGA_BUILD/stage/STRATA" mkdir -p "$ENAGA_BUILD" LOG="$ENAGA_BUILD/scenario_clear.log" -# UP from SAVE, round the bottom, to CLEAR PATTERN: counted from the FUNC menu's own order +# DOWN from SAVE to CLEAR PATTERN: counted from the FUNC menu's own order # (app/ui_perfmix.hpp, MenuItem; tools/menu_rows.py), so a row added there does not move it. keys=(--key 22@300000000 --key 19@400000000 --key 27@405000000) -ups=$(python3 -B tools/menu_rows.py app/ui_perfmix.hpp MenuItem clear --up) -for ((i = 0; i < ups; i++)); do - keys+=(--key "17@$((460000000 + i * 60000000))") +downs=$(python3 -B tools/menu_rows.py app/ui_perfmix.hpp MenuItem clear) +for ((i = 0; i < downs; i++)); do + keys+=(--key "25@$((460000000 + i * 30000000))") done -keys+=(--key 23@760000000 --key 23@820000000 --key 19@940000000 --key 30@945000000) +ok_at=$((460000000 + downs * 30000000 + 40000000)) +keys+=(--key "23@$ok_at" --key "23@$((ok_at + 60000000))") +keys+=(--key "19@$((ok_at + 180000000))" --key "30@$((ok_at + 185000000))") echo "running the emulator for $CYCLES cycles: PLAY, FUNC menu CLEAR PATTERN, FUNC + CLR ..." python3 -B tools/enaga_cached.py emulate "$STAGE" --cycles "$CYCLES" "${keys[@]}" \ diff --git a/tests/scenario_energy.sh b/tests/scenario_energy.sh index afbde679..cc4135f8 100755 --- a/tests/scenario_energy.sh +++ b/tests/scenario_energy.sh @@ -25,16 +25,16 @@ # +36, not +32: the emulator holds each encoder phase 3 ms and # Enaga's decoder counts a detent only on phase 0, so a main-loop # pass over 3 ms loses one (two of 32 here); ENERGY stops at +64 -# run "load" (1.2 G cycles) +# run "load" (about 1.5 G cycles: the walk to LOAD DEMO is counted) # PLAY, FUNC + MIXER -> PERFORM # FUNC + turn VALUE -5 -> "ENERGY -10" (or short of it: any ENERGY below rest) -# FUNC + HOME, UP to LOAD DEMO (tools/menu_rows.py), OK, OK -> the demo loads +# FUNC + HOME, DOWN to LOAD DEMO (tools/menu_rows.py), OK, OK -> the demo loads # FUNC + turn VALUE +1 -> "ENERGY +2": the load put ENERGY back to rest, so the click # starts from 0 and not from -10 # # -64 and the order the tracks thin in are tests/test_energy.cpp's. # -# Keys (third_party/enaga/include/enaga/abi.h): F5 = 22, F1 = 19, F7 = 21, F4 = 27, UP = 17, +# Keys (third_party/enaga/include/enaga/abi.h): F5 = 22, F1 = 19, F7 = 21, F4 = 27, DOWN = 25, # OK = 23; VALUE's encoder is 4. The # first press must come LATE (tests/scenario_m1.sh). set -euo pipefail @@ -93,19 +93,19 @@ emulate "$LOG" 1900000000 \ --key 19@460000000 --turn 4:36@462000000 echo "running the emulator: ENERGY across LOAD DEMO ..." -# UP from SAVE, round the bottom, to LOAD DEMO: counted from the FUNC menu's own order. +# DOWN from SAVE to LOAD DEMO: counted from the FUNC menu's own order. load_keys=(--key 22@300000000 --key 19@380000000 --key 21@385000000 --key 19@460000000 --turn 4:-5@462000000 --key 19@560000000 --key 27@565000000) -ups=$(python3 -B tools/menu_rows.py app/ui_perfmix.hpp MenuItem demo --up) -for ((i = 0; i < ups; i++)); do - load_keys+=(--key "17@$((640000000 + i * 40000000))") +downs=$(python3 -B tools/menu_rows.py app/ui_perfmix.hpp MenuItem demo) +for ((i = 0; i < downs; i++)); do + load_keys+=(--key "25@$((640000000 + i * 30000000))") done -ok_at=$((640000000 + ups * 40000000 + 40000000)) +ok_at=$((640000000 + downs * 30000000 + 40000000)) load_keys+=(--key "23@$ok_at" --key "23@$((ok_at + 60000000))") -load_keys+=(--key 19@1000000000 --turn 4:1@1002000000) -emulate "$LOG_LOAD" 1200000000 "${load_keys[@]}" +load_keys+=(--key "19@$((ok_at + 300000000))" --turn "4:1@$((ok_at + 302000000))") +emulate "$LOG_LOAD" "$((ok_at + 500000000))" "${load_keys[@]}" rc=0 python3 - "$LOG_WALK" "$LOG" "$LOG_LOAD" <<'PY' || rc=$? diff --git a/tests/scenario_genall.sh b/tests/scenario_genall.sh index 870574f5..568586c0 100755 --- a/tests/scenario_genall.sh +++ b/tests/scenario_genall.sh @@ -2,7 +2,7 @@ # GEN ALL (FUNC menu, docs/CONTROLS.md) in the emulator, on the factory beat while it plays: # # PLAY -> the beat runs -# FUNC + HOME, UP to GEN ALL, OK -> `GEN ALL 8 TRACKS`, one undo level (`u1`); the menu +# FUNC + HOME, DOWN to GEN ALL, OK -> `GEN ALL 8 TRACKS`, one undo level (`u1`); the menu # stays open # OK -> another idea, `u2` # FUNC + CLR twice -> back to the factory beat, `u0` @@ -13,7 +13,7 @@ # tests/test_engine_evolve.cpp's and tests/test_ui.cpp's. # # Keys (third_party/enaga/include/enaga/abi.h): F1 = 19, F4 = 27, F5 = 22, OK = 23, CLR = 30, -# UP = 17. A chord is FUNC pressed and the second key 5 M cycles later (tests/scenario_m6.sh). +# DOWN = 25. A chord is FUNC pressed and the second key 5 M cycles later (tests/scenario_m6.sh). set -euo pipefail cd "$(dirname "$0")/.." @@ -41,12 +41,11 @@ STAGE="$ENAGA_BUILD/stage/STRATA" mkdir -p "$ENAGA_BUILD" LOG="$ENAGA_BUILD/scenario_genall.log" -# UP from SAVE, round the bottom, to GEN ALL (tools/menu_rows.py), so a row added there does not -# move it. +# DOWN from SAVE to GEN ALL (tools/menu_rows.py), so a row added there does not move it. keys=(--key 22@300000000 --key 19@400000000 --key 27@405000000) -ups=$(python3 -B tools/menu_rows.py app/ui_perfmix.hpp MenuItem gen_all --up) -for ((i = 0; i < ups; i++)); do - keys+=(--key "17@$((460000000 + i * 60000000))") +downs=$(python3 -B tools/menu_rows.py app/ui_perfmix.hpp MenuItem gen_all) +for ((i = 0; i < downs; i++)); do + keys+=(--key "25@$((460000000 + i * 60000000))") done keys+=(--key 23@700000000 --key 23@950000000) keys+=(--key 19@1200000000 --key 30@1205000000 --key 19@1300000000 --key 30@1305000000) diff --git a/tests/test_help.cpp b/tests/test_help.cpp index 7df55666..e81fd71a 100644 --- a/tests/test_help.cpp +++ b/tests/test_help.cpp @@ -201,8 +201,8 @@ TEST(help_starts_on_the_screens_own_page) { CHECK(first_page_has(place_of(HelpScreen::keys, 0, 0), "LOWER PADS WHITE KEYS")); CHECK(first_page_has(place_of(HelpScreen::step, 0, 0), "STEP PAGE")); CHECK(first_page_has(place_of(HelpScreen::perform, 0, 0), "PUSH A-D LEARN")); - CHECK(first_page_has(place_of(HelpScreen::projects, 0, 0), "PUSH B RENAME")); - CHECK(first_page_has(place_of(HelpScreen::projects, 0, 0), "PUSH C DEL OK TWICE")); + CHECK(first_page_has(place_of(HelpScreen::projects, 0, 0), "HOLD OK FILE MENU")); + CHECK(first_page_has(place_of(HelpScreen::projects, 0, 0), "MENU RENAME DELETE")); CHECK(first_page_has(place_of(HelpScreen::sounds, 0, 0), "AS WAS")); CHECK(first_page_has(place_of(HelpScreen::menu, 0, 0), "FUNC MENU")); CHECK(first_page_has(place_of(HelpScreen::prep, 0, 0), "PUSH D NORM -1DB")); diff --git a/tests/test_ui.cpp b/tests/test_ui.cpp index 37e14db0..2d1904b1 100644 --- a/tests/test_ui.cpp +++ b/tests/test_ui.cpp @@ -156,6 +156,7 @@ struct UiProbe { static bool track_menu(const Strata &app) { return app.track_menu_; } static int track_menu_cursor(const Strata &app) { return app.track_menu_cursor_; } static bool zones_view(const Strata &app) { return app.zones_view_; } + static bool file_menu(const Strata &app) { return app.file_menu_; } static bool prep_view(const Strata &app) { return app.prep_view_; } // ZONES' and PREP's one write of a zone field, on the zone under ZONES' cursor. static void zone_write(Strata &app, ZoneField field, uint32_t value) { app.zone_write(field, value); } @@ -450,11 +451,11 @@ void open_keys() { } // The FUNC menu's rows, in order (app/ui_perfmix.hpp, MenuItem). -enum MenuRow : int { kMenuSave, kMenuJam, kMenuArr, kMenuClick, kMenuCountIn, kMenuRecMode, - kMenuQuantize, kMenuAutofill, kMenuGlide, kMenuTranspose, kMenuLoopLen, - kMenuChain, kMenuSong, kMenuArrUndo, kMenuProgOut, kMenuTempoGuard, - kMenuSaveAs, kMenuOpen, - kMenuKits, kMenuNew, kMenuReload, kMenuClear, kMenuDemo, kMenuGenAll, +enum MenuRow : int { kMenuSave, kMenuGenAll, kMenuJam, kMenuArr, kMenuArrUndo, kMenuSaveAs, + kMenuOpen, kMenuKits, kMenuNew, kMenuReload, kMenuClear, kMenuDemo, + kMenuClick, kMenuCountIn, kMenuRecMode, kMenuQuantize, kMenuAutofill, + kMenuGlide, kMenuTranspose, kMenuLoopLen, kMenuChain, kMenuSong, + kMenuProgOut, kMenuTempoGuard, kMenuRowCount }; // GRID's track menu's rows, in order (app/ui_trackmenu.hpp, TrackRow). @@ -7656,14 +7657,27 @@ void wait_for_list(Strata &app, const char *name, bool there) { for (int i = 0; i < 200 && app_storage().browsing(); i++) pump(); } +// PROJECTS' file menu (review 2026-11-30, proposal 8): hold OK, walk DOWN to the row (0 RENAME, +// 1 DELETE, 2 COLLECT OPEN PROJECT) and run it with OK. +void project_menu(Strata &app, int row) { + app.on_key(ENAGA_KEY_OK, true); + g_ms += 600; + pump(2); + app.on_key(ENAGA_KEY_OK, false); + CHECK(UiProbe::file_menu(app)); + for (int i = 0; i < row; i++) key(ENAGA_KEY_DOWN); + key(ENAGA_KEY_OK); + CHECK(!UiProbe::file_menu(app)); +} + } // namespace -TEST(ui_projects_push_b_renames_the_project_under_the_cursor) { +TEST(ui_projects_menu_rename_renames_the_project_under_the_cursor) { Strata &app = fresh(); two_projects(); to_projects_page(app); cursor_to(app, "FIRST"); - key(ENAGA_KEY_PUSH_B); + project_menu(app, 0); CHECK(UiProbe::name_entry_open(app)); CHECK(std::strcmp(UiProbe::name_entry_text(app), "FIRST") == 0); // starts from its name check_layout(app, "RENAME"); @@ -7680,7 +7694,7 @@ TEST(ui_projects_push_b_renames_the_project_under_the_cursor) { // The open one too: the project takes the new name. cursor_to(app, "SECOND"); - key(ENAGA_KEY_PUSH_B); + project_menu(app, 0); type_name(app, "LIVE"); key(ENAGA_KEY_OK); CHECK(pump_until_idle()); @@ -7696,14 +7710,14 @@ TEST(ui_projects_rename_refuses_a_taken_name_and_keeps_an_unchanged_one) { two_projects(); to_projects_page(app); cursor_to(app, "FIRST"); - key(ENAGA_KEY_PUSH_B); + project_menu(app, 0); type_name(app, "SECOND"); key(ENAGA_KEY_OK); CHECK(std::strcmp(UiProbe::notice(app), "NAME TAKEN") == 0); - key(ENAGA_KEY_PUSH_B); + project_menu(app, 0); key(ENAGA_KEY_OK); // the name as it was CHECK(std::strcmp(UiProbe::notice(app), "NAME KEPT") == 0); - key(ENAGA_KEY_PUSH_B); + project_menu(app, 0); key(ENAGA_KEY_CLR); CHECK(!UiProbe::name_entry_open(app)); CHECK_EQ(UiProbe::project_page(app), 4); @@ -7714,12 +7728,12 @@ TEST(ui_projects_rename_refuses_a_taken_name_and_keeps_an_unchanged_one) { key(ENAGA_KEY_F4); } -TEST(ui_projects_push_c_then_ok_twice_deletes) { +TEST(ui_projects_menu_delete_then_ok_twice_deletes) { Strata &app = fresh(); two_projects(); to_projects_page(app); cursor_to(app, "FIRST"); - key(ENAGA_KEY_PUSH_C); + project_menu(app, 1); CHECK(std::strcmp(UiProbe::notice(app), "OK TWICE: DELETE") == 0); check_layout(app, "PROJECTS, a delete asked"); key(ENAGA_KEY_OK); @@ -7746,7 +7760,7 @@ TEST(ui_projects_a_delete_is_called_off_by_clr_or_another_key) { two_projects(); to_projects_page(app); cursor_to(app, "FIRST"); - key(ENAGA_KEY_PUSH_C); + project_menu(app, 1); key(ENAGA_KEY_CLR); CHECK(std::strcmp(UiProbe::notice(app), "DELETE OFF") == 0); CHECK_EQ(UiProbe::project_page(app), 4); // that CLR was the question's @@ -7758,7 +7772,7 @@ TEST(ui_projects_a_delete_is_called_off_by_clr_or_another_key) { pump_until_idle(2000); to_projects_page(app); cursor_to(app, "SECOND"); - key(ENAGA_KEY_PUSH_C); + project_menu(app, 1); key(ENAGA_KEY_UP); // moving on lets it go cursor_to(app, "SECOND"); key(ENAGA_KEY_OK); @@ -7775,7 +7789,7 @@ TEST(ui_projects_the_open_project_is_not_deleted) { two_projects(); to_projects_page(app); cursor_to(app, "SECOND"); - key(ENAGA_KEY_PUSH_C); + project_menu(app, 1); CHECK(std::strcmp(UiProbe::notice(app), "PROJECT IS OPEN") == 0); key(ENAGA_KEY_OK); CHECK(std::strcmp(UiProbe::notice(app), "ALREADY OPEN") == 0); @@ -7784,6 +7798,42 @@ TEST(ui_projects_the_open_project_is_not_deleted) { key(ENAGA_KEY_F4); } +// Review 2026-11-30, proposal 8: RENAME, DELETE and COLLECT left pushes B, C and D (DELETE sat one +// knob from NEXT on push A) for a menu on a held OK. A tap of OK still opens. +TEST(ui_projects_a_held_ok_opens_the_file_menu_and_the_pushes_point_to_it) { + Strata &app = fresh(); + two_projects(); + to_projects_page(app); + cursor_to(app, "FIRST"); + for (int k : {ENAGA_KEY_PUSH_B, ENAGA_KEY_PUSH_C, ENAGA_KEY_PUSH_D}) { + key(k); + CHECK(std::strcmp(UiProbe::notice(app), "HOLD OK: MENU") == 0); + CHECK(!UiProbe::name_entry_open(app)); + } + app.on_key(ENAGA_KEY_OK, true); + g_ms += 300; + pump(2); + CHECK(!UiProbe::file_menu(app)); // not yet held long enough + g_ms += 300; + pump(2); + CHECK(UiProbe::file_menu(app)); + CHECK(std::strcmp(UiProbe::notice(app), "PROJECT MENU") == 0); + app.on_key(ENAGA_KEY_OK, false); // the hold's release does nothing + CHECK(UiProbe::file_menu(app)); + check_layout(app, "PROJECTS file menu"); + key(ENAGA_KEY_UP); // wraps to COLLECT + key(ENAGA_KEY_DOWN); + key(ENAGA_KEY_CLR); + CHECK(!UiProbe::file_menu(app)); + CHECK_EQ(UiProbe::project_page(app), 4); + CHECK(!app_storage().project_op_pending()); + key(ENAGA_KEY_OK); // a tap: an open, as ever + CHECK(std::strcmp(UiProbe::notice(app), "OK AGAIN: OPEN") == 0); + key(ENAGA_KEY_CLR); + key(ENAGA_KEY_CLR); + key(ENAGA_KEY_F4); +} + // --- LFO SLOW: push WAV's knob on the LFO page ------------------------------------------------ TEST(ui_pushing_wav_on_the_lfo_page_walks_lfo_slow_and_rat_shows_the_cycle) { @@ -9133,14 +9183,12 @@ const char *quiet_reason(int s, const Probe &p, bool func) { return "FUNC + LEFT/RIGHT: free"; } - // The FUNC menu is a list: the arrows, A, B, OK and CLR. The STEP keys, the screen keys and - // the pad-row keys do nothing in it, plain or with FUNC, and C and D have nothing to turn -- - // but FUNC + a screen key is TRANSPOSE there too, as on every screen. - const bool transpose = func && p.kind == in_key && - (p.id == ENAGA_KEY_SELECT_LEFT || p.id == ENAGA_KEY_SELECT_RIGHT); - if (s == s_menu && p.kind == in_key && !transpose && - (p.id == ENAGA_KEY_SELECT_LEFT || p.id == ENAGA_KEY_SELECT_RIGHT || - p.id == ENAGA_KEY_OCTAVE_LEFT || p.id == ENAGA_KEY_OCTAVE_RIGHT || + // The FUNC menu is a list: the arrows, A, B, OK and CLR, and the screen keys jump between + // its DO and SET parts. The STEP keys and the pad-row keys do nothing in it, plain or with + // FUNC, and C and D have nothing to turn -- but FUNC + a screen key is TRANSPOSE there too, + // as on every screen. + if (s == s_menu && p.kind == in_key && + (p.id == ENAGA_KEY_OCTAVE_LEFT || p.id == ENAGA_KEY_OCTAVE_RIGHT || p.id == ENAGA_KEY_STEP1 + 1)) { return "menu: no job"; } @@ -14695,12 +14743,39 @@ TEST(ui_the_track_menu_type_row_picks_the_gen_type_of_the_track) { // JAM REC (app/storage.hpp, "jam recording"): the FUNC menu's second row, one DOWN from SAVE. OK // starts the jam and closes the menu, the row then counts the time, a dot in the top bar blinks // on every screen, and OK again stops it; SAVED comes once the file is closed. +// The second review (2026-11-30), proposal 8: the FUNC menu in two parts, DO (actions, SAVE then +// GEN ALL) and SET (settings); the screen keys jump between them and the bottom lines say which. +TEST(ui_func_menu_has_do_and_set_parts_and_the_screen_keys_jump_between_them) { + Strata &app = fresh(); + shift_key(ENAGA_KEY_F4); + CHECK_EQ(UiProbe::menu_cursor(app), int(kMenuSave)); + pump(); + CHECK(screen_has(app, "DO OK: RUN")); + key(ENAGA_KEY_DOWN); + CHECK_EQ(UiProbe::menu_cursor(app), int(kMenuGenAll)); // FUNC + HOME, DOWN, OK: GEN ALL + key(ENAGA_KEY_SELECT_RIGHT); + CHECK_EQ(UiProbe::menu_cursor(app), int(kMenuClick)); + CHECK_EQ(UiProbe::notice(app), "SET"); + pump(); + CHECK(screen_has(app, "SET LEFT/RIGHT: CHANGE")); + check_layout(app, "FUNC menu, SET"); + key(ENAGA_KEY_UP); + CHECK_EQ(UiProbe::menu_cursor(app), int(kMenuDemo)); // the last of DO, above SET + key(ENAGA_KEY_SELECT_LEFT); + CHECK_EQ(UiProbe::menu_cursor(app), int(kMenuSave)); + CHECK_EQ(UiProbe::notice(app), "DO"); + key(ENAGA_KEY_UP); + CHECK_EQ(UiProbe::menu_cursor(app), int(kMenuTempoGuard)); // round, to the last of SET + key(ENAGA_KEY_CLR); +} + TEST(ui_jam_rec_starts_and_stops_from_the_menu_and_shows_it_is_running) { Strata &app = fresh(); FakeHost &host = FakeHost::the(); key(ENAGA_KEY_F8); // EDIT shift_key(ENAGA_KEY_F4); - key(ENAGA_KEY_DOWN); // the second row + key(ENAGA_KEY_DOWN); // the third row, under GEN ALL + key(ENAGA_KEY_DOWN); CHECK_EQ(UiProbe::menu_cursor(app), int(kMenuJam)); CHECK(screen_has(app, "JAM REC")); CHECK(screen_has(app, "OFF")); @@ -14766,7 +14841,8 @@ TEST(ui_arr_rec_records_the_jam_into_the_chain_from_the_menu) { shift_key(ENAGA_KEY_F4); key(ENAGA_KEY_DOWN); - key(ENAGA_KEY_DOWN); // the third row, under JAM REC + key(ENAGA_KEY_DOWN); + key(ENAGA_KEY_DOWN); // the fourth row, under JAM REC CHECK_EQ(UiProbe::menu_cursor(app), int(kMenuArr)); CHECK(screen_has(app, "ARR REC")); key(ENAGA_KEY_OK); @@ -15579,6 +15655,36 @@ const KitZone &zone_in_kit(int z) { return app_engine().project().kit.tracks[0]. } // namespace +// The second review (2026-11-30), proposal 8: the track menu's rows in groups, GEN, EVOLVE, +// PLAY, SAMPLE and CAPTURE; the screen keys jump to the first row of the next or the last. +TEST(ui_track_menu_screen_keys_jump_between_its_groups) { + Strata &app = fresh(); + track_menu_to(kTrackGenerate); + pump(); + CHECK(screen_has(app, "GEN SCREEN KEYS: GROUP")); + key(ENAGA_KEY_SELECT_RIGHT); + CHECK_EQ(UiProbe::track_menu_cursor(app), int(kTrackEvolve)); + CHECK_EQ(UiProbe::notice(app), "EVOLVE"); + key(ENAGA_KEY_SELECT_RIGHT); + CHECK_EQ(UiProbe::track_menu_cursor(app), int(kTrackSpeed)); + key(ENAGA_KEY_SELECT_RIGHT); + CHECK_EQ(UiProbe::track_menu_cursor(app), int(kTrackSample)); + pump(); + CHECK(screen_has(app, "SAMPLE SCREEN KEYS: GROUP")); + check_layout(app, "track menu, SAMPLE group"); + key(ENAGA_KEY_DOWN); // ZONES, inside the group + key(ENAGA_KEY_SELECT_LEFT); // back to the group's start + CHECK_EQ(UiProbe::track_menu_cursor(app), int(kTrackSample)); + key(ENAGA_KEY_SELECT_LEFT); // and on to the one before + CHECK_EQ(UiProbe::track_menu_cursor(app), int(kTrackSpeed)); + key(ENAGA_KEY_SELECT_RIGHT); + key(ENAGA_KEY_SELECT_RIGHT); + key(ENAGA_KEY_SELECT_RIGHT); // CAPTURE, then round to GEN + CHECK_EQ(UiProbe::track_menu_cursor(app), int(kTrackGenerate)); + CHECK(UiProbe::track_menu(app)); + key(ENAGA_KEY_CLR); +} + TEST(ui_zones_says_sample_only_on_another_machine) { Strata &app = fresh(); track_menu_to(kTrackZones); // track 1: the kick @@ -15916,7 +16022,7 @@ TEST(ui_samples_a_collected_track_opens_in_the_projects_own_folder) { key(ENAGA_KEY_F4); } -TEST(ui_projects_push_d_collects_the_open_project) { +TEST(ui_projects_menu_collect_collects_the_open_project) { Strata &app = fresh(); seed_sample_card(); CHECK(app_storage().request_sample_file(0, "/SAMPLES/A_HIT.WAV")); @@ -15924,7 +16030,7 @@ TEST(ui_projects_push_d_collects_the_open_project) { CHECK(pump_until_idle()); CHECK(!collect_track_local(app_engine().project().kit.tracks[0])); to_projects_page(app); - key(ENAGA_KEY_PUSH_D); + project_menu(app, 2); CHECK(std::strcmp(UiProbe::notice(app), "COLLECTING") == 0); for (int i = 0; i < 400 && std::strcmp(UiProbe::notice(app), "SAVED 1 SAMPLE") != 0; i++) { pump(); @@ -15932,7 +16038,7 @@ TEST(ui_projects_push_d_collects_the_open_project) { CHECK(std::strcmp(UiProbe::notice(app), "SAVED 1 SAMPLE") == 0); CHECK(collect_track_local(app_engine().project().kit.tracks[0])); check_layout(app, "PROJECTS after a collect"); - key(ENAGA_KEY_PUSH_D); + project_menu(app, 2); for (int i = 0; i < 400 && std::strcmp(UiProbe::notice(app), "NOTHING TO COLLECT") != 0; i++) { pump(); diff --git a/tools/emulator_screens.py b/tools/emulator_screens.py index 306625ad..3348fe3b 100644 --- a/tools/emulator_screens.py +++ b/tools/emulator_screens.py @@ -150,7 +150,8 @@ def to_first_page(): emu.key(FUNC, True); go(320 * M); shot("help", wait=10 * M) emu.key(FUNC, False); go(30 * M) chord(FUNC, HOME); shot("menu", wait=TOAST) - for _ in range(3): # down from SAVE to CLICK + import menu_rows # noqa: E402 (tools/menu_rows.py: CLICK by name, not a press count) + for _ in range(menu_rows.down(str(ROOT / "app" / "ui_perfmix.hpp"), "MenuItem", "click")): tap(DN) shot("menu_click", wait=60 * M) tap(CLR); go(30 * M)