SAVE LOOP: una sola pregunta, LOOP TO PROJECT 3B (OCT+ conserva, OCT- borra el resto)

El diseño de Juan para guardar un LOOP en un proyecto con música:
- Se va el OVERWRITE PROJECT n? de antes de NAME: ahora NAME abre directo y
  la pregunta llega con el OCT+ de NAME, ya elegido SONG o LOOP.
- SONG: la misma pregunta de siempre, OVERWRITE PROJECT n?
- LOOP: una sola pregunta, LOOP TO PROJECT nB (pie: OTHER KEY CANCELS):
  OCT+ KEEP escribe solo esa parte (las otras partes y el arreglo quedan);
  OCT- CLEAR escribe esa parte y borra el resto y el arreglo (lo de antes,
  que iba siempre a A; ahora a la parte elegida); cualquier otro botón o
  tecla cancela sin escribir y vuelve a NAME.
- Proyecto vacío: sin pregunta, se guarda directo.

CLEAR viaja como bit (SSL_CLEAR) en song_save_loop solo durante ese
guardado: sin RAM nueva. Sin cambios de formato.

Tests: song_save_cases.h (CLEAR en otro proyecto y en el abierto, proyecto
vacío) y song_save_ui_cases.h (KEEP, CLEAR, cancelar con otro botón y con
una tecla, proyecto vacío, SONG sigue preguntando). Manual EN/ES y notas.

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-12-05 11:40:35 +00:00
1 parent 89ba989cb8
commit 52e8d9c909
13 files changed
+190 -112

No files matched your search

