mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-05 12:24:42 +01:00
V10.8.59: VISUAL from the song, very reactive to every hit; SCL lighter and PER1/PER2 settings no longer read (room)
(the owner: "por cada canción una visual bastante diferente, muy audio reactiva: que cambie la forma, la posición por
cada golpe"; "todas deformadas y fusionadas con este motor"; option 2 for the room: SCL's drawings and the old settings)
- VISUAL (codex/visual-react-wip 12906768): the scene's seed from the song (gen.c vis_song: GEN's seed and genre, MOOD
and ENERGY the motion; else the project's sounds; the section A..D a variant of the same family); a track's new note
a hit: a kick jumps and thumps the scene and eases back, a snare pulls the strips apart, a note jumps the field's
lobes; one field (vp) bends every layer (mesh, skull, head, rings, the data's lines), REACT scales it.
- The room (the image was 708 B over):
- SCL > CHORD: TYPE . VOICING no longer repeated under the chord's name (the page's cards say them); each degree's
tag names its triad (chord_nm, as PROG: "D-", "E°", "F") instead of the chord TYPE would build there; the short
chord names gone. "CHORD OFF" as the name when off.
- SCL > PROG: "BAR n" no longer on every card (the cards' order and the bar under them say it).
- SCL > KEY: the scales' long names in the Bluetooth segment (the short one if the segment is missing).
- Settings: PER1 and PER2 (Felucca's first, before JIANT 0.6) no longer migrated: refused, the global settings
start from the defaults once. PER3 and PER4 read as before.
- Not back for room: the hats' sparks, the note's name on the label, the drift, the MIXED duo's step every fourth kick.
- tests: ui_test (two GEN seeds two scenes, the same seed the same; a new note a hit); settings_test (PER1/PER2 refused).
Layout recorded again (FELUCCA_REPIN=keep); the plain build passes. Image 584196 of 584336 (140 B free), BT segment
73700 of 73728 (28 B free), RAM code unchanged (32700). 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:
7 files changed
+1730
-1749
No files matched your search
@@ -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.58" /* (2026-11-27) V10.8.58 (the owner: "veamos qué se puede hacer con menos espacio"): VISUAL composed in the same room: the data a few boxes apart with their callouts, a head with crown, temples, cheekbones, jaw and neck (no egg), WHEEL's worms in some scenes on the other third, the core and the ground placed and sized by the seed, the mesh or its rows alone (topographic), the skull's spokes with square tips, PALETTE every layer (MIXED: one of three duos a scene); V10.8.57 (the owner: "podría ser mucho mejor", references "anatomía cibernética y data", "una mezcla de todo eso", the whole screen, no shape at several sizes): HOME > VISUAL the whole screen (a knob a line at the foot), a composition from a seed: a ground (an isometric mesh of the output's history with digits, stars out of a vanishing point, a rain of glyphs), WHEEL's worms, a core on a third (a radial skull diagram, a scanned head with its thermal scan lines, or a creature), the data (tracking boxes joined, live numbers); KNOB 1 DENSITY, 3 PALETTE MIXED THERMAL ORG/BLUE GRN/RED AMBER MONO; the saver another every 30 s; 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: decayLine truncated
|
||||
#define FELUCCA_VERSION "V10.8.59" /* (2026-11-27) V10.8.59 (the owner: "una visual por canción, muy audio reactiva, todas deformadas y fusionadas"; SCL simplified and PER1/PER2 settings no longer read for the room): VISUAL from the song (GEN seed, genre, mood, energy; else the project), hits (kick jump and thump, snare glitch, note lobes), one field bends every layer; V10.8.58 (the owner: "veamos qué se puede hacer con menos espacio"): VISUAL composed in the same room: the data a few boxes apart with their callouts, a head with crown, temples, cheekbones, jaw and neck (no egg), WHEEL's worms in some scenes on the other third, the core and the ground placed and sized by the seed, the mesh or its rows alone (topographic), the skull's spokes with square tips, PALETTE every layer (MIXED: one of three duos a scene); V10.8.57 (the owner: "podría ser mucho mejor", references "anatomía cibernética y data", "una mezcla de todo eso", the whole screen, no shape at several sizes): HOME > VISUAL the whole screen (a knob a line at the foot), a composition from a seed: a ground (an isometric mesh of the output's history with digits, stars out of a vanishing point, a rain of glyphs), WHEEL's worms, a core on a third (a radial skull diagram, a scanned head with its thermal scan lines, or a creature), the data (tracking boxes joined, live numbers); KNOB 1 DENSITY, 3 PALETTE MIXED THERMAL ORG/BLUE GRN/RED AMBER MONO; the saver another every 30 s; 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 stepLine truncated
|
||||
#endif
|
||||
#if FELUCCA_OTA && !FELUCCA_FLASH
|
||||
#error "FELUCCA_OTA needs FELUCCA_FLASH"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-3.0-only */
|
||||
/* Shared PER4 layout: each feature updates only its own fields, preserving
|
||||
* the other feature's saved preferences when either is built independently.
|
||||
* PER1/PER2 are upstream; PER3 added bold; PER4 added favorites.
|
||||
* PER1/PER2 are upstream; PER3 added bold; PER4 added favorites (V10.8.59: PER1/PER2 no longer read).
|
||||
* palette: UI_PAL_TAG + index; an old id (below 20, earlier firmware) is migrated on import.
|
||||
* bold: no longer used (one font weight); kept as it was saved, unless it holds the HOLD setting (panel.c).
|
||||
* zoom: no longer used (the large readout); kept as it was saved, unless it holds the LEDS setting (panel.c).
|
||||
@@ -39,18 +39,10 @@ static __attribute__((noinline)) void settings_fix15(uint8_t *f)
|
||||
}
|
||||
static int settings_import(persist_t *p, int n)
|
||||
{
|
||||
/* (V10.8.59, the owner's pick for VISUAL's room) PER4 and PER3 are read: PER1 and PER2 (Felucca's first) are no
|
||||
* longer migrated (their global settings start from the defaults once) */
|
||||
int current = n == (int)sizeof *p && p->magic == PERSIST_MAGIC;
|
||||
int old3 = n == (int)(sizeof *p - sizeof p->favorites) && p->magic == 0x50455233u;
|
||||
int old2 = n == (int)(sizeof *p - sizeof p->favorites - sizeof p->bold) && p->magic == 0x50455232u;
|
||||
int old1 = n == (int)(8u + sizeof(panel_t)) && p->magic == 0x50455231u;
|
||||
if (!(current || old3 || old2 || old1)) return 0;
|
||||
if (old1) {
|
||||
panel_t old;
|
||||
memcpy(&old, (uint8_t *)p + 8, sizeof old);
|
||||
p->panel = old;
|
||||
p->lowcut = p->zoom = 0;
|
||||
}
|
||||
if (old1 || old2) p->bold = 0;
|
||||
if (!current && !(n == (int)(sizeof *p - sizeof p->favorites) && p->magic == 0x50455233u)) return 0;
|
||||
if (!current) memset(&p->favorites, 0, sizeof p->favorites);
|
||||
p->favorites.factory[15][20] = 0; /* SKIN (JIANT 0.8.9 .. V10.7.22; 3 was AIR, 1 BOTTOM, 2 HUD; retired V10.7.23):
|
||||
* COLORS, the one skin (0, as older firmware reads it) */
|
||||
|
||||
+16
-34
@@ -162,7 +162,7 @@ static uint16_t note_col(uint32_t n)
|
||||
/* (V10.8.19, the owner: "big, clear, the notes it uses") KEY: "D MAJOR" large (the scale's whole name, AF_L, else M,
|
||||
* else its short one); the scale's notes as chips in their colours from ROOT (ROOT framed); an octave of keys, those
|
||||
* lit, each its degree (1 ..) on it */
|
||||
static const char *const SCL_LONG[] = {"CHROMATIC", "MAJOR", "MINOR", "DORIAN", "MIXOLYDIAN", "PENTATONIC", "MINOR PENTA",
|
||||
static const char SCL_LONG[16][15] BTAPP_RO = { /* (V10.8.59: in the Bluetooth segment, room) */"CHROMATIC", "MAJOR", "MINOR", "DORIAN", "MIXOLYDIAN", "PENTATONIC", "MINOR PENTA",
|
||||
"HARMONIC MIN", "PHRYGIAN", "LYDIAN", "LOCRIAN", "MELODIC MIN", "BLUES", "WHOLE TONE",
|
||||
"DIM HALF-WHOLE", "DIM WHOLE-HALF"};
|
||||
static __attribute__((noinline)) void graph_key(const track_t *t, const page_t *pg)
|
||||
@@ -174,9 +174,9 @@ static __attribute__((noinline)) void graph_key(const track_t *t, const page_t *
|
||||
(void)pg;
|
||||
str_cpy(b, NN12[rt], 4);
|
||||
str_cpy(b + str_len(b), " ", 2);
|
||||
str_cpy(b + str_len(b), SCL_LONG[(uint32_t)t->p[P_SCALE] % NELEM(SCL_LONG)], 30 - str_len(b));
|
||||
if (bt_hw_seg()) str_cpy(b + str_len(b), SCL_LONG[(uint32_t)t->p[P_SCALE] % NELEM(SCL_LONG)], 30 - str_len(b));
|
||||
if (text_w(f, b) > 228) f = &AF_M;
|
||||
if (text_w(f, b) > 228) { b[str_len(NN12[rt]) + 1u] = 0; param_format(&TP[P_SCALE], t->p[P_SCALE], b + str_len(b), &u); }
|
||||
if (text_w(f, b) > 228 || !bt_hw_seg()) { /* (too long, or the segment missing: the short name) */ b[str_len(NN12[rt]) + 1u] = 0; param_format(&TP[P_SCALE], t->p[P_SCALE], b + str_len(b), &u); }
|
||||
cv_text(6, 4 - (f == &AF_L ? AF_L_CAP_Y : AF_M_CAP_Y), f, b, T_TEXT);
|
||||
for (i = 0; i < 12u; i++) /* dg[note]: its degree (1 ..), 0 not in the scale */
|
||||
dg[(rt + i) % 12u] = mask >> i & 1u ? ++n : 0u;
|
||||
@@ -201,13 +201,11 @@ static __attribute__((noinline)) void graph_key(const track_t *t, const page_t *
|
||||
}
|
||||
}
|
||||
/* (V10.8.19, JIANT BYTE's CHORD redesign (GPL, as BYTE has it), the owner's pick) a chord's name from its notes (pn[0]
|
||||
* the root): long "D MIN ADD9", short the quality alone "MIN9" */
|
||||
static void chord_label(const uint8_t *pn, uint32_t n, char *o, int lng)
|
||||
* the root): "D MIN ADD9" (V10.8.59: the short form gone; the degrees' tags name their triads, chord_nm) */
|
||||
static void chord_label(const uint8_t *pn, uint32_t n, char *o)
|
||||
{
|
||||
static const char LQ[12][10] = {" DIM7", " HALF-DIM", " DIM", " AUG", " SUS4", " SUS2", " MIN7", " MIN MAJ7", " MIN", " MAJ7",
|
||||
" 7", " MAJ"};
|
||||
static const char SQ[15][5] = {"DIM7", "M7B5", "DIM", "AUG", "SUS4", "SUS2", "MIN7", "MIN", "MIN", "MAJ7", "7", "MAJ",
|
||||
"MIN9", "MAJ9", "9"}; /* (the last three: 6, 9, 10 with a ninth) */
|
||||
uint32_t m = 0, k, q;
|
||||
int mi, dim, aug, s4, s2, b7, M7, six, nine, d7;
|
||||
for (k = 1; k < n && k < 8u; k++) m |= 1u << (((uint32_t)pn[k] + 120u - pn[0]) % 12u);
|
||||
@@ -215,16 +213,10 @@ static void chord_label(const uint8_t *pn, uint32_t n, char *o, int lng)
|
||||
s4 = !(m >> 3 & 1) && !(m >> 4 & 1) && (m >> 5 & 1); s2 = !(m >> 3 & 1) && !(m >> 4 & 1) && !s4 && (m >> 2 & 1);
|
||||
b7 = m >> 10 & 1; M7 = m >> 11 & 1; six = (m >> 9 & 1) && !dim; nine = (m >> 2 & 1) && !s2; d7 = dim && (m >> 9 & 1);
|
||||
q = dim ? (d7 ? 0u : b7 ? 1u : 2u) : aug ? 3u : s4 ? 4u : s2 ? 5u : mi ? (b7 ? 6u : M7 ? 7u : 8u) : M7 ? 9u : b7 ? 10u : 11u;
|
||||
if (lng) {
|
||||
str_cpy(o, NN12[pn[0] % 12u], 24);
|
||||
str_cpy(o + str_len(o), LQ[q], 24);
|
||||
if (six && !d7) str_cpy(o + str_len(o), " 6", 24);
|
||||
if (nine) str_cpy(o + str_len(o), b7 || M7 ? " 9" : " ADD9", 24);
|
||||
return;
|
||||
}
|
||||
str_cpy(o, SQ[nine && (q == 6u || q == 9u || q == 10u) ? (q == 6u ? 12u : q == 9u ? 13u : 14u) : q], 12);
|
||||
if (six && !d7) str_cpy(o + str_len(o), "6", 12);
|
||||
if (nine && !b7 && !M7) str_cpy(o, mi ? "MI+9" : dim ? "DIM+9" : "ADD9", 12);
|
||||
str_cpy(o, NN12[pn[0] % 12u], 24);
|
||||
str_cpy(o + str_len(o), LQ[q], 24);
|
||||
if (six && !d7) str_cpy(o + str_len(o), " 6", 24);
|
||||
if (nine) str_cpy(o + str_len(o), b7 || M7 ? " 9" : " ADD9", 24);
|
||||
}
|
||||
/* CHORD: the last key's chord named large (yellow while it sounds, else the track's colour), TYPE . VOICING under it; two
|
||||
* octaves of keys, the chord's notes lit (its root the track's colour) and each its interval; the seven degrees as tags,
|
||||
@@ -235,29 +227,20 @@ static __attribute__((noinline)) void graph_chord(const track_t *t)
|
||||
uint16_t tc = TRK_COL[(uint32_t)(t - trk) % 6u];
|
||||
uint32_t key = last_note, kd, pd = 99u, snd = 0, k, n;
|
||||
uint8_t deg[12], pn[8];
|
||||
const char *u = "";
|
||||
char b[32], v[12], nm[24];
|
||||
char nm[24];
|
||||
for (i = 0; i < 12u; i++)
|
||||
if (mask >> i & 1u && c < 7u)
|
||||
deg[c++] = (uint8_t)i;
|
||||
if (t->p[P_CHRD]) {
|
||||
param_format(&CHORD_DESC[0], t->p[P_CHRD], b, &u);
|
||||
str_cpy(b + str_len(b), " \xB7 ", 32 - str_len(b));
|
||||
param_format(&CHORD_DESC[1], t->p[P_CVOI], v, &u);
|
||||
str_cpy(b + str_len(b), v, 32 - str_len(b));
|
||||
} else
|
||||
str_cpy(b, "CHORD OFF", 32);
|
||||
/* (V10.8.59) TYPE . VOICING no longer repeated under the name: the page's cards say them */
|
||||
kd = (key + 12u - rt) % 12u;
|
||||
for (k = 0; k < NVOICE; k++) snd |= t->v[k].active && t->v[k].gate;
|
||||
for (d = 0; d < c; d++) if (deg[d] == kd) pd = d;
|
||||
n = t->p[P_CHRD] ? chord_peek(t, key, pn) : 0u;
|
||||
if (n == 1u) { /* (V10.8.20) CHORD on, one note sounds: say why (a kit, not POLY) */
|
||||
str_cpy(nm, drum_track(t) ? "DRUM TRACK" : "NOT POLY", sizeof nm);
|
||||
b[0] = 0;
|
||||
n = 0;
|
||||
} else if (t->p[P_CHRD]) chord_label(pn, n, nm, 1); else str_cpy(nm, "OFF", sizeof nm);
|
||||
} else if (t->p[P_CHRD]) chord_label(pn, n, nm); else str_cpy(nm, "CHORD OFF", sizeof nm);
|
||||
cv_text(10, 4 - AF_L_CAP_Y + 1, text_w(&AF_L, nm) <= 220 ? &AF_L : &AF_M, nm, snd ? HUD_YE : t->p[P_CHRD] ? tc : T_DIM);
|
||||
cv_free_text(10, 26 - AF_X_CAP_Y + 1, &AF_X, b, T_MID, cv_bg, 220);
|
||||
{ /* the keys: two octaves from the C under its lowest note (ui_gx.c gx_keys), each note its interval */
|
||||
static const char IV[12][3] = {"R", "-9", "9", "-3", "3", "4", "-5", "5", "#5", "6", "-7", "7"};
|
||||
uint32_t lo = n ? pn[0] : key, base = lo / 12u * 12u, r;
|
||||
@@ -270,15 +253,14 @@ static __attribute__((noinline)) void graph_chord(const track_t *t)
|
||||
}
|
||||
gx_keys(8, 40, 2u, 16, 52, col, lab);
|
||||
}
|
||||
for (d = 0; d < c; d++) { /* the degrees: numeral tag, its chord's short name */
|
||||
uint8_t nt[8];
|
||||
for (d = 0; d < c; d++) { /* the degrees: numeral tag, its triad (chord_nm; a mode of seven) */
|
||||
int32_t x = 8 + (int32_t)d * 32, tw = text_w(&AF_X, RN7[d]) + 4;
|
||||
uint32_t m = n ? chord_peek(t, 48u + rt + deg[d], nt) : 0u, on = d == pd;
|
||||
uint32_t on = d == pd;
|
||||
uint16_t bg = on ? HUD_YE : d == 0u ? tc : HUD_BL;
|
||||
char sn[12];
|
||||
char sn[6];
|
||||
cv_rect(x, 100, tw, 11, bg);
|
||||
cv_text_on(x + 2, 101 - AF_X_CAP_Y, &AF_X, RN7[d], on || d == 0u ? 0x0000u : T_TEXT, bg);
|
||||
if (m) { chord_label(nt, m, sn, 0); cv_text(x, 116 - AF_X_CAP_Y, &AF_X, sn, on ? HUD_YE : T_TEXT); }
|
||||
if (c == 7u) { chord_nm(sn, deg, d, rt); cv_text(x, 116 - AF_X_CAP_Y, &AF_X, sn, on ? HUD_YE : T_TEXT); }
|
||||
}
|
||||
}
|
||||
static void graph_arp(const track_t *t)
|
||||
|
||||
@@ -159,9 +159,7 @@ static __attribute__((noinline)) void graph_harm(void)
|
||||
cv_rect(x, 2, w - 6, 72, c);
|
||||
if (off) str_cpy(b, "-", 2); else chord_nm(b, pc, d, (uint32_t)t->p[P_ROOT]);
|
||||
cv_text_in(x, 12, w - 6, text_w(&AF_L, b) <= w - 8 && large_face_has(b) ? &AF_L : &AF_M, b, ink, c);
|
||||
if (!off) cv_text_in(x, 44, w - 6, &AF_X, RN7[d], ink, c);
|
||||
str_cpy(b, "BAR ", 8); fmt_int(b + 4, (int32_t)i + 1);
|
||||
cv_text_in(x, 58, w - 6, &AF_X, b, ink, c);
|
||||
if (!off) cv_text_in(x, 50, w - 6, &AF_X, RN7[d], ink, c); /* (V10.8.59: "BAR n" gone, the order says it) */
|
||||
}
|
||||
cv_rect(8, 82, 218, 3, T_RAISE);
|
||||
if (now < n) cv_rect(8, 82, 218 * (int32_t)(now + 1u) / (int32_t)n, 3, T_ACCENT);
|
||||
|
||||
+4
-14
@@ -102,13 +102,11 @@ int main(void)
|
||||
assert(settings_import(&p, sizeof p - sizeof p.favorites) == 2);
|
||||
assert(p.bold == 1 && !p.favorites.user && !p.favorites.filter);
|
||||
settings_export(&p); assert(p.bold == 1); /* favorites-only preserves PER3 font */
|
||||
p = original; p.magic = 0x50455232u;
|
||||
assert(settings_import(&p, sizeof p - sizeof p.favorites - sizeof p.bold) == 2);
|
||||
assert(!p.bold && !p.favorites.user && settings.zoom && panel.enc[0] == 3);
|
||||
p = original; p.magic = 0x50455232u; /* (V10.8.59) PER2 and PER1 no longer read */
|
||||
assert(settings_import(&p, sizeof p - sizeof p.favorites - sizeof p.bold) == 0);
|
||||
p = original; p.magic = 0x50455231u;
|
||||
memcpy((uint8_t *)&p + 8, &PANEL_DEFAULT, sizeof(panel_t));
|
||||
assert(settings_import(&p, 8 + sizeof(panel_t)) == 2);
|
||||
assert(!p.bold && !p.zoom && !p.lowcut && !p.favorites.user && panel.magic == PANEL_MAGIC);
|
||||
assert(settings_import(&p, 8 + sizeof(panel_t)) == 0);
|
||||
{ /* HOLD: in the retired bold field; older records (bold 0 / 1) are 0.4 s, and stay as saved */
|
||||
p = original; p.bold = 0;
|
||||
assert(settings_import(&p, sizeof p) == 1 && settings_hold == HOLD_DEF && HOLD_MS[settings_hold] == 400u);
|
||||
@@ -123,10 +121,6 @@ int main(void)
|
||||
settings_export(&p);
|
||||
assert(p.bold == 0u && settings_import(&p, sizeof p) == 1 && settings_hold == HOLD_DEF);
|
||||
assert(!hold_stored_ok(2u) && !hold_stored_ok(HOLD_TAG + 4u) && hold_stored_ok(HOLD_TAG | 2u));
|
||||
p = original; p.magic = 0x50455231u;
|
||||
memcpy((uint8_t *)&p + 8, &PANEL_DEFAULT, sizeof(panel_t));
|
||||
settings_hold = 2;
|
||||
assert(settings_import(&p, 8 + sizeof(panel_t)) == 2 && settings_hold == HOLD_DEF);
|
||||
}
|
||||
{ /* LEDS: in the retired zoom field; older records (zoom 0 / 1) are DIM, and stay as saved; idempotent */
|
||||
persist_t q;
|
||||
@@ -164,10 +158,6 @@ int main(void)
|
||||
settings_export(&p);
|
||||
assert(p.zoom == 0u);
|
||||
}
|
||||
p = original; p.magic = 0x50455231u; /* PER1: no zoom field, DIM */
|
||||
memcpy((uint8_t *)&p + 8, &PANEL_DEFAULT, sizeof(panel_t));
|
||||
settings_leds = LEDS_INV;
|
||||
assert(settings_import(&p, 8 + sizeof(panel_t)) == 2 && settings_leds == LEDS_DIM);
|
||||
}
|
||||
#ifdef FELUCCA_FAVORITES
|
||||
{ /* 1.1 CLICK / CLICK LEVEL / COUNT-IN (ui.c ui_rec_prefs, favorites.factory[15][28]): 0 in every older record
|
||||
@@ -200,5 +190,5 @@ int main(void)
|
||||
#endif
|
||||
assert(settings_import(&p, 3) == 0 && settings_import(&p, -1) == 0);
|
||||
assert(settings_import(&p, sizeof p - 1) == 0);
|
||||
puts("Settings: PER1/PER2/PER3 migration, palette ids, calibration, HOLD, LEDS, CLICK / COUNT-IN and independent feature preservation passed.");
|
||||
puts("Settings: PER3 migration (PER1/PER2 refused), palette ids, calibration, HOLD, LEDS, CLICK / COUNT-IN and independent feature preservation passed.");
|
||||
}
|
||||
@@ -12279,6 +12279,26 @@ static int test_lz_home(void)
|
||||
bad += check("V10.8.56 HOME > VISUAL: BEING's second page, KNOB 1 DENSITY, OCT+ a new figure (VISUAL #n), it moves; V10.8.57 the whole screen", ok);
|
||||
ok = 1;
|
||||
}
|
||||
{ /* (V10.8.59) VISUAL from the song: two GEN pieces' seeds two scenes, the same seed the same; a new note a hit */
|
||||
uint8_t dr = song_draft;
|
||||
uint16_t ps = gp.seed;
|
||||
uint32_t h1, h2, h3, ki;
|
||||
int okv = 1;
|
||||
song_draft = 1;
|
||||
gp.seed = 1111; h1 = vis_song();
|
||||
gp.seed = 2222; h2 = vis_song();
|
||||
gp.seed = 1111; h3 = vis_song();
|
||||
okv &= h1 != h2 && h1 == h3;
|
||||
song_draft = dr; gp.seed = ps;
|
||||
memset(vq.e, 0, sizeof vq.e);
|
||||
anim_fr++; vis_tick();
|
||||
trk[0].seq_notes[0] = 64; trk[0].seq_n = 1; trk[0].seq_idx++;
|
||||
anim_fr++; vis_tick(); /* (once a frame) */
|
||||
ki = (uint32_t)(VQ_KI + VQ_SN + VQ_HA + VQ_ME);
|
||||
okv &= ki > 100u;
|
||||
trk[0].seq_n = 0;
|
||||
bad += check("V10.8.59 VISUAL: the song's seed (two GEN seeds two scenes, the same seed the same); a new note on a track a hit", okv);
|
||||
}
|
||||
fm1_ms += 1000u;
|
||||
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") &&
|
||||
|
||||
+1684
-1685
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user