V10.8.33: the editor's UI push (43, WATCH bit 5; JIANT Studio's live guide, the reduced frame): section (0 HOME .. 9 SAVE, as JIANT BYTE's), the page as the screen shows it (nav_page_name; MENU), the layer shown (0 none, 1 FX .. 8 MACRO); once on asking, then on a change (a hash of the three); its room from FX > PUNCH IN's lane picture (the owner: gone; the lane still GEN's and REC's); EDITOR_PROTOCOL.md; tests/app_contract_test: WATCH 35, the first frame, nothing while nothing changes, a page and a layer change; editor_test's stubs for ui_lens.c (trackgen_ok, name_on, gen_page); layout re-recorded (REPIN=keep: pfx_rec_ok moved)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
Claude committed 2026-11-24 13:19:47 +00:00
1 parent abd8f95886
commit 0f6d4f6dd0
7 files changed
+1593 -1569

No files matched your search

+24 -3
View File
@@ -19,7 +19,7 @@ enum { ED_INFO = 1, ED_GET, ED_SET, ED_DUMP, ED_DESC, ED_STEP_GET, ED_STEP_SET,
ED_TRACK_PARAM, ED_TRACK_CHANGED, ED_SONG,
ED_UI_STATE, ED_UI_SET, ED_UI_PALETTES, ED_FAV_GET, ED_FAV_SET,
ED_LYRIC, /* (JIANT 0.8.5) VOICE's lyric */
ED_TRANSPORT, ED_PUNCH, ED_MUTATE, /* (1.0) pushes: WATCH bits 2..4 */
ED_TRANSPORT, ED_PUNCH, ED_MUTATE, ED_UI, /* (1.0) pushes: WATCH bits 2..5 (UI V10.8.33) */
ED_MOTION = 64, ED_BACKUP_LIST, ED_BACKUP_GET, ED_BACKUP_PUT }; /* v6: song chain */
/* (V10.6z3) the protocol's version, INFO's tag 43 02 major minor: 1.0 the stability contract (web/EDITOR_PROTOCOL.md
* "Stability contract"): from it on only additive changes; a minor for each addition, a major never (a break) */
@@ -116,7 +116,8 @@ static const uint8_t ED_TIDS[3] = {P_LEVEL, P_PAN, P_MUTE};
static struct {
uint8_t on, eng, preset, sel;
uint8_t v4; /* WATCH bit 1: TRACK_CHANGED pushes too */
uint8_t ext; /* (1.0) WATCH bits 2..4: TRANSPORT, PUNCH, MUTATE pushes */
uint8_t ext; /* (1.0) WATCH bits 2..5: TRANSPORT, PUNCH, MUTATE, UI pushes */
uint16_t uih; /* (V10.8.33) UI: the section, layer and page last said (a hash) */
uint8_t tp_play, tp_beat, ptgt; /* .. what they last said */
uint32_t punch;
uint8_t mut[NTRK];
@@ -216,6 +217,25 @@ static __attribute__((noinline)) int ed_perf(uint32_t *n)
ed_send();
(*n)++;
}
if (ed_w.ext & 8u) { /* (V10.8.33) UI (43): section, the page as shown, the layer */
const char *pg = lz_on() && lz_fam() == LZ_MENU ? "MENU" : nav_page_name();
uint32_t sec = nav_sec(), h = sec * 31u + ui.layer;
for (i = 0; pg[i] && i < 16u; i++)
h = h * 33u + (uint8_t)pg[i];
if ((uint16_t)h != ed_w.uih) {
if (!ed_room())
return 0;
ed_w.uih = (uint16_t)h;
ed_begin(ED_UI);
ed_b(sec);
for (i = 0; pg[i] && i < 16u; i++)
ed_b((uint8_t)pg[i] < 32u || (uint8_t)pg[i] > 126u ? 32u : (uint8_t)pg[i]);
ed_b(0);
ed_b(ui.layer);
ed_send();
(*n)++;
}
}
for (i = 0; (ed_w.ext & 4u) && i < NTRK; i++)
if (mut_n[i] != ed_w.mut[i]) {
if (!ed_room())
@@ -742,11 +762,12 @@ static void ed_handle(const uint8_t *f, uint32_t n) /* f: the bytes between F0
keep = ed_w.on && ed_w.resets == usb.resets && (a[0] & 1u); /* already watching: the changes not yet */
ed_w.on = a[0] & 1u; /* pushed stay pending (INFO 53 01 bit 0) */
ed_w.v4 = (uint8_t)(ed_w.on && (a[0] & 2u)); /* v4: also TRACK_CHANGED; the reply says it is known */
i = ed_w.on ? (a[0] >> 2) & 7u : 0u; /* (1.0) bits 2..4: TRANSPORT, PUNCH, MUTATE */
i = ed_w.on ? (a[0] >> 2) & 15u : 0u; /* (1.0) bits 2..5: TRANSPORT, PUNCH, MUTATE, UI */
if (i & ~(keep ? ed_w.ext : 0u)) { /* newly asked for: the state as it is goes out first; MUTATEs
* from now on */
ed_w.tp_play = ed_w.ptgt = 0xFF;
ed_w.punch = ~0u;
ed_w.uih ^= 0x5A5Au; /* (UI: the page as it is goes out) */
memcpy(ed_w.mut, mut_n, sizeof ed_w.mut);
}
ed_w.ext = (uint8_t)i;
+1 -1
View File
@@ -49,7 +49,7 @@
#define FELUCCA_ID "FM-1_900" /* package identity (build.py: the .fwsc marker string) */
#endif
#ifndef FELUCCA_VERSION
#define FELUCCA_VERSION "V10.8.32" /* (2026-11-23) V10.8.21: SEQ > CLAY (the owner): DRONE CLAY, JIANT BYTE's drone and its four modulators (DEST SHAPE EUCLID AMOUNT; DECAY, STEP, SEED) on any track, kept with the project ('C' 'Y'), its pages' picture the modulators' telemetry. V10.7.77: GEN (the owner): DUBSTEP's wobble its rate moving (the wobble bass's LFO RATE automated half a bar each: 1/4 1/8 1/8T 1/16); CUMBIA villera one throw in two (a villera 'teclado': 92 .. 100, minor, the keyboard's lead up front). V10.7.76: DRUM-X MATH a wavetable (the owner: "harsh"): its t whole cycles of the hit's time (one shape evolving), interpolated between its samples; SOUND 3 draws it (four moments, cold to hot); hints trimmed (flash). V10.7.75: DRUM-X MATH (the owner): its RATIO (1/4 .. 16, 24, the inharmonic between) on SOUND 3's KNOB 4, COLOR read MOD AMT; MATH's RESTART the scope (its ramps' picture gone), ten more hints out (flash). V10.7.74: DRUM-X MATH (the owner): a sound's WAVE past BELL a MATH formula F01..F48 as its FM's modulator (COLOR its index; its t the hit's time, a sample in eight), kept with the project ('D' 'F'). V10.7.73: SCL > HARMONY its own tab (KEY CHORD HARMONY SCENE); the defaults once (the owner): LARGE off, CLICK REC, COUNT-IN 1 BAR. V10.7.72: GEN (the owner): MATH WEST STRING more (the archetypes' third options theirs, 25 %; a bass's one time in ten); GLO > GLOBAL the scope, its bars gone. V10.7.71: SCL > HARMONY's picture (the owner): the progression's chords as roman numerals in the key ("-" minor, "o" diminished), each its root's colour, the one playing lit; the obvious knobs' hints out (flash). V10.7.70: FX > PUNCH IN: KNOB 4 M4 (its ERASE PUNCH LANE's only), so OCT+ always the punch-in editor (an ERASE picked took it). V10.7.69: MATH FLOAT MORPH (the owner): ALGO B where CHIP was, MORPH A -> B where BEND was (between the ends B a sample in eight, interpolated: +12.5 % CPU); MATH's formulas (lofi_float, lofi_byte) their 14 divisions by a constant as multiplies (JIANT BYTE 0.16's build pass, tools/build.py const_divs: exact, less CPU a sample); the MACRO layer's dead branches out (flash). V10.7.68: EUCLID MODES > ROLE (MELODY CHORDS BASS ARP, was CHORD) on the harmony the other melodic tracks play, bar by bar (four bars when it changes), else SCL's key; a recorded melody EUCLID takes: its notes as they were; LFO / FX dice leftovers out (flash). V10.7.67: GEN and EUCLID MUTATE fuse two seeds (the owner: never one as it is; the second far from the first), A+B in the name; FX + OCT+ opens the punch-in editor again (as OCT+ on FX > PUNCH IN). V10.7.66: SCL > HARMONY (PROG LENGTH EVOLVE SKIP: every melodic sequence follows a progression); GEN 8 progressions more (neo-soul, jazz, IDM, progressive); EUCLID's melody CONTOUR RANGE MOTIF CHORD; macros FX > PUNCH IN's only (LFO's layer, HOME > ROUTES gone, MACROS in FX), GLO's layer says G4 UNDO; the PUNCH-IN EDITOR redone (the owner): a key WHAT (an effect, or PARAM: M1..M4, CUT PITCH TIMBRE VOLUME PAN DIST CHORUS DELAY REVERB VIBRATO on every track), HOW (an effect HOLD LATCH QUANT; PARAM HOLD RAMP UP RAMP DN SINE STUTTER S&H), AMOUNT (-100..+100 %; an effect its TARGET), TIME (1/16 .. 8 BARS); two slots A B; FX > PUNCH IN its knobs M1..M4 (PUNCH LANE: LEN RES); the layers MAP only (KNOBS STATE gone, ALGORITHM nothing held), the FX cards "M1 CUT"; FX + SELECT the FX pages (its dice gone). GENE while it plays waits for the bar to end (Hollusion); GENE 4: KEY NEW / KEEP (the first melodic track's key and mode kept), ENTRY ALL / BUILD (the new piece in a track a bar, the kit first); the old DIGITAL / NOISE / retired engines' conversions out (flash), the songs 7-8 notice out; voices past V10.6c's budget: tails first, FM6's quarter rate gone. V10.7.65: the PUNCH-IN EDITOR (the owner): OCT+ on FX > PUNCH IN opens it (the FX layer locked open; an ERASE picked on KNOB 4: OCT+ does it), DICE gone; the COMB / COMB- cut-off moved by the LFO and the ENV as the other filters; a key held and KNOB 1..4 its EFFECT (any, MOD a macro moved) TARGET (ALL SYN DRM T1..T6; MOD M1..M4) AMOUNT (MOD 1 BEAT .. 4 BARS) MODE (HOLD LATCH QUANT; MOD RAMP UP / DOWN SINE S&H), the mode said in the header; SELECT a slot (four, in the settings), OCT+ saves and plays it, OCT- leaves. V10.7.64: SCENE's LEADER PRESS (a key's note on every live track at once, each its own sound); SCENE on the live tracks only (it opened on T6, asleep with four: nothing heard, nothing drawn), every role with the key: a kit's DRUM loops its beat while a key is held, stopped too; the engines as the kit (the owner): FILTER TYPE CUT RES IMAGE (DIST the SENDS' only), PLAY POLY GLIDE UNISON VEL (the plain MORE gone, GL MODE off the panel), GAIN 0..+12 dB clean where a DRIVE was (ANALOG's MORE, WHEEL's COLOR; their DRIVE off the panel, kept), saved ('T' 'G'); FUGA's subject and answer on live tracks (the continuo after: with four tracks it began unheard); DUBSTEP's bass the wobble (a resonant low-pass on aLine truncated
#define FELUCCA_VERSION "V10.8.33" /* (2026-11-23) V10.8.21: SEQ > CLAY (the owner): DRONE CLAY, JIANT BYTE's drone and its four modulators (DEST SHAPE EUCLID AMOUNT; DECAY, STEP, SEED) on any track, kept with the project ('C' 'Y'), its pages' picture the modulators' telemetry. V10.7.77: GEN (the owner): DUBSTEP's wobble its rate moving (the wobble bass's LFO RATE automated half a bar each: 1/4 1/8 1/8T 1/16); CUMBIA villera one throw in two (a villera 'teclado': 92 .. 100, minor, the keyboard's lead up front). V10.7.76: DRUM-X MATH a wavetable (the owner: "harsh"): its t whole cycles of the hit's time (one shape evolving), interpolated between its samples; SOUND 3 draws it (four moments, cold to hot); hints trimmed (flash). V10.7.75: DRUM-X MATH (the owner): its RATIO (1/4 .. 16, 24, the inharmonic between) on SOUND 3's KNOB 4, COLOR read MOD AMT; MATH's RESTART the scope (its ramps' picture gone), ten more hints out (flash). V10.7.74: DRUM-X MATH (the owner): a sound's WAVE past BELL a MATH formula F01..F48 as its FM's modulator (COLOR its index; its t the hit's time, a sample in eight), kept with the project ('D' 'F'). V10.7.73: SCL > HARMONY its own tab (KEY CHORD HARMONY SCENE); the defaults once (the owner): LARGE off, CLICK REC, COUNT-IN 1 BAR. V10.7.72: GEN (the owner): MATH WEST STRING more (the archetypes' third options theirs, 25 %; a bass's one time in ten); GLO > GLOBAL the scope, its bars gone. V10.7.71: SCL > HARMONY's picture (the owner): the progression's chords as roman numerals in the key ("-" minor, "o" diminished), each its root's colour, the one playing lit; the obvious knobs' hints out (flash). V10.7.70: FX > PUNCH IN: KNOB 4 M4 (its ERASE PUNCH LANE's only), so OCT+ always the punch-in editor (an ERASE picked took it). V10.7.69: MATH FLOAT MORPH (the owner): ALGO B where CHIP was, MORPH A -> B where BEND was (between the ends B a sample in eight, interpolated: +12.5 % CPU); MATH's formulas (lofi_float, lofi_byte) their 14 divisions by a constant as multiplies (JIANT BYTE 0.16's build pass, tools/build.py const_divs: exact, less CPU a sample); the MACRO layer's dead branches out (flash). V10.7.68: EUCLID MODES > ROLE (MELODY CHORDS BASS ARP, was CHORD) on the harmony the other melodic tracks play, bar by bar (four bars when it changes), else SCL's key; a recorded melody EUCLID takes: its notes as they were; LFO / FX dice leftovers out (flash). V10.7.67: GEN and EUCLID MUTATE fuse two seeds (the owner: never one as it is; the second far from the first), A+B in the name; FX + OCT+ opens the punch-in editor again (as OCT+ on FX > PUNCH IN). V10.7.66: SCL > HARMONY (PROG LENGTH EVOLVE SKIP: every melodic sequence follows a progression); GEN 8 progressions more (neo-soul, jazz, IDM, progressive); EUCLID's melody CONTOUR RANGE MOTIF CHORD; macros FX > PUNCH IN's only (LFO's layer, HOME > ROUTES gone, MACROS in FX), GLO's layer says G4 UNDO; the PUNCH-IN EDITOR redone (the owner): a key WHAT (an effect, or PARAM: M1..M4, CUT PITCH TIMBRE VOLUME PAN DIST CHORUS DELAY REVERB VIBRATO on every track), HOW (an effect HOLD LATCH QUANT; PARAM HOLD RAMP UP RAMP DN SINE STUTTER S&H), AMOUNT (-100..+100 %; an effect its TARGET), TIME (1/16 .. 8 BARS); two slots A B; FX > PUNCH IN its knobs M1..M4 (PUNCH LANE: LEN RES); the layers MAP only (KNOBS STATE gone, ALGORITHM nothing held), the FX cards "M1 CUT"; FX + SELECT the FX pages (its dice gone). GENE while it plays waits for the bar to end (Hollusion); GENE 4: KEY NEW / KEEP (the first melodic track's key and mode kept), ENTRY ALL / BUILD (the new piece in a track a bar, the kit first); the old DIGITAL / NOISE / retired engines' conversions out (flash), the songs 7-8 notice out; voices past V10.6c's budget: tails first, FM6's quarter rate gone. V10.7.65: the PUNCH-IN EDITOR (the owner): OCT+ on FX > PUNCH IN opens it (the FX layer locked open; an ERASE picked on KNOB 4: OCT+ does it), DICE gone; the COMB / COMB- cut-off moved by the LFO and the ENV as the other filters; a key held and KNOB 1..4 its EFFECT (any, MOD a macro moved) TARGET (ALL SYN DRM T1..T6; MOD M1..M4) AMOUNT (MOD 1 BEAT .. 4 BARS) MODE (HOLD LATCH QUANT; MOD RAMP UP / DOWN SINE S&H), the mode said in the header; SELECT a slot (four, in the settings), OCT+ saves and plays it, OCT- leaves. V10.7.64: SCENE's LEADER PRESS (a key's note on every live track at once, each its own sound); SCENE on the live tracks only (it opened on T6, asleep with four: nothing heard, nothing drawn), every role with the key: a kit's DRUM loops its beat while a key is held, stopped too; the engines as the kit (the owner): FILTER TYPE CUT RES IMAGE (DIST the SENDS' only), PLAY POLY GLIDE UNISON VEL (the plain MORE gone, GL MODE off the panel), GAIN 0..+12 dB clean where a DRIVE was (ANALOG's MORE, WHEEL's COLOR; their DRIVE off the panel, kept), saved ('T' 'G'); FUGA's subject and answer on live tracks (the continuo after: with four tracks it began unheard); DUBSTEP's bass the wobble (a resonant low-pass on aLine truncated
#endif
#if FELUCCA_OTA && !FELUCCA_FLASH
#error "FELUCCA_OTA needs FELUCCA_FLASH"
+1 -44
View File
@@ -224,49 +224,6 @@ static void fxg_master(int32_t x, int32_t y, int32_t w, int32_t h)
cv_rect(x, cy + ch - duck_g1 * ch / 32767, w, 1, T_TEXT);
}
}
static void fxg_punch(int32_t x, int32_t y, int32_t w, int32_t h)
{
static const uint8_t RES[3] = {8, 16, 32};
int32_t steps = song.g[G_PFXLEN] * RES[clamp(song.g[G_PFXRES], 0, 2)] / 8, i, cw;
char b[32];
if (steps > 64) steps = 64;
if (steps < 1) steps = 1;
if (w > 120) { /* (V10.43) the page: 16 a row, the empty steps as boxes, an open one
* its punch's colour, the playhead framed (a lane never shown
* empty before: an empty lane drew nothing) */
int32_t ch = (h - 22) / 4, cw2 = w / 16;
for (i = 0; i < steps; i++) {
uint32_t v = pfx_lane_at((uint32_t)i);
int32_t cx = x + i % 16 * cw2, cy = y + 20 + i / 16 * ch;
cv_rect(cx, cy, cw2 - 2, ch - 3, v ? FXG_H(48 + v * 13) : (i & 3) ? T_RAISE : T_LINE);
if (song.playing && (uint32_t)i == pfx_lane_pos())
cv_frame(cx - 1, cy - 1, cw2, ch - 1, T_TEXT);
}
} else {
cw = w / steps;
if (cw < 1) cw = 1;
for (i = 0; i < steps && i * cw < w; i++) {
int on = pfx_lane_at((uint32_t)i) != 0u, at = song.playing && (uint32_t)i == pfx_lane_pos(); /* (the playhead) */
if (on || at) /* (0.8.9, the skins' mock-up: the open steps as lines, an empty one a
* tick at the foot) */
cv_rect(x + i * cw, y + (w > 120 ? 20 : 14), cw > 2 ? cw - 1 : 1, h - (w > 120 ? 26 : 20), at ? T_TEXT : FXG_H(179));
else
cv_rect(x + i * cw, y + h - 7, cw > 2 ? cw - 1 : 1, 1, T_LINE);
}
}
str_cpy(b, "LANE ", sizeof b);
fmt_int(b + 5, song.g[G_PFXLEN]);
str_cpy(b + str_len(b), " ST", 4);
if (w > 120) {
str_cpy(b + str_len(b), " \xB7 ", 4);
str_cpy(b + str_len(b), N_PFXRES[clamp(song.g[G_PFXRES], 0, 2)], 6);
if (pfx_rec_ok()) str_cpy(b + str_len(b), " \xB7 REC", 7);
}
if (w > 120) /* (snd2: the page's letters large, AF_M; the tile's as before) */
cv_text(x, y, &AF_M, b, T_MID);
else
fxg_label(x, y, b, T_MID, 0);
}
static void fxg_slpitch(int32_t x, int32_t y, int32_t w, int32_t h)
{
int32_t i, cw = w / 16, mid = y + 10 + (h - 10) / 2, len = clamp(song.g[G_SLPLEN], 1, 16);
@@ -357,7 +314,7 @@ static void fxg_mod(uint32_t m, int32_t x, int32_t y, int32_t w, int32_t h)
case 1: fxg_reverb(x, y, w, h); break;
case 2: fxg_chorus(x, y, w, h); break;
case 3: if (cur_page()->graph == GR_SLPIT && w > 120) fxg_slpitch(x, y, w, h); else fxg_slicer(x, y, w, h); break;
case 4: fxg_punch(x, y, w, h); break;
case 4: break; /* (V10.8.33: PUNCH IN's lane picture gone, the owner: its room) */
default:
if (w > 120 && cur_page()->id[0] == ID_EQ0 && bt_hw_seg()) tech_eq(x, y, w, h); /* (V10.44) EQ: its curve */
else fxg_master(x, y, w, h);
+29
View File
@@ -489,6 +489,34 @@ static void pushes_10(void)
}
/* ------------------------------------------------------------------ NRPN (midi_control.c, seq.c) */
/* (V10.8.33) UI (43), WATCH bit 5: section, the page as shown (0-terminated), the layer; once on asking, then on a change */
static void push_ui(void)
{
const uint8_t *r;
uint32_t n;
reset();
ui.home = 1; ui.layer = 0; ui.menu = 0;
APP(C_WATCH, 3 | 32);
r = frame(C_WATCH, &n);
ok("WATCH 35 -> 35 (bit 5: UI)", r && r[0] == 35);
pump();
r = frame(43, &n);
ok("UI (43) once on asking: section 0 HOME, a page name, layer 0",
r && frames(43) == 1u && r[0] == 0 && n >= 3u && r[1] >= 32u && r[n - 2u] == 0 && r[n - 1u] == 0);
pump();
ok("UI: nothing more while nothing changes", frames(43) == 0u);
ui.home = 0; ui.page = (uint8_t)page_first(FAM_FX);
pump();
r = frame(43, &n);
ok("UI: a new page -> one frame, section 3 FX", r && frames(43) == 1u && r[0] == 3);
ui.layer = LAYER_GLO;
pump();
r = frame(43, &n);
ok("UI: a layer held -> its index (2 GLO) last", r && r[n - 1u] == 2);
APP(C_WATCH, 0);
ui.layer = 0; ui.home = 1;
}
static void cc_in(uint32_t ch, uint32_t cc, uint32_t v)
{
midi_in_event(0x0Bu | (0xB0u | ch) << 8 | cc << 16 | v << 24);
@@ -786,6 +814,7 @@ int main(int argc, char **argv)
backup();
pushes();
pushes_10();
push_ui();
nrpn();
nrpn_doc();
ok("docs/NRPN.md is the table params.c gives (else: app-contract --write-nrpn)", file_is("docs/NRPN.md"));
+5
View File
@@ -70,6 +70,11 @@ static int st_prog(uint32_t off, const void *p, uint32_t n) { (void)off; (void)p
static int st_erase(uint32_t off) { (void)off; return -1; }
#include "../firmware/src/storage.c"
#include "../firmware/src/editor.c"
/* (V10.8.33) the UI push (43) names the page through ui_lens.c, which asks these (gen_track.c, ui_name.c, gen.c: not
* in this harness): the plain answers */
static int trackgen_ok(const track_t *t) { (void)t; return 0; }
static int name_on(void) { return 0; }
static uint32_t gen_page(void) { return 0; }
/* (V10.40) editor.c calls ui_input.c's excite_turn (a WAVE / EXCITE whose knobs change meaning); ui_input.c is not
* part of this test: the knob's value is what the protocol tests check, not the panel's follow-up */
#ifndef EDITOR_TEST_NO_MAIN /* (V10.7.2: the files built on this one stub it themselves) */
+1517 -1520
View File
File diff suppressed because it is too large. Load diff
+16 -1
View File
@@ -186,6 +186,20 @@ sends the state as it is first (`TRANSPORT`, `PUNCH`; `MUTATE` counts from then
- **MUTATE** (42): `track, count`: a EUCLID MUTATE of that track (EVERY's, or OCT+ on the MUTATE page); count is
the track's MUTATEs since power-on, 7 bits, so a missed frame shows as a jump.
### UI push (43, V10.8.33)
Asked for with `WATCH` bit 5 (JIANT Studio sends `WATCH 63`; the reply says the bits taken). Sent once at once when
the bit is asked for, then whenever the section, the page or the held layer changes (at most one per main-loop pass,
the latest state). Payload (the reduced form; JIANT BYTE's 1.4 frame adds `button` and four knob labels after it, a
client reads them only if present):
- **section** (1 byte): 0 HOME, 1 EDIT, 2 SEQ, 3 FX, 4 GLO, 5 ENV, 6 LFO, 7 SCL, 8 ARP, 9 SAVE (JIANT FM has no other
sections; the menu is sent as the page `MENU`).
- **page** (string, 0-terminated): the page's name as the screen shows it (`FILTER`, `STEP FX`, `ARRANGE`,
`DRONE CLAY`...), ASCII 32..126 (other characters as a space), 16 characters at most.
- **layer** (1 byte): the layer whose map is shown: 0 none, 1 FX, 2 GLO, 3 SCL, 4 EDIT, 5 SEQ, 6 REC, 7 SAVE,
8 MACRO (LFO).
## 1.1: the velocity diagnostic (81)
`VEL` turns the key sensing of the velocity diagnostic on and off and reads what it measured
@@ -368,7 +382,7 @@ at 1..3 and hides 6 5 8: what it sets still plays the right kit, and the device
| 19 UP_STORE | slot, name | slot, rc. Stores the current sound: engine, parameters, the first 16 sequencer steps as the pattern (TIE steps → flag 4) |
| 20 UP_LOAD | slot | slot, rc (0 ok, 1 empty/invalid). Applies its sound (not its pattern; the steps stay) |
| 21 UP_ERASE | slot | slot, rc |
| 22 WATCH | on (0/1; v4: 3 = also `TRACK_CHANGED`; 1.0: bit 2 `TRANSPORT`, bit 3 `PUNCH`, bit 4 `MUTATE`) | the bits it took: on (bit 0), bit 1 (v4 firmware), bits 2..4 (1.0 firmware; older answers 3 or 1). While on, the device pushes cmds 23, 24, 26 (and 32 with bit 1, 40 / 41 / 42 with bits 2 / 3 / 4) |
| 22 WATCH | on (0/1; v4: 3 = also `TRACK_CHANGED`; 1.0: bit 2 `TRANSPORT`, bit 3 `PUNCH`, bit 4 `MUTATE`; V10.8.33: bit 5 `UI`) | the bits it took: on (bit 0), bit 1 (v4 firmware), bits 2..4 (1.0 firmware; older answers 3 or 1), bit 5 (V10.8.33 on). While on, the device pushes cmds 23, 24, 26 (and 32 with bit 1, 40 / 41 / 42 / 43 with bits 2 / 3 / 4 / 5) |
| 23 CHANGED (push) | — | scope, id, v14 |
| 24 RELOAD (push) | — | engine, preset, then (v3) the selected track |
| 25 PING | — | 0 |
@@ -391,6 +405,7 @@ at 1..3 and hides 6 5 8: what it sets still plays the right kit, and the device
| 40 TRANSPORT (push) | — | playing (0/1), beat of the bar (0..3), bar lo, bar hi (the bars since PLAY, 14 bits): on PLAY / STOP and each beat while playing (only while `WATCH` was sent with bit 2) |
| 41 PUNCH (push) | — | the effects running, 4 × 7 bits LSB first (the bit numbers in "1.0: performance pushes"), then their tracks (0 ALL, 1 SYN, 2 DRM): on every change (only with `WATCH` bit 3) |
| 42 MUTATE (push) | — | track, its MUTATE count (7 bits, wrapping): a EUCLID MUTATE of that track (only with `WATCH` bit 4) |
| 43 UI (push) | — | section, page (string, 0-terminated), layer: what the screen shows (only with `WATCH` bit 5; V10.8.33, "UI push" below) |
| cmd (v7) | Request args | Reply args |
| --- | --- | --- |