mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-05 12:24:42 +01:00
V10.8.56: HOME > VISUAL (random figures of the creatures' pieces) and MENU > SAVER
(the owner: "un motor de visuales adentro del sintetizador: visuales random en HOME"; "las dos") - HOME > VISUAL, BEING's second page (in ROUTES' place, gone since V10.7.66; its dead drawing code removed): a figure from a seed (ui_lzhome.c vis_fig, Bluetooth segment) of the creatures' pieces: wobbling rings (vx_wf), roses of k petals, waving tentacles, small orbiting rings; it turns with the time, faster, larger and warmer with the output's level. KNOB 1 COMPLEX (3..12 pieces), 2 WOBBLE (the circles' deformation), 3 PALETTE (HEAT THEME MONO COLD), 4 REACT (how much it follows the sound) (params.c VIS_DESC, as LIFE's knobs; not saved); OCT+ a new figure, "VISUAL #n"; the footer says "OCT+ NEW FIGURE" (1.5 s on entering, and while OCT+ is held). - MENU > DISPLAY > SAVER (OFF 1 3 5 10 MIN, 3 the default; editor id 33): after that long with no panel input the figure, a new one, the whole screen (two 120-row strips), moving with the music; before SCREEN OFF's dark if that comes later; not in the menu. The first press, key or turn only brings the page back (swallowed as SCREEN OFF's wake: scrn's SCR_VIS, kb_asleep). Stored in bits 4-6 of engine 15's byte 12 (the old hint counts', 0 there: 3 MIN). - tests: ui_test (HOME's eleven pages; VISUAL's knob, seed, banner and motion; SAVER's row, default, the whole-screen figure and its swallowed wake; MENU's 36 rows, DISPLAY's nine). Layout recorded again (FELUCCA_REPIN=keep); the plain build passes. Image 583632 of 584336 (704 B free), BT segment 72564 of 73728 (1164 B free), RAM code unchanged (32700), pool spare 8448. audio.c as V23's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
11 files changed
+1745
-1600
No files matched your search
@@ -31,7 +31,8 @@ static const uint8_t ED_MENU[][2] = {
|
||||
* the device's own gesture, is not offered) */
|
||||
{MI_OCTBEND, 26}, /* (V10.6z4) OCT BEND OFF / 1 .. 12 ST, a row of AUDIO */
|
||||
{MI_VEL, 27}, {MI_VELMIN, 28}, {MI_AT, 29}, {MI_VLEARN, 30},
|
||||
{MI_HELP, 31}, {MI_PRSCR, 32}, /* (V10.7.81) PRESETS SCROLL / MENU, DISPLAY */ /* (V10.7.60) HELP OFF / ON, a row of DISPLAY */ /* (V10.6z6) VELOCITY, VEL MIN, AFTERTOUCH, VEL LEARN,
|
||||
{MI_HELP, 31}, {MI_PRSCR, 32},
|
||||
{MI_SAVER, 33}, /* (V10.8.56) SAVER OFF / 1 / 3 / 5 / 10 MIN, DISPLAY */ /* (V10.7.81) PRESETS SCROLL / MENU, DISPLAY */ /* (V10.7.60) HELP OFF / ON, a row of DISPLAY */ /* (V10.6z6) VELOCITY, VEL MIN, AFTERTOUCH, VEL LEARN,
|
||||
* rows of CONTROL (vel.c) */
|
||||
};
|
||||
#define ED_MENU_N NELEM(ED_MENU)
|
||||
|
||||
@@ -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.55" /* (2026-11-26) V10.8.55 (the owner: "the snail and the caterpillar can be better: a misreading of the original, not the engine"; "a bit more deformity in the circles, cheap, a modifier of the animations' engine"; "DRUM-X too"): the creatures' circles wobble (vx_wf: two lobes turning, more with the sound); their colours as their originals' (ANALOG's isotherms, DRIVE's spikes and NOISE's cilia; WHEEL's tubes warmed by DRIVE; STRING's silk by BRIGHT; MATH BYTE's segments lit by the byte its voice holds); in silence an idle wave (the snail's sole, the caterpillar's colours on HOME > BEING); DRUM-X's kit a table of beings (one call); PHASE's snail and MATH's caterpillar drawn through vx_gx as their originals were (head and eyestalks at the left, the shell on its back, the wave its sole; the caterpillar crawling in a wave, segments thinning to the tail, its skins the sound, the head at the right); V10.8.54 (the owner: "pasá todas esas", Studio's projects, RESOUND): ANALOG WHEEL PHASE MATH STRING's creatures through one routine (vx_gx; WHEEL's worms waving with their crowns, ANALOG's spikes cilia and oscillators); editor PROJ_LIST 95 / PROJ_NAME 96 / PROJ_OP 97 (Studio's library: rename a part or a project live, copy move delete a project); GLO + A4 RESOUND (new sounds for the whole song, its notes kept; GLO + G4 back); RESTART, a DRUM sound's mute, LANE, REC GRID, PROJECT n, MIXER's KNOB 4 and "A > B NEXT BAR" said; a lens page's OCT+ gestures in its footer (1.5 s, and while OCT+ is held); V10.8.53 (the owner: "every picture from the same engine, so their room shrinks"): the pictures' shared engine (ui_gx.c: cells, a sine, chips, keys); DELAY REVERB CHORUS SENDS drawn with it, DIST's and CLIP's curve one; the big numbers in M (the V face gone), the count-in on one line, the EQ's curve, the TOOLS picture and the small beings of the lists gone; SEQ EDIT (SEQ held): KNOB 1 / 2 the selection, 3 the ACTION (STRETCH .. MUTATE, GENERATE in the selection with KNOB 4 its genre and a new seed, RANDOM on its grid 1/4 .. 1/32), 4 its amount, OCT+ does it, F#5 UNDO / REDO; GLO's mutes, UNMUTE ALL, SCL's ROOT and REC's QUANTIZE say what they did; V10.8.52 (the owner: "don't lose songs"): SAVE + C4..F4 / OCT+ over a part with music asks OVERWRITE A? (OCT+ yes, once a part until another project opens), the part it had back with GLO + G4 UNDO (again: the save again); a GEN draft saved with PROJECTS > SAVE is that project from then on (SAVE + C4, the autosave and RESTORE LAST follow it: they stayed on the music before GEN); V10.8.51 (the owner): projects of before V10.7 no longer migrated (OLD PROJECT: OPEN IN STUDIO, the slot untouched; Studio converts them: web_proj_load / web_proj_save); the MOD MATRIX AMOUNT -200 .. +198 % (100 % a full source the whole range, exactly); GEN's pieces under -1 dBFS before the master (a genre's headroom: were up to +13 dBFS); SEQ TOOLS' STRETCH SQUEEZE REPEAT on the steps held (SEL 5-8); PLAY: THE PART; V10.8.50 (the owner: "copy, paste, duplicate; select"): SEQ TOOLS C5 is DUP (the copied steps again right after them, LEN grown), step keys held + EDIT clear those steps, COPY / PASTE / DUP / CLEAR say the steps ("COPY 5-8"); V10.8.49 (the owner: SEQ TOOLS STRETCH x2, SQUEEZE /2, REPEAT x2 back on C4 D4 E4, NUDGE < / > on C#5 D#5; ABOUT's AUDIO LOAD lines and RAMP's curve out for the room); V10.8.48 (the owner: "everything lacks decay and release, all at sustain 100"; "the leads: decay, little sustain, a lot of release"; "the chords all filtered the same: the bands, the whole generator"): GEN's envelopes by role, a part's filter TYPE its own (BP, HP with KEY TRK), the GAIN making up what they take. V10.8.47 (the owner: "play and edit; the information, the names of the section: parts, song, arrange"): PART SLOTS' LOAD is PLAY/EDIT, STORE is SAVE, PLAY's LOOP is PART, a song's END LOOP is REPEAT, a part with no name its bars in the song, NOW is PLAYING, ARRANGE's tokens PART+BARS, JAM's and TAKE's SEQ is PART, CAMBIO is SWITCH. (2026-11-25) V10.8.46 (the owner): GEN: a part never still (its LFO slow and free on the filter and the shape, the stereo, a note's envelope on the shape), the rows' colours an arc, the envelopes by role, the build's high-pass in sixteenths, phonk the drift one alone; MENU > ABOUT's LAST CRASH back; V10.8.45 (the owner): the ARP on its RATE's grid of the transport while it plays, recorded on its steps; MENU > ABOUT's CPU lines and the velocity diagnostic out, the header's load a number; GEN: sections half as long, a row its own colour (the macros) and a section come again varied, DANCE's kit not longer, the build's filter sweep a bar, the envelopes. (2026-11-25) V10.8.44 (the owner): a GATE on the reverb and on the delay (FX > REVERB / DLY, OCT+ held + KNOB 4), a synth's LEVEL page (GAIN LEVEL PAN) after EDIT; V10.8.43 (BYTE's): RADIO: a STOP on the piece's last bar stops (chain.fin: the song's own END alone the next piece); GEN leaves SCLine truncated
|
||||
#define FELUCCA_VERSION "V10.8.56" /* (2026-11-26) V10.8.56 (the owner: "visuales random en HOME", both): HOME > VISUAL, BEING's second page (ROUTES' place), a figure from a seed of the creatures' pieces (OCT+ a new one, "VISUAL #n"; KNOB 1 COMPLEX, 2 WOBBLE, 3 PALETTE, 4 REACT), moving with the sound; MENU > DISPLAY > SAVER (OFF 1 3 5 10 MIN, 3 the default): the figure the whole screen after that long with no panel input, the first touch only brings the page back; V10.8.55 (the owner: "the snail and the caterpillar can be better: a misreading of the original, not the engine"; "a bit more deformity in the circles, cheap, a modifier of the animations' engine"; "DRUM-X too"): the creatures' circles wobble (vx_wf: two lobes turning, more with the sound); their colours as their originals' (ANALOG's isotherms, DRIVE's spikes and NOISE's cilia; WHEEL's tubes warmed by DRIVE; STRING's silk by BRIGHT; MATH BYTE's segments lit by the byte its voice holds); in silence an idle wave (the snail's sole, the caterpillar's colours on HOME > BEING); DRUM-X's kit a table of beings (one call); PHASE's snail and MATH's caterpillar drawn through vx_gx as their originals were (head and eyestalks at the left, the shell on its back, the wave its sole; the caterpillar crawling in a wave, segments thinning to the tail, its skins the sound, the head at the right); V10.8.54 (the owner: "pasá todas esas", Studio's projects, RESOUND): ANALOG WHEEL PHASE MATH STRING's creatures through one routine (vx_gx; WHEEL's worms waving with their crowns, ANALOG's spikes cilia and oscillators); editor PROJ_LIST 95 / PROJ_NAME 96 / PROJ_OP 97 (Studio's library: rename a part or a project live, copy move delete a project); GLO + A4 RESOUND (new sounds for the whole song, its notes kept; GLO + G4 back); RESTART, a DRUM sound's mute, LANE, REC GRID, PROJECT n, MIXER's KNOB 4 and "A > B NEXT BAR" said; a lens page's OCT+ gestures in its footer (1.5 s, and while OCT+ is held); V10.8.53 (the owner: "every picture from the same engine, so their room shrinks"): the pictures' shared engine (ui_gx.c: cells, a sine, chips, keys); DELAY REVERB CHORUS SENDS drawn with it, DIST's and CLIP's curve one; the big numbers in M (the V face gone), the count-in on one line, the EQ's curve, the TOOLS picture and the small beings of the lists gone; SEQ EDIT (SEQ held): KNOB 1 / 2 the selection, 3 the ACTION (STRETCH .. MUTATE, GENERATE in the selection with KNOB 4 its genre and a new seed, RANDOM on its grid 1/4 .. 1/32), 4 its amount, OCT+ does it, F#5 UNDO / REDO; GLO's mutes, UNMUTE ALL, SCL's ROOT and REC's QUANTIZE say what they did; V10.8.52 (the owner: "don't lose songs"): SAVE + C4..F4 / OCT+ over a part with music asks OVERWRITE A? (OCT+ yes, once a part until another project opens), the part it had back with GLO + G4 UNDO (again: the save again); a GEN draft saved with PROJECTS > SAVE is that project from then on (SAVE + C4, the autosave and RESTORE LAST follow it: they stayed on the music before GEN); V10.8.51 (the owner): projects of before V10.7 no longer migrated (OLD PROJECT: OPEN IN STUDIO, the slot untouched; Studio converts them: web_proj_load / web_proj_save); the MOD MATRIX AMOUNT -200 .. +198 % (100 % a full source the whole range, exactly); GEN's pieces under -1 dBFS before the master (a genre's headroom: were up to +13 dBFS); SEQ TOOLS' STRETCH SQUEEZE REPEAT on the steps held (SEL 5-8); PLAY: THE PART; V10.8.50 (the owner: "copy, paste, duplicate; select"): SEQ TOOLS C5 is DUP (the copied steps again right after them, LEN grown), step keys held + EDIT clear those steps, COPY / PASTE / DUP / CLEAR say the steps ("COPY 5-8"); V10.8.49 (the owner: SEQ TOOLS STRETCH x2, SQUEEZE /2, REPEAT x2 back on C4 D4 E4, NUDGE < / > on C#5 D#5; ABOUT's AUDIO LOAD lines and RAMP's curve out for the room); V10.8.48 (the owner: "everything lacks decay and release, all at sustain 100"; "the leads: decay, little sustain, a lot of release"; "the chords all filtered the same: the bands, the whole generator"): GEN's envelopes by role, a part's filter TYPE its own (BP, HP with KEY TRK), the GAIN making up what they take. V10.8.47 (the owner: "play and edit; the information, the names of the section: parts, song, arrange"): PART SLOTS' LOAD is PLAY/EDIT, STORE is SAVE, PLAY's LOOP is PART, a song's END LOOP is REPEAT, a part with no name its bars in the song, NOW is PLAYING, ARRANGE's tokens PART+BARS, JAM's and TAKE's SEQ is PART, CAMBIO is SWITCH. (2026-11-25) V10.8.46 (the owner): GEN: a part never still (its LFO slow and free on the filter and the shape, the stereo, a note's envelope on the shape), the rows' colours an arc, the envelopes by role, the build's high-pass in sixteenths, phonk the drift one alone; MENU > ABOUT's LAST CRASH back; V10.8.45 (the owner): the ARP on its RATE's grid of the transport while it plays, recorded on its steps; MENU > ABOUT's CPU lines and the velocity diagnostic out, the header's load a number; GEN: sections half as long, a row its ownLine truncated
|
||||
#endif
|
||||
#if FELUCCA_OTA && !FELUCCA_FLASH
|
||||
#error "FELUCCA_OTA needs FELUCCA_FLASH"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* controls (HOLD: the layer threshold, KNOB ACCEL, FX LATCH, BPM LOCK; 1.2: SCALE LEDS, the keys), the sound (SPEAKER EQ: FLAT LOWCUT BASS+,
|
||||
* USB LEVEL; 1.1: CLICK, CLICK LEVEL, COUNT-IN), USB SERIAL, RESTORE LAST (1.2), then CALIBRATION (the setup screen: HARDWARE CALIBRATION) and ABOUT, the two rows with no
|
||||
* value (MI_VALUES: the rows before them hold one). 1.0.5: in four tabs (MI_TAB). */
|
||||
enum { MI_COLOR, MI_SCOPE, MI_LARGE, MI_ANIM, MI_LEDS, MI_SCROFF, MI_HELP, MI_PRSCR, MI_HOLD, MI_ACCEL, MI_LATCH, MI_BPMLOCK, MI_SCLLED, MI_MIDIOUT,
|
||||
enum { MI_COLOR, MI_SCOPE, MI_LARGE, MI_ANIM, MI_LEDS, MI_SCROFF, MI_SAVER, MI_HELP, MI_PRSCR, MI_HOLD, MI_ACCEL, MI_LATCH, MI_BPMLOCK, MI_SCLLED, MI_MIDIOUT,
|
||||
MI_MIDIMAP, MI_LEARN, MI_VEL, MI_VELMIN, MI_AT, MI_VLEARN, MI_LOWCUT, MI_USB,
|
||||
MI_CLICK, MI_CLKLVL, MI_COUNTIN, MI_TRACKS, MI_LOAD, MI_OCTBEND, MI_SERIAL, MI_RESTORE, MI_CPU, MI_CLOCK, MI_BT, MI_PANEL, MI_ABOUT, MI_COUNT }; /* (1.1: the
|
||||
* metronome's rows in AUDIO; 1.2: RESTORE LAST in
|
||||
@@ -15,7 +15,7 @@ enum { MI_COLOR, MI_SCOPE, MI_LARGE, MI_ANIM, MI_LEDS, MI_SCROFF, MI_HELP, MI_PR
|
||||
* CLOCK in SYSTEM; codex/coherence: INIT SYSTEM gone,
|
||||
* SAVE > TOOLS > CLEAR PROJECT the one place) */
|
||||
#define MI_VALUES MI_PANEL
|
||||
static const char *const MI_NAME[MI_COUNT] = {"COLOR", "SCOPE", "LARGE", "ANIM", "LEDS", "SCREEN OFF", "HELP", "PRESETS", "HOLD", "KNOB ACCEL", "FX LATCH", "BPM LOCK",
|
||||
static const char *const MI_NAME[MI_COUNT] = {"COLOR", "SCOPE", "LARGE", "ANIM", "LEDS", "SCREEN OFF", "SAVER", "HELP", "PRESETS", "HOLD", "KNOB ACCEL", "FX LATCH", "BPM LOCK",
|
||||
"SCALE LEDS", "MIDI OUT", "MIDI MAP", "LEARN",
|
||||
"VELOCITY", "VEL MIN", "AFTERTOUCH", "VEL LEARN",
|
||||
"SPEAKER EQ", "USB LEVEL", "CLICK", "CLICK LEVEL", "COUNT-IN", "TRACKS", "LOAD",
|
||||
@@ -35,6 +35,7 @@ static const uint8_t MI_TAB[MI_COUNT] = {
|
||||
MTAB_DISPLAY, /* ANIM */
|
||||
MTAB_DISPLAY, /* LEDS */
|
||||
MTAB_DISPLAY, /* SCREEN OFF (1.1.5) */
|
||||
MTAB_DISPLAY, /* SAVER (V10.8.56: ui.c vis_scr) */
|
||||
MTAB_DISPLAY, /* HELP (V10.7.60: a knob's meaning in the header) */
|
||||
MTAB_DISPLAY, /* PRESETS (V10.7.81: SCROLL, or the PRESETS menu) */
|
||||
MTAB_CONTROL, MTAB_CONTROL, MTAB_CONTROL, MTAB_CONTROL, /* HOLD KNOB ACCEL FX LATCH BPM LOCK */
|
||||
@@ -122,14 +123,19 @@ static const char *const OCTBEND_N[8] = {"OFF", "1 ST", "2 ST", "3 ST", "4 ST",
|
||||
* floor, AFTERTOUCH's sensitivity (OFF: none), VEL LEARN (RESET: the calibration's seeds back, then ON) */
|
||||
/* each: its settings byte, the field's shift, mask and ^ (its stored form), its count, its names (w bytes apart) */
|
||||
typedef struct { uint8_t *b; uint8_t sh, m, x, n, w; const char *nm; } vel_row_t;
|
||||
static const vel_row_t VEL_ROW[4] = {{&VEL_SET, 0, 3, 2, 4, 7, "OFF\0\0\0\0SOFT\0\0\0NORMAL\0HARD"},
|
||||
static const vel_row_t VEL_ROW[5] = {{&VEL_SET, 0, 3, 2, 4, 7, "OFF\0\0\0\0SOFT\0\0\0NORMAL\0HARD"},
|
||||
{&VEL_SET, 2, 7, 2, 8, 3, "1\0\00010\00020\00030\00040\00050\00064\00080"},
|
||||
{&VEL_SET2, 4, 15, 5, 11, 4, "OFF\0" "1\0\0\0" "2\0\0\0" "3\0\0\0" "4\0\0\0" "5\0\0\0" "6\0\0\0"
|
||||
"7\0\0\0" "8\0\0\0" "9\0\0\0" "10\0"}, /* (V10.7.23: AFTERTOUCH
|
||||
* OFF 1..10, bits 4-7, place ^ 5: 0 = 5, MID's; the old LOW MID HIGH
|
||||
* in bits 0-1 read once: settings_persist.c settings_fix15) */
|
||||
{&VEL_SET2, 2, 3, 0, 3, 6, "ON\0\0\0\0OFF\0\0\0RESET"}};
|
||||
static const vel_row_t *vel_row(uint32_t row) { return row >= MI_VEL && row <= MI_VLEARN ? &VEL_ROW[row - MI_VEL] : 0; }
|
||||
{&VEL_SET2, 2, 3, 0, 3, 6, "ON\0\0\0\0OFF\0\0\0RESET"},
|
||||
{&vis_scr, 4, 7, 2, 5, 7, "OFF\0\0\0\0" "1 MIN\0\0" "3 MIN\0\0" "5 MIN\0\0" "10 MIN"}}; /* (V10.8.56)
|
||||
* SAVER, the same kind of row (ui.c VIS_MIN: 5..7 read as 3 MIN) */
|
||||
static const vel_row_t *vel_row(uint32_t row)
|
||||
{
|
||||
return row >= MI_VEL && row <= MI_VLEARN ? &VEL_ROW[row - MI_VEL] : row == MI_SAVER ? &VEL_ROW[4] : 0;
|
||||
}
|
||||
/* (JIANT 0.9.9-stab, as 0.9.12) MENU > SYSTEM > CPU CLOCK: 360 MHZ (the default: the boot stage's clock, M-VAVE's V15
|
||||
* runs it so with the core rails at 1.60 / 1.38 V, hal/fm1_sys.h fm1_rails_boot) or 320 MHZ (JieLi's rated clock, as
|
||||
* M-VAVE's open firmware and Skiff run it: ~11 % fewer cycles a block), switched at boot before the audio and the second
|
||||
|
||||
@@ -730,6 +730,14 @@ static int16_t mx_ui[4] = {0, 2, 0, 0}; /* (the macro, the desti
|
||||
static const param_desc_t LIFE_DESC[4] = {PD("FILTER", F_PCT, 0, 100, 0), PD("TIMBRE", F_PCT, 0, 100, 0),
|
||||
PD("PUMP", F_PCT, 0, 100, 0), PD("FX", F_PCT, 0, 100, 0)};
|
||||
static int16_t life_v[4] __attribute__((section(".bss.tape")));
|
||||
/* (V10.8.56, the owner: "visuales random en HOME") HOME > VISUAL, BEING's second page, and the screensaver (ui.c scr_*): a
|
||||
* figure from a seed (OCT+ a new one), drawn with the creatures' pieces (ui_lzhome.c vis_fig): KNOB 1 COMPLEX (how many
|
||||
* pieces), 2 WOBBLE (the circles' deformation), 3 PALETTE, 4 REACT (how much it follows the sound). Not saved */
|
||||
static const char *const N_VPAL[] = {"HEAT", "THEME", "MONO", "COLD"}; /* (COLD: the heat turned over) */
|
||||
static const param_desc_t VIS_DESC[4] = {PD("COMPLEX", F_PCT, 0, 100, 0), PD("WOBBLE", F_PCT, 0, 100, 0),
|
||||
PE("PALETTE", N_VPAL, 0), PD("REACT", F_PCT, 0, 100, 0)};
|
||||
static int16_t vis_v[4] __attribute__((section(".bss.tape")));
|
||||
static uint16_t vis_seed __attribute__((section(".bss.tape"))); /* (0: not set yet: vis_fig sets the knobs' defaults) */
|
||||
#define ID_EQ0 0xE0u
|
||||
static const param_desc_t EQ_DESC[4] __attribute__((section(".rodata.tape"))) = {
|
||||
PD("LOW", F_INT, -12, 12, 0), PD("LO MID", F_INT, -12, 12, 0), PD("HI MID", F_INT, -12, 12, 0), PD("HIGH", F_INT, -12, 12, 0)};
|
||||
|
||||
+37
-7
@@ -436,7 +436,14 @@ static const uint8_t SCR_CODE[5] = {0, 2, 1, 4, 7}; /* the stored byte of NEV
|
||||
static const uint8_t SCR_DEC[8] = {0, 2, 1, 0, 3, 0, 0, 4}; /* .. and back (3: 1.1.5's NEVER; 5, 6 unknown) */
|
||||
#define SCR_EAT_MS 300u
|
||||
static const uint8_t SCR_MIN[5] = {0, 5, 15, 30, 60}; /* NEVER, minutes */
|
||||
enum { SCR_ON, SCR_OFF, SCR_WAKE, SCR_SLPOUT, SCR_SHOW };
|
||||
enum { SCR_ON, SCR_OFF, SCR_WAKE, SCR_SLPOUT, SCR_SHOW, SCR_VIS }; /* (V10.8.56) SCR_VIS: the screensaver drawn */
|
||||
/* (V10.8.56, the owner) MENU > DISPLAY > SAVER: after this long with no panel input HOME > VISUAL's figure, a new one,
|
||||
* the whole screen, moving with the music (ui_draw.c vis_full), before SCREEN OFF's dark if that comes later; the first
|
||||
* press, key or turn only brings the page back (swallowed as SCREEN OFF's wake). OFF 1 3 5 10 MIN, 3 the default: bits 4-6
|
||||
* of a byte the teaching hints' counts once used (their small counts left 0 there: 3 MIN), stored ^ 2 (menu_items.c) */
|
||||
#define vis_scr (favorites.factory[15][12])
|
||||
static const uint8_t VIS_MIN[8] = {0, 1, 3, 5, 10, 3, 3, 3};
|
||||
static void vis_new(int say);
|
||||
static struct {
|
||||
uint8_t st; /* SCR_*: SCR_WAKE asked, SCR_SLPOUT sent, SCR_SHOW the frame that redraws */
|
||||
uint8_t eat; /* the wake gesture: panel input swallowed (ui_input) */
|
||||
@@ -457,6 +464,10 @@ static void scr_wake(void)
|
||||
{
|
||||
if (scrn.st == SCR_OFF)
|
||||
scrn.st = SCR_WAKE;
|
||||
if (scrn.st == SCR_VIS) { /* (V10.8.56) the saver: the page back at once */
|
||||
scrn.st = SCR_ON;
|
||||
ui.force = 1;
|
||||
}
|
||||
scrn.eat = 1;
|
||||
}
|
||||
static void scr_wake_now(void) /* main.c: the crash screen, UPDATE, UBOOT */
|
||||
@@ -498,15 +509,24 @@ static int scr_input(uint32_t pressed, uint32_t notes)
|
||||
/* ui_draw, every frame: 1 = draw it */
|
||||
static int scr_frame(void)
|
||||
{
|
||||
uint32_t lim = SCR_MIN[scr_get()] * 60000u;
|
||||
uint32_t lim = SCR_MIN[scr_get()] * 60000u, vl = VIS_MIN[((vis_scr >> 4) ^ 2u) & 7u] * 60000u;
|
||||
int32_t el = (int32_t)(fm1_ms - scrn.idle); /* (signed: robust to a wrap) */
|
||||
if (ui.confirm || ui.uboot || seq_counting()) { /* (never dark under these) */
|
||||
scrn.idle = fm1_ms;
|
||||
if (scrn.st == SCR_OFF)
|
||||
if (scrn.st == SCR_OFF || scrn.st == SCR_VIS)
|
||||
scr_wake();
|
||||
el = 0;
|
||||
}
|
||||
switch (scrn.st) {
|
||||
case SCR_ON:
|
||||
if (!lim || (int32_t)(fm1_ms - scrn.idle) < (int32_t)lim) /* (signed: robust to a wrap) */
|
||||
case SCR_VIS:
|
||||
if (scrn.st == SCR_ON && vl && el >= (int32_t)vl && (!lim || vl < lim) && !ui.menu && bt_hw_seg()) { /* (V10.8.56) the saver */
|
||||
scrn.st = SCR_VIS;
|
||||
scrn.eat = 1;
|
||||
kb_asleep = 1;
|
||||
vis_new(0);
|
||||
}
|
||||
if (!lim || el < (int32_t)lim)
|
||||
return 1;
|
||||
lcd_power(0);
|
||||
scrn.st = SCR_OFF;
|
||||
@@ -783,6 +803,16 @@ static void ui_say(const char *a, const char *b)
|
||||
}
|
||||
|
||||
static void ui_message(const char *s) { ui_say(s, ""); }
|
||||
/* (V10.8.56) HOME > VISUAL / the saver: a new figure (its seed), said on OCT+ */
|
||||
static void vis_new(int say)
|
||||
{
|
||||
char b[8];
|
||||
vis_seed = (uint16_t)((fm1_ms * 2654435761u >> 16) % 9999u + 1u);
|
||||
fmt_int(b, vis_seed);
|
||||
if (say)
|
||||
ui_say("VISUAL #", b);
|
||||
ui.force = 1;
|
||||
}
|
||||
/* (V10.7.10, users read "NO SEG" as nothing) the Bluetooth segment (flash 0xEA000: Bluetooth, GEN, the songs' saving,
|
||||
* USB HOST, ..., bt_hw.c) missing or another build's: what to do, in two messages (the header's width) */
|
||||
#define SEG_MISS "BLUETOOTH PART MISSING"
|
||||
@@ -1982,9 +2012,9 @@ static uint32_t preset_visible(uint32_t cur, uint32_t total, uint32_t row)
|
||||
static const param_desc_t *home_param(uint32_t k, int16_t **vp)
|
||||
{
|
||||
uint32_t id = trk_engp(TSEL)->knob[k & 3u];
|
||||
if (home_life()) { /* (V10.7.62) HOME > LIFE: params.c life_v */
|
||||
*vp = &life_v[k & 3u];
|
||||
return &LIFE_DESC[k & 3u];
|
||||
if (home_life() || home_vis()) { /* (V10.7.62) HOME > LIFE: params.c life_v; (V10.8.56) VISUAL: vis_v */
|
||||
*vp = (home_vis() ? vis_v : life_v) + (k & 3u);
|
||||
return (home_vis() ? VIS_DESC : LIFE_DESC) + (k & 3u);
|
||||
}
|
||||
*vp = &TSEL->p[id];
|
||||
return track_desc(TSEL, id);
|
||||
|
||||
+12
-1
@@ -1111,8 +1111,10 @@ static const char *const LZ_HINT[] = {"EDIT 1", "HOLD: K4 GAIN", "FILTER", "HOLD
|
||||
static const char *lz_hint(void)
|
||||
{
|
||||
uint32_t i;
|
||||
if (ui.home || (fm1_ms - lz_hint_ms > 1500u && !((fm1_in.buttons >> panel.btn[B_OCTUP]) & 1u)))
|
||||
if (fm1_ms - lz_hint_ms > 1500u && !((fm1_in.buttons >> panel.btn[B_OCTUP]) & 1u))
|
||||
return 0;
|
||||
if (ui.home) /* (V10.8.56) HOME > VISUAL: OCT+ a new figure */
|
||||
return home_vis() ? "NEW FIGURE" : 0;
|
||||
for (i = 0; i < NELEM(LZ_HINT); i += 2u)
|
||||
if (str_eq(cur_page()->title, LZ_HINT[i])) return LZ_HINT[i + 1u];
|
||||
return 0;
|
||||
@@ -2181,6 +2183,15 @@ static void ui_draw(void)
|
||||
}
|
||||
if (!scr_frame()) /* MENU > SCREEN OFF: dark (or waking), nothing drawn */
|
||||
return;
|
||||
if (scrn.st == SCR_VIS) { /* (V10.8.56) MENU > SAVER: HOME > VISUAL's figure, the whole screen */
|
||||
uint32_t s;
|
||||
for (s = 0; s < 2u; s++) {
|
||||
cv_begin(240, 120, T_BG);
|
||||
vis_fig(120 * 16, (120 - (int32_t)s * 120) * 16, 104 * 16);
|
||||
cv_blit(0, s * 120u);
|
||||
}
|
||||
return;
|
||||
}
|
||||
anim_st.non = 1; /* (codex/anim: the lens's entries worked out once, ui_lens.c) */
|
||||
anim_st.nkey = 0;
|
||||
ui_draw_page(counting);
|
||||
|
||||
@@ -3018,6 +3018,10 @@ static void ui_input_frame(void)
|
||||
* knob: KEY TRK, no octave) */
|
||||
break;
|
||||
}
|
||||
if (b == B_OCTUP && !fm1_in.notes && home_vis()) { /* (V10.8.56) HOME > VISUAL: OCT+ a new figure */
|
||||
vis_new(1);
|
||||
break;
|
||||
}
|
||||
eu_hold = 0; /* (OCT- under an armed OCT+: both, the octave 0, as ever) */
|
||||
oct_key(b, both); /* (V10.6z4: a note held, the expression keys) */
|
||||
break;
|
||||
@@ -3178,7 +3182,7 @@ static void ui_input_frame(void)
|
||||
const param_desc_t *d = home_param(k, &vp);
|
||||
int32_t was = *vp;
|
||||
*vp = (int16_t)param_turn(d, *vp, accel(EN_K1 + k, s, d->fmt == F_ENUM ? 0 : d->max - d->min));
|
||||
if (!home_life()) { /* (V10.7.62) LIFE: the project's, no track's (V10.8.27: its hints gone) */
|
||||
if (!home_life() && !home_vis()) { /* (V10.7.62) LIFE: the project's, no track's (V10.8.27: its hints gone) */
|
||||
knob_cap(TSEL, (uint32_t)(vp - TSEL->p));
|
||||
excite_turn(TSEL, vp, was);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ typedef struct { const nv_t *e; const ng_t *g; uint8_t n, ng; } ch_t;
|
||||
enum { SV_LIB, SV_PROJ, SV_SOUND };
|
||||
#define HE_SONG 4u /* CE_HOME: the song's first entry, */
|
||||
#define HE_GEN 7u /* .. GENE 1's */
|
||||
static const nv_t CE_HOME[] = {NV(0, "ECOSYSTEM", 0, 0), NV(0, "LIFE", 0, 0), NV(0, "BEING", 1, 1), NV(0, "ROUTES", 1, 1),
|
||||
static const nv_t CE_HOME[] = {NV(0, "ECOSYSTEM", 0, 0), NV(0, "LIFE", 0, 0), NV(0, "BEING", 1, 1), NV(0, "VISUAL", 1, 1),
|
||||
NV("JAM", 0, 2, SV_PROJ), NV("TAKE", 0, 2, SV_PROJ), NV("ARRANGE", 0, 2, SV_PROJ), /* (V10.8: JAM's CLIPS first;
|
||||
* TIMELINE, PARTS gone, the song mode's redesign) */
|
||||
NV(0, "GENERATOR 1", 3, 2), NV(0, "GENERATOR 2", 3, 2), NV(0, "GENERATOR 3", 3, 2),
|
||||
@@ -178,7 +178,8 @@ static uint32_t nv_page(uint32_t sec, uint32_t e)
|
||||
}
|
||||
static int nv_ok(uint32_t sec, uint32_t e) /* (V10.7.59, the owner: HOME > MACROS gone, the FX layer's knobs are the macros) */
|
||||
{
|
||||
return sec == SEC_HOME && !CE_HOME[e < NELEM(CE_HOME) ? e : 0].t ? e < NELEM(CE_HOME) && e != 3u : nv_page(sec, e) < NPAGES; /* (V10.7.66:
|
||||
return sec == SEC_HOME && !CE_HOME[e < NELEM(CE_HOME) ? e : 0].t ? e < NELEM(CE_HOME) : nv_page(sec, e) < NPAGES; /* (V10.8.56:
|
||||
* VISUAL in ROUTES' place) */ /* (V10.7.66:
|
||||
* ROUTES, the macros, gone: FX > PUNCH IN's only) */ /* (V10.7.62:
|
||||
* ECO's second, LIFE; V10.7.63 the song's pages) */
|
||||
}
|
||||
@@ -224,6 +225,7 @@ static uint32_t home_level(void) { return gen_on() ? 2u : ui.hlv ? 1u : 0u; }
|
||||
static uint32_t home_set(void) { return ui.hset[home_level() & 1u] & 1u; }
|
||||
static int home_macros(void) { return 0; } /* (V10.7.66: HOME > ROUTES gone, the macros FX > PUNCH IN's) */
|
||||
static int home_life(void) { return ui.home && !ui.menu && home_level() == 0u && home_set(); } /* (V10.7.62) LIFE */
|
||||
static int home_vis(void) { return ui.home && !ui.menu && home_level() == 1u && home_set(); } /* (V10.8.56) VISUAL */
|
||||
/* the entries shown now (on this track, at this LOAD), in order: their indices in v (NAV_MAX at most: the longest chain,
|
||||
* FX's 17 since snd8's TAPE, fits: ui_test checks every chain against it; snd8b's 17th page overran a 16 and crashed
|
||||
* FX); how many */
|
||||
@@ -289,6 +291,7 @@ static void nav_go(uint32_t sec, uint32_t e, int outside)
|
||||
ui.confirm = 0;
|
||||
ui.hlv = (uint8_t)(e >> 1);
|
||||
ui.hset[e >> 1] = (uint8_t)(e & 1u);
|
||||
lz_hint_ms = fm1_ms; /* (V10.8.56: VISUAL's OCT+ said in the footer) */
|
||||
}
|
||||
if (!ui.home)
|
||||
go_home();
|
||||
|
||||
+69
-39
@@ -15,8 +15,8 @@
|
||||
* the ring of twelve dots, gone). LIFE (V10.7.62): the same, a line from each track to the one it moves
|
||||
* (the ring's), as bright as it sounds (a kit's in the accent)
|
||||
* BEING the track's being large in the middle, its four HOME knobs as organs at the corners (a gauge each, its name
|
||||
* and value, a vein to the body), the sound's name under it; ROUTES: the being small, M1..M4 down the left
|
||||
* with their routes drawn to their destinations ("T1 CUT+40")
|
||||
* and value, a vein to the body), the sound's name under it; (V10.8.56) VISUAL: a figure
|
||||
* from a seed (vis_fig), HOME's visuals and the saver's
|
||||
* Nothing in the audio path: the parts' peaks and the scope the UI already reads. */
|
||||
#define ECO_N NTRK
|
||||
static const int16_t ECO_PX[ECO_N] = {44, 120, 196, 64, 146, 206}, ECO_PY[ECO_N] = {34, 28, 40, 84, 78, 86}; /* (where they
|
||||
@@ -278,6 +278,70 @@ static void graph_eco(void)
|
||||
if (home_set()) /* (V10.7.62) LIFE (was MACROS: the FX layer's knobs since V10.7.59) */
|
||||
cv_text(6, 2, &AF_X, life_on ? "LIFE ON" : "LIFE OFF", life_on ? T_MID : T_DIM);
|
||||
}
|
||||
/* (V10.8.56, the owner: "un motor de visuales adentro: visuales random en HOME") HOME > VISUAL and the saver: a figure
|
||||
* from vis_seed, of the creatures' pieces (vx_wf's wobbling circles, roses, tentacles, orbits), at (cx, cy), radius R
|
||||
* (Q4 px): KNOB 1 COMPLEX its pieces (3 .. 12), 2 WOBBLE their circles' deformation, 3 PALETTE, 4 REACT how much the
|
||||
* output's level swells, warms and speeds it. It turns with the time (anim_fr), faster with the sound */
|
||||
static uint16_t vis_col(int32_t h)
|
||||
{
|
||||
h = clamp(h, 0, 255);
|
||||
switch (vis_v[2] & 3) {
|
||||
case 1: return ux_mix(T_THEME, T_ACCENT, h * 100 / 256);
|
||||
case 2: return ux_mix(T_DIM, T_TEXT, h * 100 / 256);
|
||||
case 3: return vk_heat(255 - h);
|
||||
default: return vk_heat(h);
|
||||
}
|
||||
}
|
||||
static VX_SEG void vis_fig(int32_t cx, int32_t cy, int32_t R)
|
||||
{
|
||||
uint32_t r, i, j, n, t;
|
||||
int32_t lv;
|
||||
if (!vis_seed) { /* (the first time: the knobs' defaults, a seed) */
|
||||
vis_v[0] = 50; vis_v[1] = 40; vis_v[3] = 60;
|
||||
vis_seed = 1791;
|
||||
}
|
||||
lv = bg_energy() * vis_v[3] / 100; /* (0..256) the sound, as much as REACT asks */
|
||||
t = anim_fr * (uint32_t)(60 + lv);
|
||||
n = 3u + (uint32_t)vis_v[0] * 9u / 100u;
|
||||
r = vis_seed * 2654435761u | 1u;
|
||||
vxs.wb = (int16_t)(vis_v[1] * 14 + lv * 3);
|
||||
vxs.wph = (uint16_t)(t >> 3);
|
||||
for (i = 0; i < n; i++) {
|
||||
uint32_t h = vx_rnd(&r), kind = h & 3u, k = 2u + (h >> 2) % 6u;
|
||||
uint32_t ph = (h >> 8) + (t >> ((h >> 16) & 3u)) * ((h & 64u) ? 1u : 0xFFFFFFFFu);
|
||||
int32_t rad = R * (18 + (int32_t)((h >> 5) % 78u)) / 100 * (256 + lv / 2) / 256, px = 0, py = 0;
|
||||
uint16_t c = vis_col((int32_t)((h >> 12) & 255u) * 3 / 4 + lv / 4);
|
||||
uint32_t m = kind < 2u ? 48u : kind == 2u ? k * 9u : k * 13u;
|
||||
for (j = 0; j <= m; j++) {
|
||||
int32_t x, y, rr;
|
||||
uint32_t a;
|
||||
if (kind == 3u) { /* k small rings orbiting */
|
||||
uint32_t s = j / 13u, q = j % 13u;
|
||||
int32_t sr = R / 10 * (256 + lv) / 256, w = vx_wf(q * 5462u);
|
||||
a = s * 65536u / k + ph;
|
||||
x = cx + (rad * og_cos(a) >> 15) + ((sr * og_cos(q * 5462u) >> 15) * w >> 12);
|
||||
y = cy + (rad * og_sin(a) >> 15) + ((sr * og_sin(q * 5462u) >> 15) * w >> 12);
|
||||
if (q) og_line_a(px, py, x, y, c, 256);
|
||||
px = x; py = y;
|
||||
continue;
|
||||
}
|
||||
if (kind < 2u) { /* a ring, or a rose of k petals: wobbling */
|
||||
a = j * 65536u / 48u + ph;
|
||||
rr = kind ? rad * (160 + (og_sin(k * a + ph * 3u) >> 9)) / 256 : rad;
|
||||
rr = rr * vx_wf(a) >> 12;
|
||||
} else { /* k tentacles from the middle, waving */
|
||||
uint32_t s = j / 9u, q = j % 9u;
|
||||
a = s * 65536u / k + ph + (uint32_t)(og_sin(q * 5000u + t * 9u + s * 9000u) * (2000 + vis_v[1] * 40) >> 15);
|
||||
rr = rad * (int32_t)q / 8;
|
||||
}
|
||||
x = cx + (rr * og_cos(a) >> 15);
|
||||
y = cy + (rr * og_sin(a) >> 15);
|
||||
if (j && !(kind == 2u && j % 9u == 0u)) og_line_a(px, py, x, y, c, 256);
|
||||
px = x; py = y;
|
||||
}
|
||||
}
|
||||
vxs.wb = 0;
|
||||
}
|
||||
/* BEING: the track's being large, its HOME knobs as organs at the corners */
|
||||
static const int16_t ORG_X[4] = {30, 210, 30, 210}, ORG_Y[4] = {28, 28, 116, 116};
|
||||
static void organ(uint32_t k, int32_t cx, int32_t cy)
|
||||
@@ -301,43 +365,9 @@ static __attribute__((noinline)) void graph_home_being(void)
|
||||
(void)eco_step();
|
||||
(void)bg_energy();
|
||||
char b[16];
|
||||
if (home_set()) { /* ROUTES: the being small, the macros and their routes */
|
||||
uint32_t m, i, j, row = 0;
|
||||
int32_t ry[12];
|
||||
cx = 128;
|
||||
cy = 66;
|
||||
bx = cx * 16;
|
||||
by = cy * 16;
|
||||
eco_being(c, bx, by, (13 * 16) * (256 + eco.en[c] * 5 / 4 + (bg_sin(eco.tm[c] / 3u) >> 11)) / 256);
|
||||
for (m = 0; m < 4u; m++) {
|
||||
int32_t y = 16 + (int32_t)m * 34, n = 0;
|
||||
char mn[3] = {'M', (char)('1' + m), 0};
|
||||
uint16_t col = ui.hot_t && ui.hot_col == m ? T_ACCENT : T_THEME;
|
||||
for (i = 0; i < NTRK; i++)
|
||||
for (j = 0; j < 4u && row < 12u; j++) {
|
||||
const int16_t *p = &trk[i].p[P_M1SRC + 3u * j];
|
||||
char e[20] = {'T', (char)('1' + i), ' ', 0};
|
||||
int32_t ty;
|
||||
if (p[0] != (int16_t)(MS_M1 + m) || !p[1] || !p[2] || n >= 3)
|
||||
continue;
|
||||
ty = 6 + (int32_t)row * 11;
|
||||
ry[row++] = ty;
|
||||
n++;
|
||||
str_cpy(e + 3, mod_dst_name(&trk[i], p[1]), sizeof e - 3);
|
||||
str_cpy(e + str_len(e), p[2] > 0 ? "+" : "", sizeof e - str_len(e));
|
||||
fmt_int(e + str_len(e), p[2] * 100 / 64);
|
||||
og_quad_a(34 * 16, y * 16, 120 * 16, y * 16, 168 * 16, (ty + 4) * 16, heat_col(70 + macro_v[m] * 150 / 127),
|
||||
14u, 200);
|
||||
cv_clip_text(171, ty, &AF_X, e, T_MID, T_SURF, 66);
|
||||
}
|
||||
og_node(22 * 16, y * 16, 12, T_RAISE);
|
||||
lz_arc(22, y, 10, 2, macro_v[m] * 1000 / 127, T_LINE, col);
|
||||
GFX_HOOK_ALIGN(12, y - 5, 32, y + 5, AL_HV, "ROUTES macro name in its knob");
|
||||
cv_text_in(12, y - 5 + CAP_IN(X, 10), 20, &AF_X, mn, T_TEXT, T_RAISE);
|
||||
if (!n)
|
||||
cv_text(40, y - 4 - AF_X_CAP_Y + 1, &AF_X, "NO ROUTE", T_DIM);
|
||||
}
|
||||
(void)ry;
|
||||
if (home_set()) { /* (V10.8.56) VISUAL, in ROUTES' place (the macros: FX > PUNCH IN's) */
|
||||
if (bt_hw_seg())
|
||||
vis_fig(120 * 16, 68 * 16, 62 * 16);
|
||||
return;
|
||||
}
|
||||
for (k = 0; k < 4u; k++)
|
||||
|
||||
+71
-22
@@ -2781,14 +2781,14 @@ static int test_menu_tabs(void)
|
||||
for (i = 0; i < MI_COUNT; i++) ok &= MI_TAB[i] < MTAB_COUNT;
|
||||
ui_prefs = 0;
|
||||
bad += check("MENU tabs: DISPLAY CONTROL AUDIO SYSTEM (7 12 8 7 rows: V10.7.60 HELP; STYLE retired; codex/coherence INIT SYSTEM gone; 0.8.9 SKIN, retired V10.7.23; 0.9.7 SCOPE, 0.9.9-stab CPU CLOCK, p1 CPU CORES, MIDI MAP, LEARN, LOAD in AUDIO; V10.12 BLUETOOTH; V10.6z4 OCT BEND in AUDIO; V10.6z6 VELOCITY VEL MIN AFTERTOUCH VEL LEARN in CONTROL), each in a run, their rows and values fit the lens's panel",
|
||||
ok && MTAB_COUNT == 4u && str_eq(MTAB_NAME[0], "DISPLAY") && mtab_rows(MTAB_DISPLAY) == 8u && /* (V10.7.81: PRESETS) */
|
||||
ok && MTAB_COUNT == 4u && str_eq(MTAB_NAME[0], "DISPLAY") && mtab_rows(MTAB_DISPLAY) == 9u && /* (V10.7.81: PRESETS; V10.8.56: SAVER) */
|
||||
mtab_rows(MTAB_CONTROL) == 12u && mtab_rows(MTAB_AUDIO) == 8u && mtab_rows(MTAB_SYSTEM) == 7u); /* (0.6.58: INIT SYSTEM;
|
||||
* 0.6.72: MIDI OUT in CONTROL; 0.9.9-stab: CPU CLOCK in SYSTEM) */
|
||||
|
||||
ui_power_on();
|
||||
hold(B_HOME);
|
||||
ok = ui.menu == 1 && ui.menu_sel == MI_COLOR && menu_tab() == MTAB_DISPLAY;
|
||||
for (i = 0; i < 6u; i++) turn(EN_SELECT, 1); /* (0.9.2: SELECT every row, tab after tab; was PRESETS in a tab, round;
|
||||
for (i = 0; i < 7u; i++) turn(EN_SELECT, 1); /* (V10.8.56: SAVER a row more; 0.9.2: SELECT every row, tab after tab; was PRESETS in a tab, round;
|
||||
* 0.9.7: SCOPE a row more; STYLE, SKIN retired: a row less each;
|
||||
* V10.7.60: HELP a row more) */
|
||||
ok &= ui.menu_sel == MI_HELP;
|
||||
@@ -2950,9 +2950,9 @@ static int test_menu_tabs(void)
|
||||
hold(B_HOME);
|
||||
frame();
|
||||
ok = ui.menu == 1 && ui.mlv == 1u && lz_on() && lz_fam() == LZ_MENU && lz_tabs() == 4u && lz_tab_lit(0) &&
|
||||
lz_crumb_is("MENU \xB7 DISPLAY \xB7 COLOR") && lz_count_is("1/35");
|
||||
lz_crumb_is("MENU \xB7 DISPLAY \xB7 COLOR") && lz_count_is("1/36");
|
||||
turn(EN_SELECT, 1); frame();
|
||||
ok &= ui.mlv == 1u && lz_tab_lit(0) && lz_crumb_is("MENU \xB7 DISPLAY \xB7 SCOPE") && lz_count_is("2/35");
|
||||
ok &= ui.mlv == 1u && lz_tab_lit(0) && lz_crumb_is("MENU \xB7 DISPLAY \xB7 SCOPE") && lz_count_is("2/36");
|
||||
turn(EN_ALGO, 1); frame();
|
||||
ok &= menu_tab() == MTAB_CONTROL && lz_tab_lit(1) && lz_crumb_is("MENU \xB7 CONTROL \xB7 HOLD");
|
||||
turn(EN_SELECT, 2); frame();
|
||||
@@ -2961,7 +2961,7 @@ static int test_menu_tabs(void)
|
||||
ok &= (fx_latch & 1u) != 0u;
|
||||
turn(EN_K3, -1); frame();
|
||||
menu_close();
|
||||
bad += check("0.9.2 MENU: four tabs (the row's lit), MENU . TAB . ROW and n/33 (STYLE retired; codex/coherence: INIT SYSTEM gone; 0.9.7: SCOPE; 0.9.9-stab: CPU CLOCK; p1: CPU CORES, MIDI MAP, LEARN; V10.12: BLUETOOTH; V10.6z4: OCT BEND; V10.6z6: the keys' four; V10.7.23: SKIN retired); ALGORITHM the tab, any knob the value", ok && MI_COUNT == 35u); /* (V10.7.81: PRESETS) */
|
||||
bad += check("0.9.2 MENU: four tabs (the row's lit), MENU . TAB . ROW and n/33 (STYLE retired; codex/coherence: INIT SYSTEM gone; 0.9.7: SCOPE; 0.9.9-stab: CPU CLOCK; p1: CPU CORES, MIDI MAP, LEARN; V10.12: BLUETOOTH; V10.6z4: OCT BEND; V10.6z6: the keys' four; V10.7.23: SKIN retired); ALGORITHM the tab, any knob the value", ok && MI_COUNT == 36u); /* (V10.7.81: PRESETS; V10.8.56: SAVER) */
|
||||
{ /* (V10.7.81, the owner) MENU > DISPLAY > PRESETS: SCROLL (the default) loads the next sound; MENU opens the
|
||||
* PRESETS list first (the sound kept), then scrolls it */
|
||||
uint32_t p0;
|
||||
@@ -7060,6 +7060,34 @@ static int test_screen_off(void)
|
||||
str_eq(menu_vname(MI_SCROFF, 3), "30 MIN") && str_eq(menu_vname(MI_SCROFF, 4), "60 MIN") &&
|
||||
menu_get(MI_SCROFF) == 0u;
|
||||
bad += check("SCREEN OFF: MENU > DISPLAY row, NEVER 5 15 30 60 MIN, NEVER by default (stored 0, 1.1.5.1)", ok);
|
||||
{ /* (V10.8.56, the owner) MENU > DISPLAY > SAVER: 3 MIN by default; untouched that long, HOME > VISUAL's figure the
|
||||
* whole screen, moving; a button brings the page back and is swallowed (its page not opened), as SCREEN OFF's wake */
|
||||
static uint16_t a[240 * 120];
|
||||
ok = str_eq(MI_NAME[MI_SAVER], "SAVER") && MI_TAB[MI_SAVER] == MTAB_DISPLAY && menu_n(MI_SAVER) == 5u &&
|
||||
menu_get(MI_SAVER) == 2u && str_eq(menu_vname(MI_SAVER, 2), "3 MIN") && str_eq(menu_vname(MI_SAVER, 0), "OFF");
|
||||
menu_put(MI_SAVER, 1u); /* 1 MIN */
|
||||
ok &= menu_get(MI_SAVER) == 1u && str_eq(menu_vname(MI_SAVER, 1), "1 MIN");
|
||||
scr_idle(58000u);
|
||||
ok &= scrn.st == SCR_ON && !kb_asleep;
|
||||
rows = host_blit_rows;
|
||||
scr_idle(3000u);
|
||||
ok &= scrn.st == SCR_VIS && kb_asleep && host_bl && host_blit_rows - rows >= 240u;
|
||||
memcpy(a, host_screen, sizeof a);
|
||||
for (i = 0; i < NTRK; i++) trk[i].peak = 9000;
|
||||
frames(400u);
|
||||
ok &= memcmp(a, host_screen, sizeof a) != 0 && scrn.st == SCR_VIS; /* (it moves) */
|
||||
btn_down(B_ENV); frame();
|
||||
ok &= scrn.st == SCR_ON && ui.home;
|
||||
btn_up(B_ENV); frame(); frames(100u);
|
||||
ok &= ui.home && !ui.menu && !scrn.eat && !kb_asleep;
|
||||
press(B_ENV);
|
||||
ok &= !ui.home && cur_page()->fam == FAM_ENV;
|
||||
go_home();
|
||||
menu_put(MI_SAVER, 0u); /* OFF for what follows */
|
||||
scr_idle(10u * 60000u);
|
||||
ok &= scrn.st == SCR_ON && menu_get(MI_SAVER) == 0u;
|
||||
bad += check("V10.8.56 SAVER: MENU > DISPLAY row, 3 MIN by default; untouched -> VISUAL's figure the whole screen, moving; a button brings the page back, swallowed", ok);
|
||||
}
|
||||
menu_put(MI_SCROFF, 3u); /* 30 MIN for what follows */
|
||||
|
||||
host_pw_n = 0;
|
||||
@@ -11855,8 +11883,8 @@ static int test_style(void)
|
||||
frame();
|
||||
for (ok = 1, i = 0; i < MI_COUNT; i++)
|
||||
ok &= !str_eq(MI_NAME[i], "STYLE");
|
||||
ok &= MI_COLOR == 0u && MI_SCOPE == 1u && MI_LARGE == 2u && MI_ANIM == 3u && MI_LEDS == 4u && MI_SCROFF == 5u &&
|
||||
MI_HELP == 6u && MI_PRSCR == 7u && MI_HOLD == 8u && mtab_rows(MTAB_DISPLAY) == 8u && /* (V10.7.81: PRESETS) */ mtab_first(MTAB_CONTROL) == MI_HOLD;
|
||||
ok &= MI_COLOR == 0u && MI_SCOPE == 1u && MI_LARGE == 2u && MI_ANIM == 3u && MI_LEDS == 4u && MI_SCROFF == 5u && MI_SAVER == 6u &&
|
||||
MI_HELP == 7u && MI_PRSCR == 8u && MI_HOLD == 9u && mtab_rows(MTAB_DISPLAY) == 9u && /* (V10.7.81: PRESETS) */ mtab_first(MTAB_CONTROL) == MI_HOLD;
|
||||
bad += check("MENU: no STYLE row, no SKIN row (FLAT and COLORS the ones); DISPLAY's six rows, the rest renumbered in order", ok);
|
||||
{
|
||||
persist_t p, q;
|
||||
@@ -12204,16 +12232,16 @@ static int test_lz_home(void)
|
||||
uint32_t c, k;
|
||||
ui_power_on(); frame();
|
||||
ok = ui.home && lz_on() && lz_fam() == LZ_HOME && home_level() == 0u && !home_set() && lz_tab_lit(0) && lz_tabs() == 4u &&
|
||||
lz_crumb_is("HOME \xB7 ECOSYSTEM \xB7 ECOSYSTEM") && lz_count_is("1/10"); /* (V10.7.62: LIFE in MACROS' place, seven) */ /* (seven pages, as the n/7 below; the "1/8" came
|
||||
lz_crumb_is("HOME \xB7 ECOSYSTEM \xB7 ECOSYSTEM") && lz_count_is("1/11"); /* (V10.7.62: LIFE in MACROS' place, seven) */ /* (seven pages, as the n/7 below; the "1/8" came
|
||||
* with e147a98's import, 2026-11-04, the rest of the test says 7) */
|
||||
press(B_HOME); frame(); /* a HOME tap: BEING (the next group) */
|
||||
ok &= ui.home && home_level() == 1u && !home_set() && lz_tab_lit(1) && lz_crumb_is("HOME \xB7 BEING \xB7 BEING") &&
|
||||
lz_count_is("3/10");
|
||||
lz_count_is("3/11");
|
||||
k = macro_v[0];
|
||||
c = (uint32_t)TSEL->p[ENGINES[TSEL->eng_req]->knob[0]];
|
||||
turn(EN_SELECT, -1); frame(); /* SELECT left: LIFE (V10.7.62), its KNOB 1 FILTER */
|
||||
ok &= home_level() == 0u && home_set() && home_life() && !home_macros() && lz_crumb_is("HOME \xB7 ECOSYSTEM \xB7 LIFE") &&
|
||||
lz_count_is("2/10");
|
||||
lz_count_is("2/11");
|
||||
turn(EN_K1, 3); frame();
|
||||
ok &= life_v[0] > 0 && (uint32_t)TSEL->p[ENGINES[TSEL->eng_req]->knob[0]] == c && !strncmp(ui.col[0], "FILTER|", 7);
|
||||
life_v[0] = 0;
|
||||
@@ -12226,11 +12254,33 @@ static int test_lz_home(void)
|
||||
bad += check("0.9.2 HOME: ECO LIFE BEING .. one chain by SELECT (no wrap), a HOME tap the next group; tabs, crumb, n/7 (V10.7.62: LIFE)", ok);
|
||||
turn(EN_SELECT, 2); frame(); /* BEING (V10.7.66: ROUTES gone, the macros FX >
|
||||
* PUNCH IN's) */
|
||||
ok = home_level() == 1u && !home_set() && !home_macros() && lz_count_is("3/10");
|
||||
ok = home_level() == 1u && !home_set() && !home_macros() && lz_count_is("3/11");
|
||||
{ /* (V10.8.56) VISUAL, BEING's second page: a figure from a seed; KNOB 1 COMPLEX, OCT+ a new one ("VISUAL #n") */
|
||||
static uint16_t a[240 * 140];
|
||||
uint16_t sd;
|
||||
turn(EN_SELECT, 1); frames(4);
|
||||
ok &= home_vis() && home_level() == 1u && home_set() && lz_crumb_is("HOME \xB7 BEING \xB7 VISUAL") && lz_count_is("4/11") &&
|
||||
vis_seed != 0u && vis_v[0] == 50;
|
||||
turn(EN_K1, 4); frame();
|
||||
ok &= vis_v[0] > 50 && !strncmp(ui.col[0], "COMPLEX|", 8);
|
||||
sd = vis_seed;
|
||||
fm1_ms += 777u;
|
||||
press(B_OCTUP); frame();
|
||||
ok &= vis_seed != sd && !strncmp(ui.msg, "VISUAL #", 8);
|
||||
for (c = 0; c < NTRK; c++) trk[c].peak = 9000;
|
||||
frames(8);
|
||||
memcpy(a, host_screen + LZ_GRAPH_Y * 240, sizeof a);
|
||||
frames(16);
|
||||
ok &= memcmp(a, host_screen + LZ_GRAPH_Y * 240, sizeof a) != 0; /* (it moves) */
|
||||
turn(EN_SELECT, -1); frame();
|
||||
ok &= home_level() == 1u && !home_set() && !home_vis();
|
||||
bad += check("V10.8.56 HOME > VISUAL: BEING's second page, KNOB 1 COMPLEX, OCT+ a new figure (VISUAL #n), it moves", ok);
|
||||
ok = 1;
|
||||
}
|
||||
fm1_ms += 1000u;
|
||||
turn(EN_SELECT, 4); frame(); /* GEN 1 (V10.8.2: past the song's three) */
|
||||
turn(EN_SELECT, 5); frame(); /* GEN 1 (V10.8.2: past the song's three; V10.8.56: VISUAL) */
|
||||
ok &= gen_on() && gen_page() == 0u && home_level() == 2u && lz_on() && lz_tab_lit(3) && lz_crumb_is("HOME \xB7 GENERATOR \xB7 GENERATOR 1") &&
|
||||
lz_count_is("7/10");
|
||||
lz_count_is("8/11");
|
||||
k = gp.genre;
|
||||
{ /* (V10.7.22, the owner) PRESETS on GEN: the sound, as on every page but SEQ's; the GENRE only by KNOB 1 */
|
||||
uint32_t pr = TSEL->preset, en = TSEL->eng_req;
|
||||
@@ -12241,15 +12291,15 @@ static int test_lz_home(void)
|
||||
ok &= gp.genre == (k == GEN_EXPLORE ? 0u : k == NGENRE ? GEN_EXPLORE : k + 1u); /* KNOB 1: the GENRE, its order
|
||||
* (0.8.6: EXPLORE, RANDOM, the genres) */
|
||||
turn(EN_SELECT, 1); frame();
|
||||
ok &= gen_on() && gen_page() == 1u && lz_crumb_is("HOME \xB7 GENERATOR \xB7 GENERATOR 2") && lz_count_is("8/10");
|
||||
turn(EN_SELECT, -5); frame(); /* back: BEING, GEN shut */
|
||||
ok &= gen_on() && gen_page() == 1u && lz_crumb_is("HOME \xB7 GENERATOR \xB7 GENERATOR 2") && lz_count_is("9/11");
|
||||
turn(EN_SELECT, -6); frame(); /* back: BEING, GEN shut */
|
||||
ok &= !ui.confirm && ui.home && home_level() == 1u && !home_set();
|
||||
turn(EN_SELECT, 4); frame();
|
||||
turn(EN_SELECT, 5); frame();
|
||||
ok &= gen_on() && gen_page() == 0u;
|
||||
press(B_HOME); frame(); /* a HOME tap on GEN: round to ECO */
|
||||
ok &= !ui.confirm && ui.home && home_level() == 0u && !home_set();
|
||||
bad += check("0.9.2 HOME: ROUTES, then GEN 1..3 (KNOB 1 its GENRE, PRESETS the sound); SELECT back out of GEN; a HOME tap on GEN: ECO", ok);
|
||||
turn(EN_SELECT, 7); frame(); /* GEN 2 */
|
||||
turn(EN_SELECT, 8); frame(); /* GEN 2 */
|
||||
ok = gen_on() && gen_page() == 1u;
|
||||
press(B_ENV); frame(); /* not modal: a section's button leaves it */
|
||||
ok &= !ui.confirm && !ui.home && str_eq(cur_page()->title, "ENV");
|
||||
@@ -12263,14 +12313,14 @@ static int test_lz_home(void)
|
||||
bad += check("0.9.2 HOME: GEN is HOME's pages, not modal (ENV leaves it, HOME comes back to GEN 2, ALGORITHM works); OCT- ECO", ok);
|
||||
{ /* (V10.8, testers) GEN's GENRE kept when GEN is left and opened again */
|
||||
uint32_t g0;
|
||||
turn(EN_SELECT, 6); frame(); /* GEN 1 */
|
||||
turn(EN_SELECT, 7); frame(); /* GEN 1 */
|
||||
ok = gen_on() && gen_page() == 0u;
|
||||
turn(EN_K1, 3); frame(); /* (V10.7.22: KNOB 1 the GENRE; PRESETS the sound) */
|
||||
g0 = gp.genre;
|
||||
press(B_OCTDN); frame(); /* out (ECO) */
|
||||
open_family(FAM_ENV); frame();
|
||||
go_home(); frames(64);
|
||||
turn(EN_SELECT, 6); frame();
|
||||
turn(EN_SELECT, 7); frame();
|
||||
ok &= gen_on() && gp.genre == g0 && g0 != GEN_EXPLORE;
|
||||
press(B_OCTDN); frame();
|
||||
bad += check("V10.8 GEN: the GENRE picked stays after leaving GEN (was EXPLORE again each visit)", ok);
|
||||
@@ -13263,13 +13313,12 @@ static int test_lz_reach(void)
|
||||
go_home(); frames(32); press(B_HOME); frames(32);
|
||||
turn(EN_SELECT, -12); frames(2);
|
||||
for (e = 0; e < 12u; e++) {
|
||||
if (e == 3u) continue; /* (V10.7.66: ROUTES gone) */
|
||||
n += nav_cur() == e && (e >= HE_GEN ? gen_on() && gen_page() == e - HE_GEN :
|
||||
e >= HE_SONG ? !ui.home && song_pg(ui.page) :
|
||||
ui.home && home_level() == HL[e] && home_set() == (e & 1u));
|
||||
turn(EN_SELECT, 1); frames(2);
|
||||
}
|
||||
okh &= n == 10u; /* (V10.8: TIMELINE, PARTS gone; V10.8.2: TAKE) */
|
||||
okh &= n == 11u; /* (V10.8: TIMELINE, PARTS gone; V10.8.2: TAKE; V10.8.56: VISUAL in ROUTES' place) */
|
||||
press(B_OCTDN); frames(2);
|
||||
}
|
||||
}
|
||||
@@ -13282,7 +13331,7 @@ static int test_lz_reach(void)
|
||||
bad += check("0.9.2 reach: every page each engine shows (LOFI BYTE, LOAD ECO too) by its button and SELECT alone", ok);
|
||||
bad += check("0.9.2 reach: every parameter of those pages (the ids on them)", okp);
|
||||
bad += check("0.9.2 reach: every 0.9.1 lens page at its 0.9.1 level (drawn as it was; NOTE's STEP view merged)", okold);
|
||||
bad += check("0.9.2 reach: HOME's ten pages by SELECT (ECO LIFE BEING JAM TAKE ARRANGE GEN 1..4; V10.8.2)", okh);
|
||||
bad += check("0.9.2 reach: HOME's eleven pages by SELECT (ECO LIFE BEING VISUAL JAM TAKE ARRANGE GEN 1..4; V10.8.56)", okh);
|
||||
ui_power_on();
|
||||
return bad;
|
||||
}
|
||||
|
||||
+1524
-1521
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user