+6 -5
View File
@@ -13,12 +13,13 @@ SAVE > PROJECT > PROJECTS picks a destination (KNOB 1) and saves (KNOB 4, OCT+);
(V10.7.20; the SAVE SONG AS page until V10.7.19):
- SONG saves A–D and the complete arrangement, scenes, track sources and variations.
- LOOP saves the currently loaded music into one part (A–D, by default the next free one) and
nothing else: the destination's other parts and its arrangement stay. A part with music asks first.
A LOOP save keeps a draft open as a draft.
- LOOP saves the currently loaded music into one part (A–D, by default the next free one). A
destination with music asks LOOP TO PROJECT nB: OCT+ KEEP writes that part alone (a draft stays
a draft), OCT− CLEAR also clears the other parts and the arrangement (the draft ends there, as a
SONG save), any other button cancels.
The current project is a valid destination. Occupied destinations require an
overwrite confirmation, then naming. Saving requires stopped transport. Saving
The current project is a valid destination. Naming comes first; occupied destinations
then require a confirmation (SONG: overwrite; LOOP: keep or clear the rest). Saving requires stopped transport. Saving
keeps the draft available for more generations; power-off discards an unsaved
draft. SAVE > PROJECTS selects saved destinations without loading them during a
draft; LOAD opens the selected saved project and discards the draft.
+10 -7
View File
@@ -1902,17 +1902,20 @@ proyecto (1–6); elegirlo no lo abre ni cambia la música. Sobre el proyecto el
abierto (V10.7.22: también si la música es un borrador de GEN) se va también la música, como la deja **CLEAR PROJECT**:
no quedan pasos, filas ni secciones. Para borrar la música y conservar la copia guardada: SAVE > TOOLS > CLEAR PROJECT.
**SAVE** pregunta **OVERWRITE PROJECT n?** si el destino ya tiene algo (OCT+ sigue, OCT− cancela) y después abre la
pantalla **NAME**. Ahí **KNOB 3** elige qué se escribe (lo dicen el título y la tarjeta SCOPE, **SAVE SONG TO PROJECT
**SAVE** abre la pantalla **NAME**. Ahí **KNOB 3** elige qué se escribe (lo dicen el título y la tarjeta SCOPE, **SAVE SONG TO PROJECT
n** o **SAVE LOOP TO PROJECT nB**; arranca siempre en SONG):
- **SONG** (izquierda): el **tema entero**: las partes A–D (con los cambios sin guardar de la que suena), el tempo
y los globales, las filas, compases, END, escenas, FROM y VAR, y LOOP / SONG.
y los globales, las filas, compases, END, escenas, FROM y VAR, y LOOP / SONG. Si el destino ya tiene algo, **OCT+**
pregunta **OVERWRITE PROJECT n?** (OCT+ escribe, OCT− vuelve a NAME).
- **LOOP A**, **LOOP B**, **LOOP C**, **LOOP D** (derecha): solo la música de ahora, en **una parte** del destino. El
primer giro cae en su **próxima parte libre**; seguí girando para elegir otra. Se escribe solo esa parte: las otras
partes del destino y su arreglo quedan como estaban. Si esa parte ya tiene música, **OCT+** pregunta **OVERWRITE
PROJECT n B?** (OCT+ la escribe, OCT− vuelve a NAME). Un proyecto lleno arranca en la parte elegida en PART SLOTS
(el proyecto abierto) o en A, y pregunta siempre. Para reemplazar un tema entero por un loop, borralo antes con ERASE.
primer giro cae en su **próxima parte libre**; seguí girando para elegir otra (un proyecto lleno arranca en la parte
elegida en PART SLOTS si es el abierto, si no en A). En un proyecto vacío se guarda directo. Si el destino tiene
algo, **OCT+** hace una sola pregunta, **LOOP TO PROJECT nB**:
- **OCT+ KEEP**: se escribe solo esa parte; las otras partes y el arreglo quedan como estaban.
- **OCT− CLEAR**: se escribe esa parte y se borra el resto (las otras partes y el arreglo), para poner un loop
encima de un proyecto que tenía un tema entero.
- Cualquier otro botón o tecla cancela y no escribe nada (vuelve a NAME).
Escribí un nombre, **OCT+** guarda, OCT− cancela y no escribe nada. Pará antes. Si guardás en otro proyecto, el de
origen queda abierto y sin cambios; la copia se abre con LOAD en PROJECTS.
+10 -7
View File
@@ -1820,17 +1820,20 @@ it: its sections, its rows, its A as the music) and **KNOB 4 SAVE**, each done w
the project that is open (V10.7.22: also when the music is a GEN draft) the music goes too, as **CLEAR PROJECT** leaves
it: no steps, rows or sections left behind. To clear the music but keep the saved copy, use SAVE > TOOLS > CLEAR PROJECT.
**SAVE** asks **OVERWRITE PROJECT n?** when the destination holds something (OCT+ goes on, OCT− cancels), then opens the
**NAME** screen. There **KNOB 3** chooses what is written (the title and the SCOPE card say it, **SAVE SONG TO
**SAVE** opens the **NAME** screen. There **KNOB 3** chooses what is written (the title and the SCOPE card say it, **SAVE SONG TO
PROJECT n** or **SAVE LOOP TO PROJECT nB**; it starts at SONG each time):
- **SONG** (left): the **whole song**: parts A–D (with the unsaved edits of the one playing), the tempo and
globals, the rows, bars, END, scenes, FROM and VAR, and LOOP / SONG.
globals, the rows, bars, END, scenes, FROM and VAR, and LOOP / SONG. If the destination holds something, **OCT+**
asks **OVERWRITE PROJECT n?** (OCT+ writes, OCT− goes back to NAME).
- **LOOP A**, **LOOP B**, **LOOP C**, **LOOP D** (right): only the music now, into **one part** of the destination.
The first turn lands on its **next free part**; turn on to pick another. Only that part is written: the
destination's other parts and its arrangement stay as they were. If that part already has music, **OCT+** asks
**OVERWRITE PROJECT n B?** (OCT+ writes it, OCT− goes back to NAME). A full project starts at the part picked on
PART SLOTS (the open project) or at A, and always asks. To replace a whole song with a loop, ERASE it first.
The first turn lands on its **next free part**; turn on to pick another (a full project starts at the part picked
on PART SLOTS for the open project, else at A). Into an empty project it is saved straight away. If the
destination holds anything, **OCT+** asks one question, **LOOP TO PROJECT nB**:
- **OCT+ KEEP**: only that part is written; the other parts and the arrangement stay as they were.
- **OCT− CLEAR**: that part is written and the rest is cleared (the other parts and the arrangement), to put a
loop over a project that held a whole song.
- Any other button or key cancels and writes nothing (back to NAME).
Type a name, **OCT+** saves, OCT− cancels and writes nothing. Stop first. Saving to another project leaves the one
you copied from open and unchanged; LOAD the copy on PROJECTS.
+6 -5
View File
@@ -4,11 +4,12 @@ Based on the public V10.6c firmware (`d993eae82ff33ead15daf96f2de1d1779f275f8c`)
(V10.7.20: the SAVE SONG AS page is gone; **SAVE > PROJECT > PROJECTS** does its job.)
Open **SAVE > PROJECT > PROJECTS**. KNOB 1 picks the destination project without
opening it. KNOB 4 arms SAVE; OCT+ continues. A used destination asks **OVERWRITE
PROJECT n? / NEXT: K3 SONG OR LOOP**. Confirm with OCT+; on the NAME screen KNOB 3 chooses
SONG (everything below) or LOOP A–D (the music now into one part, by default the next free one; only that part
is written, a part with music asks OVERWRITE PROJECT n B? first; the other parts and the arrangement stay),
type a name, then OCT+ saves. OCT- cancels either screen. Stop playback before saving.
opening it. KNOB 4 arms SAVE; OCT+ opens the NAME screen, where KNOB 3 chooses
SONG (everything below) or LOOP A–D (the music now into one part, by default the next free one).
Type a name, then OCT+ saves. A destination with music asks first: SONG **OVERWRITE PROJECT n?**;
LOOP one question, **LOOP TO PROJECT nB**: OCT+ KEEP (only that part written, the rest and the
arrangement stay), OCT− CLEAR (that part, the other parts and the arrangement cleared), any other
button cancels. OCT- cancels either screen. Stop playback before saving.
The copy includes:
+27 -17
View File
@@ -4,10 +4,10 @@
* buffers: no new audio memory. The source stays open and untouched. Each destination section has the
* storage layer's A/B protection; the four sections and index are NOT one atomic transaction. On an
* interrupted overwrite the source remains available to retry the complete copy. */
/* (loop save) LOOP (song_save_loop 1..4: 1 + the part, NAME's KNOB 3) writes ONE part of the destination and nothing
* else: its other parts, its arrangement (rows, scenes, sources, variations) and the index stay as they were (was: the
* loop always into A, B-D and the rows cleared, other loops lost). Overwriting a part with music is asked first
* (ui_name.c name_ok). */
/* (loop save) LOOP (song_save_loop 1..4: 1 + the part, NAME's KNOB 3) into a destination with music asks LOOP TO PROJECT
* nB (ui_name.c name_ok): OCT+ writes that ONE part and nothing else (its other parts, its arrangement and the index as
* they were: song_loop_save); OCT- (| SSL_CLEAR) the part and the rest cleared, B-D and the arrangement as the LOOP save
* did until now (that always into A; now into the part chosen). An empty destination: no question, that part alone. */
/* Normalize a source section into proj_wire, including current song-wide globals (and the master EQ, TAPE). 0 empty, 1 ready,
* -1 cannot serialize. song_keep holds the unsaved live section for the duration of this operation. */
@@ -15,7 +15,7 @@ BTAPP_FN static int song_copy_section(uint32_t section, uint32_t current, const
{
project_t *p = &proj_scratch;
if (song_save_loop) {
if (section != song_save_loop - 1u) return 0;
if (section != SSL_PART(song_save_loop)) return 0;
if (!proj_import(p, &song_keep, sizeof song_keep)) return -1;
} else if (!proj_import(p, section == current ? &song_keep : &proj_slot[section], sizeof(project_store_t))) {
if (section || !proj_import(p, &song_keep, sizeof song_keep)) return 0;
@@ -27,7 +27,7 @@ BTAPP_FN static int song_copy_section(uint32_t section, uint32_t current, const
if (song_save_loop) chain_defaults(&p->chain); else p->chain = chain_config;
p->chain.rsv[1] = 0; /* saved sections belong to the player, not GEN */
p->chain.rsv[2] = SONG_MODE_TAG | (!song_save_loop && live.mode ? 1u : 0u);
if (section == (song_save_loop ? song_save_loop - 1u : 0u) && name) { /* (a LOOP: its own part's name) */
if (section == (song_save_loop ? SSL_PART(song_save_loop) : 0u) && name) { /* (a LOOP: its own part's name) */
memset(p->name, 0, sizeof p->name);
memcpy(p->name, name, str_len(name) < PROJ_NAME_LEN ? str_len(name) : PROJ_NAME_LEN);
}
@@ -57,12 +57,19 @@ static void song_index_target(const song_index_t *index, uint32_t target)
#if FELUCCA_FLASH
BTAPP_FN static void song_save_tail(song_index_t *index, uint32_t target)
{
index->rows[target] = chain_config; /* (loop save: a SONG only; a LOOP leaves the index alone, song_loop_save) */
memcpy(index->scene[target], song_idx.scene[song_cur], sizeof index->scene[target]);
memcpy(index->tsrc[target], song_idx.tsrc[song_cur], sizeof index->tsrc[target]);
memcpy(index->tvar[target], song_idx.tvar[song_cur], sizeof index->tvar[target]);
if (song_save_loop) { /* (a LOOP clearing the rest; one keeping it: song_loop_save) */
chain_defaults(&index->rows[target]);
memset(index->scene[target], 0, sizeof index->scene[target]);
memset(index->tsrc[target], 0, sizeof index->tsrc[target]);
memset(index->tvar[target], 0, sizeof index->tvar[target]);
} else {
index->rows[target] = chain_config;
memcpy(index->scene[target], song_idx.scene[song_cur], sizeof index->scene[target]);
memcpy(index->tsrc[target], song_idx.tsrc[song_cur], sizeof index->tsrc[target]);
memcpy(index->tvar[target], song_idx.tvar[song_cur], sizeof index->tvar[target]);
}
index->rows[target].rsv[1] = 0;
index->rows[target].rsv[2] = SONG_MODE_TAG | (live.mode ? 1u : 0u);
index->rows[target].rsv[2] = SONG_MODE_TAG | (!song_save_loop && live.mode ? 1u : 0u);
}
#endif
@@ -72,7 +79,7 @@ BTAPP_FN static void song_save_tail(song_index_t *index, uint32_t target)
#if FELUCCA_FLASH
static __attribute__((noinline)) int song_loop_save(uint32_t target, uint32_t current, const char *name)
{
uint32_t sec = song_save_loop - 1u;
uint32_t sec = SSL_PART(song_save_loop);
char b[4];
if (song_copy_section(sec, current, name) <= 0) { proj_err(); return 2; }
proj_wire_gen++; /* the library's picture and editor staging */
@@ -103,22 +110,22 @@ static __attribute__((noinline)) int song_save_as(uint32_t target, const char *n
if (!bt_hw_seg()) { seg_missing(); return 1; }
if (target >= NSONG) { ui_message("CHOOSE ANOTHER PROJECT"); return 1; }
if (!flash_ok) { ui_message("NO FLASH: NOT SAVED"); return 1; }
if (song_save_loop > 4u) { ui_message("CHOOSE A PART"); return 1; }
if (SSL_PART(song_save_loop) + 1u > 4u) { ui_message("CHOOSE A PART"); return 1; }
current = live.cur >= 0 && live.cur < 4 ? (uint32_t)live.cur : proj_cur < 4u ? proj_cur : 0u;
project_capture(&proj_scratch);
if (!proj_pack(&song_keep, &proj_scratch)) {
proj_err();
return 2;
}
if (song_save_loop) return song_loop_save(target, current, name);
if (song_save_loop && !(song_save_loop & SSL_CLEAR)) return song_loop_save(target, current, name);
/* Validate every section and every row's per-track sources BEFORE touching the destination. */
for (section = 0; section < 4u; section++) {
int rc = song_copy_section(section, current, name);
if (rc < 0) { proj_err(); return 2; }
if (rc) mask |= 1u << section;
}
if (!chain_valid(&chain_config)) { ui_message("INVALID ARRANGEMENT"); return 2; }
for (uint32_t row = 0; row < chain_config.count; row++) {
if (!song_save_loop && !chain_valid(&chain_config)) { ui_message("INVALID ARRANGEMENT"); return 2; }
for (uint32_t row = 0; !song_save_loop && row < chain_config.count; row++) {
if (!(mask & (1u << chain_config.row[row].slot))) { ui_message("MISSING PART"); return 2; }
for (uint32_t track = 0; track < NTRK; track++)
if (!(mask & (1u << row_src(row, track, chain_config.row[row].slot)))) {
@@ -162,10 +169,13 @@ static __attribute__((noinline)) int song_save_as(uint32_t target, const char *n
else memset(&proj_slot[section], 0, sizeof proj_slot[section]);
}
chain_config = song_idx.rows[target];
live.mode = !song_save_loop && live.mode;
if (song_save_loop) live.cur = (int8_t)(proj_cur = (uint8_t)SSL_PART(song_save_loop));
live.dirty = 0;
}
song_idx_dirty = 0;
{ char b[4]; fmt_int(b, (int32_t)target + 1); ui_say("SAVED SONG ", b); }
{ char b[4]; fmt_int(b, (int32_t)target + 1); if (song_save_loop) { b[1] = (char)('A' + SSL_PART(song_save_loop)); b[2] = 0; }
ui_say(song_save_loop ? "SAVED LOOP " : "SAVED SONG ", b); }
ui.force = 1;
return 0;
#else
+4 -1
View File
@@ -24,7 +24,10 @@ static int song_save_as(uint32_t target, const char *name);
static int song_draft_begin(void);
static int song_erase_parts(uint32_t target, uint32_t parts);
static void song_poll(void);
static uint8_t song_save_loop; /* SAVE's SCOPE (NAME's KNOB 3): 0 SONG, 1..4 LOOP into part A..D */
static uint8_t song_save_loop; /* SAVE's SCOPE (NAME's KNOB 3): 0 SONG, 1..4 LOOP into part A..D;
* | SSL_CLEAR for the save alone: the destination's rest cleared */
#define SSL_PART(v) (((uint32_t)(v) & 7u) - 1u) /* (a LOOP's part 0..3) */
#define SSL_CLEAR 0x10u
static void song_name(char *b);
static uint8_t song_save_target __attribute__((section(".pool"))); /* destination picker: never opens the project */
static void panel_setup(void);
+13 -10
View File
@@ -1998,15 +1998,15 @@ static void confirm_text(char *a, char *b)
str_cpy(a, "CLEAR TRACK 1?", 24);
a[12] = (char)('1' + k % NTRK);
break;
case CF_OVR_SONG: /* (loop save) | 0x80: a LOOP over part B of 3: "..3 B?" */
str_cpy(a, "OVERWRITE PROJECT ", 24);
case CF_OVR_SONG: /* (loop save) | 0x80: a LOOP into part B of 3: "LOOP TO PROJECT 3B" */
str_cpy(a, k & 0x80u ? "LOOP TO PROJECT " : "OVERWRITE PROJECT ", 24);
fmt_cat(a, (int32_t)(k & 0x7Fu) + 1);
if (k & 0x80u) {
char p[3] = {' ', (char)('A' + (song_save_loop - 1u) % 4u), 0};
str_cat(a, p, 3);
str_cpy(b, "ITS OTHER PARTS STAY", 24);
}
str_cat(a, "?", 2);
char p[2] = {(char)('A' + SSL_PART(song_save_loop) % 4u), 0};
str_cat(a, p, 2);
str_cpy(b, "THE REST: KEEP OR CLEAR", 24);
} else
str_cat(a, "?", 2);
break;
case CF_OVR_PROJ:
str_cpy(a, "OVERWRITE PROJECT A?", 24);
@@ -2194,11 +2194,14 @@ static void draw_confirm(void)
GFX_HOOK_ALIGN(0, 0, 212, 0, AL_H, "dialog detail centred");
cv_text_flags(ink_in(&AF_S, f, 212), 60, &AF_S, f, T_MID, cb, 8u | (f[str_len(f) - 1u] == ELLIPSIS));
}
dlg_button(12, 92, 90, "OCT -", ui.confirm == CF_DICE_ALL ? "CANCEL" : "NO", 0, cb);
dlg_button(110, 92, 90, "OCT +", "YES", 1, cb);
{
int lp = ui.confirm == CF_OVR_SONG && (ui.confirm_trk & 0x80u); /* (loop save) LOOP TO PROJECT nB */
dlg_button(12, 92, 90, "OCT -", lp ? "CLEAR" : ui.confirm == CF_DICE_ALL ? "CANCEL" : "NO", 0, cb);
dlg_button(110, 92, 90, "OCT +", lp ? "KEEP" : "YES", 1, cb);
}
}
cv_blit(14, 66);
dlg_crumb("NOTICE", "CONFIRM");
dlg_crumb("NOTICE", ui.confirm == CF_OVR_SONG && (ui.confirm_trk & 0x80u) ? "OTHER KEY CANCELS" : "CONFIRM");
}
+9 -7
View File
@@ -1834,15 +1834,13 @@ static __attribute__((noinline)) void act_do(void)
} else if (c == 1u && (song_draft || target != song_cur)) (void)song_select(target);
else if (c == 3u) { /* (V10.7.20) SAVE here (the SAVE SONG AS page is gone): this
* project; SONG or LOOP on the NAME screen's KNOB 3 */
char title[13];
ui.act = 0;
song_save_target = (uint8_t)target;
song_save_loop = 0; /* (the whole SONG unless NAME's KNOB 3 says LOOP: a LOOP left
* chosen from the save before would clear B-D unasked) */
if (transport_busy()) ui_message("STOP TO SAVE");
else if (lib_scan(target, title) || ((!song_draft || target != song_cur) && song_idx.rows[target].count))
confirm_open(CF_OVR_SONG, target);
else name_open(NK_SONG_SAVE, target);
else name_open(NK_SONG_SAVE, target); /* (loop save) a destination with music: asked on NAME's OCT+,
* once SONG or LOOP is chosen (name_ok) */
}
else goto slot_action;
return;
@@ -2809,9 +2807,8 @@ static void ui_input_frame(void)
undo_mark(); /* (0.6.21) the music before a clear, INIT, RECALL, pattern */
if (kind == CF_OVR_PROJ) { /* overwrite: the NAME screen writes it */
name_open(NK_PROJ_SAVE, ui.confirm_trk & 3u);
} else if (kind == CF_OVR_SONG) { /* (loop save) | 0x80: NAME's LOOP over a part with music */
if (ui.confirm_trk & 0x80u) name_ok(1);
else name_open(NK_SONG_SAVE, ui.confirm_trk);
} else if (kind == CF_OVR_SONG) { /* (loop save) from NAME: SONG overwrite; LOOP (| 0x80) keep the rest */
name_ok(1);
} else if (kind == CF_OVR_USER) {
name_open(NK_USER_SAVE, ui.confirm_trk);
} else if (kind == CF_ERASE_USER) {
@@ -2924,6 +2921,11 @@ static void ui_input_frame(void)
}
}
}
} else if (ui.confirm == CF_OVR_SONG && (ui.confirm_trk & 0x80u) &&
((oct & 1u) || (pressed & ~(1u << panel.btn[B_OCTDN] | 1u << panel.btn[B_OCTUP])) || notes)) {
ui.confirm = 0; /* (loop save) LOOP TO PROJECT nB: OCT- the rest cleared, any */
ui.force = 1; /* other button or key: cancelled, back to NAME, nothing written */
if (oct & 1u) name_ok(2);
} else if (oct & 1u) {
if (dice_kind(ui.confirm)) /* (0.6.65) CANCEL: the part before the dice */
ui_message(dk_back(ui.confirm, ui.confirm_trk) ? "CAN'T UNDO" :
+18 -10
View File
@@ -228,7 +228,7 @@ static void nm_knob(uint32_t k, int32_t s) /* KNOB 1 the cursor, KNO
}
/* (loop save) KNOB 3 on a song save, the SCOPE: SONG, then LOOP into part A..D of the destination. From SONG: its next
* free part (none free: the open project's part picked, else A; OCT+ then asks before writing over it, name_ok) */
* free part (none free: the open project's part picked, else A; OCT+ then asks, name_ok) */
static uint32_t nm_scope(int32_t s)
{
char t[13]; /* (lib_scan: PROJ_NAME_LEN + 1) */
@@ -245,8 +245,16 @@ static uint32_t nm_scope(int32_t s)
return nm.slot == song_cur && !song_draft && song.g[G_SLOT] >= 1 && song.g[G_SLOT] <= 4 ? (uint32_t)song.g[G_SLOT] : 1u;
}
/* OCT+: the name (spaces at its ends dropped) is written; the screen stays while that is refused (playing). sure: a
* LOOP over a part with music already confirmed (ui_input.c, CF_OVR_SONG | 0x80) */
/* (loop save) a song save's destination holds music (its parts or its rows) */
static int song_dest_used(uint32_t n)
{
char t[13]; /* (lib_scan: PROJ_NAME_LEN + 1) */
return lib_scan(n, t) || ((!song_draft || n != song_cur) && song_idx.rows[n].count);
}
/* OCT+: the name (spaces at its ends dropped) is written; the screen stays while that is refused (playing). A song save
* over music asks first (CF_OVR_SONG; a LOOP: | 0x80, LOOP TO PROJECT nB): sure 1 its OCT+ (SONG: overwrite; LOOP: keep
* the rest), 2 a LOOP's OCT- (the rest cleared, SSL_CLEAR) (ui_input.c) */
static void name_ok(uint32_t sure)
{
char b[NM_MAX + 1u];
@@ -270,14 +278,14 @@ static void name_ok(uint32_t sure)
}
switch (nm.kind) {
case NK_SONG_SAVE:
if (song_save_loop && !sure) { /* (loop save) a LOOP over a part with music: asked first, NAME kept */
char t[13]; /* (lib_scan: PROJ_NAME_LEN + 1) */
if ((lib_scan(nm.slot, t) >> (song_save_loop - 1u)) & 1u) {
confirm_open(CF_OVR_SONG, nm.slot | 0x80u);
return;
}
if (!sure && song_dest_used(nm.slot)) { /* (loop save) over music: asked here, NAME kept (was: before NAME) */
confirm_open(CF_OVR_SONG, nm.slot | (song_save_loop ? 0x80u : 0u));
return;
}
if (song_save_as(nm.slot, b)) return; /* keep the name and destination on a failed save */
if (sure == 2u) song_save_loop |= SSL_CLEAR;
z = (uint32_t)song_save_as(nm.slot, b);
song_save_loop &= 7u; /* (CLEAR: this save's alone) */
if (z) return; /* keep the name and destination on a failed save */
break;
case NK_USER_SAVE:
up_ui_named(2, nm.slot, b);
+1 -1
View File
@@ -76,7 +76,7 @@ int main(void)
{/* (V10.7.20, the owner's use) a LOOP saved over a whole song elsewhere; (loop save) over one part, the rest kept */
for(unsigned n=0;n<4;n++)assert(saved_note(3,n)>=0);assert(song_idx.rows[3].count==4);
int was[4];for(unsigned n=0;n<4;n++)was[n]=saved_note(3,n);
song_save_loop=1;assert(!song_save_as(3,"LOOP OVER")); /* (over A: NAME asked OVERWRITE PROJECT 4 A? first) */
song_save_loop=1;assert(!song_save_as(3,"LOOP OVER")); /* (NAME asked LOOP TO PROJECT 4A: OCT+ KEEP) */
assert(saved_note(3,0)==trk[0].step[0].note[0]);for(unsigned n=1;n<4;n++)assert(saved_note(3,n)==was[n]);
assert(song_idx.rows[3].count==4&&!song_draft&&song_cur==3&&chain_config.count==4&&live.cur==0); /* (the open one now) */
assert(!song_draft_begin());draft_music(72);
+29
View File
@@ -85,6 +85,35 @@ static int loop_save_test(void)
ok &= trk[0].step[0].note[0] == 90;
bad += check("SAVE LOOP over one part of the open project: A B C, the arrangement and SONG mode kept; D the music", ok);
song_fixture(); /* LOOP TO PROJECT 2B, OCT-: B the loop, the rest cleared */
song_save_loop = 0;
ok = !song_save_as(1, "FULL") && lib_scan(1, name) == 15u && song_idx.rows[1].count == 4;
song_save_loop = (1u + 1u) | SSL_CLEAR;
ok &= !song_save_as(1, "CLEARED");
song_save_loop &= 7u;
ok &= ls_note(1, 1) == 90 && ls_note(1, 0) == -1 && ls_note(1, 2) == -1 && ls_note(1, 3) == -1;
ok &= lib_scan(1, name) == 2u && song_idx.rows[1].count == 0 && song_cur == 0 && chain_config.count == 4;
memset(&song_idx, 0, sizeof song_idx);
song_index_load();
ok &= song_idx.rows[1].count == 0 && !song_idx.tsrc[1][0] && !song_idx.scene[1][0].on;
ok &= !song_select(1) && !project_used(0) && project_used(1) && !project_used(2) && !project_used(3) && !chain_config.count;
bad += check("SAVE LOOP, CLEAR THE REST: the chosen part the loop, the other parts and the arrangement cleared", ok);
song_fixture(); /* the open project, CLEAR into C: only C, no rows, LOOP mode */
song_save_loop = (1u + 2u) | SSL_CLEAR;
ok = !song_save_as(0, "ONLY C");
song_save_loop &= 7u;
ok &= ls_note(0, 2) == 90 && ls_note(0, 0) == -1 && ls_note(0, 1) == -1 && ls_note(0, 3) == -1;
ok &= !project_used(0) && project_used(2) && !project_used(3) && !chain_config.count && !live.mode && live.cur == 2;
bad += check("SAVE LOOP, CLEAR THE REST on the open project: its music part C, the rest and the rows gone", ok);
song_fixture(); /* an empty project (no question): that part alone */
song_save_loop = 1u;
ok = lib_scan(4, name) == 0u && !song_idx.rows[4].count && !song_save_as(4, "FIRST");
ok &= ls_note(4, 0) == 90 && lib_scan(4, name) == 1u && !strcmp(name, "FIRST") && !song_idx.rows[4].count;
ok &= song_cur == 0 && chain_config.count == 4 && !memcmp(source_flash, nor + 0x97000u, sizeof source_flash);
bad += check("SAVE LOOP to an empty project: A the loop, nothing else, the source untouched", ok);
song_fixture();
song_save_loop = 1u + 4u; /* no such part */
{
+48 -33
View File
@@ -53,26 +53,40 @@ static int test_song_save_ui(void)
press(B_OCTDN); frame();
ok &= !name_on();
bad += check("NAME for a song save: KNOB 3 switches SONG / LOOP A..D (its title follows), cancel writes nothing", ok);
turn(EN_K4, 1); press(B_OCTUP); frame(); /* (loop save) an empty destination: a LOOP, no question */
turn(EN_K3, 1); frame();
press(B_OCTUP); frame();
ok = song_save_loop == 1u && !ui.confirm && name_on() && strstr(ui.msg, "NO FLASH") != 0;
press(B_OCTDN); frame();
ok &= !name_on();
bad += check("SAVE LOOP to an empty project: no question, saved straight away (here: no flash)", ok);
song_idx.rows[song_save_target].count = 1;
turn(EN_K4, 1); press(B_OCTUP); frame();
ok = ui.confirm == CF_OVR_SONG && !name_on();
turn(EN_K4, 1); press(B_OCTUP); frame(); /* (loop save) music there: NAME first, SONG asks on its OCT+ */
ok = name_on() && !ui.confirm && !song_save_loop;
press(B_OCTUP); frame();
ok &= ui.confirm == CF_OVR_SONG && !(ui.confirm_trk & 0x80u) && name_on();
confirm_text(a, b);
ok &= strstr(a, "OVERWRITE PROJECT") != 0 && !b[0] /* (V10.8.27: the hint gone) */;
press(B_OCTDN); frame();
ok &= !ui.confirm && !name_on();
bad += check("occupied destination asks to overwrite (SONG or LOOP comes on NAME); cancel writes nothing", ok);
turn(EN_K4, 1); press(B_OCTUP); frame();
press(B_OCTUP); frame();
ok = name_on() && nm.kind == NK_SONG_SAVE;
turn(EN_K3, 1); frame();
ok &= song_save_loop; /* (a LOOP over a whole song: the owner's use; what it writes:
* tests/song_draft_test.c, on the flash model) */
press(B_OCTUP); frame();
ok &= name_on() && strstr(ui.msg, "NO FLASH") != 0; /* ui_test has no flash: never a false SAVED */
ok &= !ui.confirm && name_on(); /* NO: back to NAME, nothing written */
press(B_OCTDN); frame();
bad += check("overwrite confirmation leads to naming; failed save keeps the name open", ok);
{ /* (loop save) the open project, A and B with music: LOOP starts at C (the next free part); over B it asks */
ok &= !name_on();
bad += check("SONG over a project with music still asks OVERWRITE PROJECT n? (on NAME's OCT+); NO writes nothing", ok);
turn(EN_K4, 1); press(B_OCTUP); frame();
press(B_OCTUP); frame(); press(B_OCTUP); frame(); /* SONG: OVERWRITE?, YES */
ok = name_on() && !ui.confirm && strstr(ui.msg, "NO FLASH") != 0; /* ui_test has no flash: never a false SAVED */
turn(EN_K3, 1); frame();
ok &= song_save_loop == 1u; /* (what a LOOP writes: song_save_cases.h, song_draft_test.c) */
press(B_OCTUP); frame();
ok &= ui.confirm == CF_OVR_SONG && (ui.confirm_trk & 0x80u); /* LOOP: one question, no OVERWRITE PROJECT n? */
press(B_OCTUP); frame();
ok &= name_on() && !ui.confirm && strstr(ui.msg, "NO FLASH") != 0 && song_save_loop == 1u;
press(B_OCTDN); frame();
bad += check("SONG confirmation saves from NAME; a LOOP asks only LOOP TO PROJECT; failed saves keep the name open", ok);
{ /* (loop save) the open project, A and B with music: LOOP starts at C (the next free part); one question,
* LOOP TO PROJECT 1C: OCT+ KEEP the rest, OCT- CLEAR it, any other button cancels */
project_store_t keep[4];
song_idx.rows[song_save_target].count = 0;
if (name_on()) { press(B_OCTDN); frame(); }
turn(EN_K1, -40); frame();
section_store(0); section_store(1);
@@ -80,41 +94,42 @@ static int test_song_save_ui(void)
memcpy(keep, proj_slot, sizeof keep);
ok = song_save_target == song_cur && project_used(0) && project_used(1) && !project_used(2);
turn(EN_K4, 1); press(B_OCTUP); frame();
ok &= ui.confirm == CF_OVR_SONG && !(ui.confirm_trk & 0x80u); /* (the project has music: asked as before) */
press(B_OCTUP); frame();
ok &= name_on() && !song_save_loop;
ok &= !ui.confirm && name_on() && !song_save_loop; /* (no OVERWRITE PROJECT n? before NAME any more) */
turn(EN_K3, 1); frame();
nm_title(a);
ok &= song_save_loop == 3u && strstr(a, "SAVE LOOP TO PROJECT 1C") != 0;
turn(EN_K3, -1); frame(); /* B: music there */
ok &= song_save_loop == 2u;
press(B_OCTUP); frame();
press(B_OCTUP); frame(); /* C is free, A and B are not: still the one question */
confirm_text(a, b);
ok &= ui.confirm == CF_OVR_SONG && (ui.confirm_trk & 0x80u) && name_on() &&
!strcmp(a, "OVERWRITE PROJECT 1 B?") && !strcmp(b, "ITS OTHER PARTS STAY");
press(B_OCTDN); frame(); /* NO: back to NAME, nothing written */
ok &= !ui.confirm && name_on() && nm.kind == NK_SONG_SAVE && song_save_loop == 2u && !memcmp(keep, proj_slot, sizeof keep);
!strcmp(a, "LOOP TO PROJECT 1C") && !strcmp(b, "THE REST: KEEP OR CLEAR");
ui.msg[0] = 0;
press(B_SEQ); frame(); /* another button: cancelled, back to NAME, nothing written */
ok &= !ui.confirm && name_on() && song_save_loop == 3u && !memcmp(keep, proj_slot, sizeof keep) && strstr(ui.msg, "NO FLASH") == 0;
press(B_OCTUP); frame();
ok &= ui.confirm == CF_OVR_SONG && (ui.confirm_trk & 0x80u);
press(B_OCTUP); frame(); /* YES: written (here: no flash, so refused, NAME kept) */
ok &= !ui.confirm && name_on() && strstr(ui.msg, "NO FLASH") != 0 && !memcmp(keep, proj_slot, sizeof keep);
turn(EN_K3, 1); frame(); /* C: free, no question */
tap_key(0); frame(); /* a key: cancelled too */
ok &= !ui.confirm && name_on() && !memcmp(keep, proj_slot, sizeof keep) && strstr(ui.msg, "NO FLASH") == 0;
press(B_OCTUP); frame();
ok &= song_save_loop == 3u && !ui.confirm && name_on() && strstr(ui.msg, "NO FLASH") != 0;
press(B_OCTDN); frame(); /* OCT-: CLEAR the rest (here: no flash, refused, NAME kept) */
ok &= !ui.confirm && name_on() && strstr(ui.msg, "NO FLASH") != 0 && song_save_loop == 3u && !memcmp(keep, proj_slot, sizeof keep);
ui.msg[0] = 0;
press(B_OCTUP); frame();
press(B_OCTUP); frame(); /* OCT+: KEEP the rest */
ok &= !ui.confirm && name_on() && strstr(ui.msg, "NO FLASH") != 0 && song_save_loop == 3u;
press(B_OCTDN); frame();
bad += check("SAVE LOOP: KNOB 3 starts at the next free part; over a part with music OVERWRITE PROJECT n B?, NO back to NAME", ok);
bad += check("SAVE LOOP: KNOB 3 starts at the next free part; LOOP TO PROJECT 1C: OCT+ keep, OCT- clear, another button cancels", ok);
section_store(2); section_store(3); /* full: the part picked (SAVE > PART SLOTS' KNOB), asked */
song.g[G_SLOT] = 4;
turn(EN_K4, 1); press(B_OCTUP); frame();
press(B_OCTUP); frame();
turn(EN_K3, 1); frame();
ok = name_on() && song_save_loop == 4u;
press(B_OCTUP); frame();
confirm_text(a, b);
ok &= ui.confirm == CF_OVR_SONG && !strcmp(a, "OVERWRITE PROJECT 1 D?");
press(B_OCTDN); frame(); press(B_OCTDN); frame();
ok &= ui.confirm == CF_OVR_SONG && !strcmp(a, "LOOP TO PROJECT 1D");
press(B_SEQ); frame();
ok &= !ui.confirm && name_on();
press(B_OCTDN); frame();
ok &= !ui.confirm && !name_on();
bad += check("SAVE LOOP to a full project: the picked part, never written without OVERWRITE PROJECT n D?", ok);
bad += check("SAVE LOOP to a full project: the picked part, never written without LOOP TO PROJECT 1D", ok);
song.g[G_SLOT] = 1;
for (uint32_t k = 0; k < 4u; k++) memset(&proj_slot[k], 0, sizeof proj_slot[k]);
}
+9 -9
View File
@@ -3,7 +3,7 @@ about_byte 44 text about_byte
accel 188 text
act_col 64 text cur_page
act_cols 150 text cur_page save_on
act_do 1334 text act_col chain_busy confirm_open cur_page ev_busy ev_fix ev_follow ev_id_ok ev_row ev_rows jam_end jam_len jam_sort jam_switch lib_scan lyric_pick motion_base_value motion_find motion_put motion_set_lock name_open project_load project_used row_copy save_level section_jump set_engine song_idx_touch song_select take_busy take_pick trackgen_make transport_busy tsel_p ui_message undo_mark up_ui up_used vel_at_route
act_do 1286 text act_col chain_busy confirm_open cur_page ev_busy ev_fix ev_follow ev_id_ok ev_row ev_rows jam_end jam_len jam_sort jam_switch lyric_pick motion_base_value motion_find motion_put motion_set_lock name_open project_load project_used row_copy save_level section_jump set_engine song_idx_touch song_select take_busy take_pick trackgen_make transport_busy tsel_p ui_message undo_mark up_ui up_used vel_at_route
act_ready 542 text act_col chain_busy cur_page ev_id_ok ev_row ev_rows jam_len motion_count project_used save_level track_clearable trackgen_ok transport_busy tsel_p up_used
add_note_on 88 text * trk_slot
add_render 1180 text * str_exp2n trk_slot
@@ -264,7 +264,7 @@ dly_wow_adv 154 hot_text
draw_act_column 86 text act_col act_ready
draw_column 2994 text card_h card_heat card_line card_y cv_begin cv_blit cv_keycap cv_pset cv_rect cv_rrect cv_text_fit cv_text_in cv_text_on face_has gauge_col heat_on ink_w kc_w large_kind lz_on roll_note roll_text str_cat str_cpy str_eq str_hash str_len text_w tsel_p ux_mix
draw_columns 8768 text act_cols act_ready bt_hw_seg card_mot_of comp_columns cur_page draw_act_column draw_column drum_lane_name drum_note_lane dx_pagen dx_send_ix empty_column enum_rank ev_fix ev_id_ok ev_row ev_rows fit_span fm6_max fmt_frac fmt_int focus_k focus_slot fop_byte fop_bytes fop_field fop_ok gauge_column graph_project_used grid_hit_of home_macros home_param hot_gauge_column hot_text_column hot_unit_column jam_card jam_end jam_len list_get lock_held lock_id lyric_pick macro_cards memset mod_dst_name mod_dst_scope motion_base_value motion_count motion_enabled motion_lock_count motion_lock_get note_len note_name pads_cards page_desc param_format pf_column preset_favorite preset_pos ratio_d save_level sec_col song_end_row split_field split_value st_micro step_accents_of step_lanes_of step_on str_cat str_cpy str_len str_nth sw_ui_cards_bt text_column track_desc trackgen_cards_bt trk_level tsel_p unit_column up_slot_label up_used val_col
draw_confirm 1492 text cv_begin cv_blit cv_pset cv_rect cv_rrect cv_text_flags cv_text_in cv_text_on dice_side dlg_button dlg_card dlg_crumb dlg_tabs fmt_cat graph_project_used ink_in project_name scr_fill str_cat str_cpy str_len text_fit text_w tsel_p up_name up_slot_label
draw_confirm 1548 text cv_begin cv_blit cv_pset cv_rect cv_rrect cv_text_flags cv_text_in cv_text_on dice_side dlg_button dlg_card dlg_crumb dlg_tabs fmt_cat graph_project_used ink_in project_name scr_fill str_cat str_cpy str_len text_fit text_w tsel_p up_name up_slot_label
draw_countin 374 text cv_begin cv_blit cv_key_hint draw_text_box kh_ink lcd_sync scr_fill str_cpy
draw_crumbs 474 text cv_text_fit cv_text_on cv_text_r fmt_frac fmt_int foot_crumbs foot_strip lz_fam lz_on nav_groups str_cat str_len text_w
draw_foot 676 text act_cols act_ready black_held cv_begin cv_blit cv_key_row cv_text_fit draw_crumbs foot_crumbs foot_h foot_hint foot_ph foot_strip foot_y grid_on knob_line lz_hint lz_on memcpy page_title steps_hash str_cpy str_hash tsel_p
@@ -888,7 +888,7 @@ key_place 46 text key_black
keys_mode 38 text ckeys_on grid_on name_on pads_on skeys_on
keys_pg 56 text cur_page
kh_ink 48 text kc_w text_ink
kh_w 36 text kc_w text_w
kh_w 36 text * kc_w text_w
kit_faded 52 text drum_lane_of
knob_cap 36 text ml_knob motion_capture trk_index
knob_line 236 text cur_page home_life home_param lock_held page_desc param_format str_cpy str_len
@@ -1168,7 +1168,7 @@ mulq16 14 text
mx_defaults 56 text memcpy
name_close 28 text
name_of 66 text desc_nm
name_ok 268 text confirm_open lib_scan lyr_set name_close nm_commit project_rename project_save_as song_save_as transport_busy ui_message up_ui_named
name_ok 318 text confirm_open lib_scan lyr_set name_close nm_commit project_rename project_save_as song_save_as transport_busy ui_message up_ui_named
name_on 16 text
name_open 296 text project_cur_name project_name song_name str_cpy str_len tsel_p up_auto_name up_engine up_name user_of
nav_button 170 text nav_ch nav_cur nav_key nav_mem nav_sec nv_ok
@@ -1572,7 +1572,7 @@ snd_sig 122 text param_kept
soft_knee 90 text
softclip 54 text
song_bars 52 text
song_copy_section 324 bt chain_defaults memcpy memset mom_base motion_djf_value proj_import proj_master_put proj_pack proj_sum str_len
song_copy_section 326 bt chain_defaults memcpy memset mom_base motion_djf_value proj_import proj_master_put proj_pack proj_sum str_len
song_draft_begin 214 text bt_hw_seg memset seg_missing song_flush song_index_save transport_busy ui_message
song_end_row 20 text
song_erase_parts 562 text bt_hw_seg memcpy memset seg_missing song_index_target song_remove_parts song_saved_index st_save system_init transport_busy ui_message
@@ -1582,15 +1582,15 @@ song_index_load 224 text chain_defaults chain_valid memset st_load
song_index_save 92 text memcpy st_save
song_index_target 90 text memcpy
song_len_txt 86 text fmt_int str_cat str_len
song_loop_save 254 text fmt_int memcpy proj_err proj_name_get song_copy_section st_save ui_message ui_say
song_loop_save 258 text fmt_int memcpy proj_err proj_name_get song_copy_section st_save ui_message ui_say
song_mode_restore 46 text
song_name 50 text project_name str_cpy
song_pg 32 text
song_poll 1762 text cur_page fm6_adopt gl_step_at jam_add jam_cur jam_len jam_sort jam_switch memcmp memcpy memset proj_import proj_obj proj_pack project_capture project_restore_runtime snd_own song_index_save song_stage sound_put srec_stop st_load st_save str_cpy transport_busy ui_message
song_rec_toggle 274 text gl_step_at jam_end jam_len srec_stop ui_message
song_remove_parts 328 bt memset
song_save_as 688 text bt_hw_seg chain_valid fmt_int memcpy memset proj_err proj_pack project_capture row_src seg_missing song_copy_section song_index_target song_loop_save song_save_tail song_saved_index st_save transport_busy ui_message ui_say
song_save_tail 144 bt memcpy
song_save_as 786 text bt_hw_seg chain_valid fmt_int memcpy memset proj_err proj_pack project_capture row_src seg_missing song_copy_section song_index_target song_loop_save song_save_tail song_saved_index st_save transport_busy ui_message ui_say
song_save_tail 196 bt chain_defaults memcpy memset
song_saved_index 110 text memcpy st_load
song_select 316 text jam_load memcpy memset proj_fetch project_used section_load song_flush song_index_load song_index_save song_mode_restore song_name transport_busy ui_message ui_say
song_stage 1824 text eng_live fit_valid fm6_sanitize fm6_unpack memcpy memset param_desc_of param_fit proj_import proj_steps row_src row_var
@@ -1787,7 +1787,7 @@ uh_task 418 bt uh_connect uh_host_up uh_hub_port_probe uh_hub_status uh_session_
uh_wait 40 bt fm1_wdt_feed
ui_draw_body 1278 text as_mix bt_hw_seg cursor_fix cv_begin cv_blit cv_key_hint cv_keycap cv_text dlg_on dlg_tabs draw_columns draw_confirm draw_countin draw_foot draw_frame draw_graph draw_head draw_layer draw_menu draw_tabs draw_text_box fill_around fmt_int gen_cards_bt kh_ink lcd_sync lz_on name_on nm_card nm_draw_panel nm_len_max nv_page page_entered page_first page_flash_draw page_visible scr_fill seg_screen str_cat str_cpy transport_busy ui_timers
ui_input 554 text beat_samples chain_busy eu_mutate gen_tick str_cat str_cpy str_len str_nth track_desc tsel_p ui_input_frame ui_preview_ok ui_say
ui_input_frame 15530 text accel act_col act_cols act_do act_ready apply_preset apply_preset_to black_held bn_set bt_cal_tick bt_hw_seg bt_prox_input bt_prox_ok btn_hold btn_used chain_busy chain_defaults chain_play_ui chord_peek ckeys_on clay_clear clip_launch comp_any comp_legacy comp_migrate confirm_open cp_copy cp_held cp_say cur_page cursor_fix cursor_set dlg_on drum_elsewhere edit_param enc_drop ent_commit ent_message eu_anchor eu_gen eu_mutate eu_of ev_len excite_turn fm1_input_edges fm4_apply fm6_bank_slot fm6_load_slot fm6_neutral fm6_pack fm6_set_patch fm6_slot_ok fm6_unpack fmt_cat fmt_int fx_macro_back gen_knob_bt gen_on gen_page gen_press go_home grid_acc grid_hit grid_on home_life home_macros home_param home_vis init_sound_of jam_end jam_load kb_map key_black key_place keys_mode knob_cap kx_frame layer_allowed layer_held layer_key layer_let_go layer_open layer_opened layer_set_open layer_tap lib_scan live_rec_sel load_begin load_end lock_held lock_id ly_avail ly_bit ly_down ly_page macro_dice memcpy memset menu_close menu_put menu_scroll_max menu_set menu_step menu_tab ml_poll mom_knob mom_poll motion_base_value motion_capture motion_clear motion_desc motion_lock_get motion_set_lock motion_thin_id mtab_first mtab_rows name_close name_ok name_on name_open nav_button nav_go nav_key nav_mem nav_put nav_sec nav_select nm_black nm_commit nm_do nm_group nm_insert oct_key open_family pads_frame page_desc page_first page_go page_tap panel_btn_of panel_enc panel_setup param_turn part_dice pk_load pk_per pk_shape pke_knob_bt pke_oct pke_sel_bt preset_all_at_in preset_all_pos preset_at preset_go preset_pos preset_step project_recall_slot project_recall_sound rec_clear_auto rec_first rec_set rec_tap rng row_copy rp_apply rp_get sc_beat sc_dice scr_wake sec_of_fam section_ask section_jump section_keep sel_set seq_counting seq_is_empty seq_sel set_engine set_engine_of skeys_on song_draft_begin song_erase_parts song_idx_touch song_select step_accents_of step_lanes_of str_cat str_cpy str_len sy_gen_word system_init take_busy tl_keys tools_key track_defaults_steps track_desc track_select transport_busy trk_base4 trk_engp trk_index trk_slot tsel_p ui_message ui_say undo_mark undo_sound up_load up_ui usb_serial_apply vis_new
ui_input_frame 15606 text accel act_col act_cols act_do act_ready apply_preset apply_preset_to black_held bn_set bt_cal_tick bt_hw_seg bt_prox_input bt_prox_ok btn_hold btn_used chain_busy chain_defaults chain_play_ui chord_peek ckeys_on clay_clear clip_launch comp_any comp_legacy comp_migrate confirm_open cp_copy cp_held cp_say cur_page cursor_fix cursor_set dlg_on drum_elsewhere edit_param enc_drop ent_commit ent_message eu_anchor eu_gen eu_mutate eu_of ev_len excite_turn fm1_input_edges fm4_apply fm6_bank_slot fm6_load_slot fm6_neutral fm6_pack fm6_set_patch fm6_slot_ok fm6_unpack fmt_cat fmt_int fx_macro_back gen_knob_bt gen_on gen_page gen_press go_home grid_acc grid_hit grid_on home_life home_macros home_param home_vis init_sound_of jam_end jam_load kb_map key_black key_place keys_mode knob_cap kx_frame layer_allowed layer_held layer_key layer_let_go layer_open layer_opened layer_set_open layer_tap lib_scan live_rec_sel load_begin load_end lock_held lock_id ly_avail ly_bit ly_down ly_page macro_dice memcpy memset menu_close menu_put menu_scroll_max menu_set menu_step menu_tab ml_poll mom_knob mom_poll motion_base_value motion_capture motion_clear motion_desc motion_lock_get motion_set_lock motion_thin_id mtab_first mtab_rows name_close name_ok name_on name_open nav_button nav_go nav_key nav_mem nav_put nav_sec nav_select nm_black nm_commit nm_do nm_group nm_insert oct_key open_family pads_frame page_desc page_first page_go page_tap panel_btn_of panel_enc panel_setup param_turn part_dice pk_load pk_per pk_shape pke_knob_bt pke_oct pke_sel_bt preset_all_at_in preset_all_pos preset_at preset_go preset_pos preset_step project_recall_slot project_recall_sound rec_clear_auto rec_first rec_set rec_tap rng row_copy rp_apply rp_get sc_beat sc_dice scr_wake sec_of_fam section_ask section_jump section_keep sel_set seq_counting seq_is_empty seq_sel set_engine set_engine_of skeys_on song_draft_begin song_erase_parts song_idx_touch song_select step_accents_of step_lanes_of str_cat str_cpy str_len sy_gen_word system_init take_busy tl_keys tools_key track_defaults_steps track_desc track_select transport_busy trk_base4 trk_engp trk_index trk_slot tsel_p ui_message ui_say undo_mark undo_sound up_load up_ui usb_serial_apply vis_new
ui_leds 3900 text ! act_cols act_ready beat_samples black_held bt_prox_ok chain_busy click_beat_len cur_page dx_lane_muted edit_recallable fm1_led_dim_level glo_sounding grid_on kb_map key_black key_place layer_btn layer_set_open led_put menu_get menu_step midi_note_held name_on nm_black pads_leds pads_on perf_avail perf_key project_used rec_clearable rp_get scale_mask seq_counting seq_src step_accents_of step_lanes_of trk_index tsel_p
ui_message 10 text
ui_preview 72 text tsel_p ui_preview_ok