mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-05 12:24:42 +01:00
V10.8.18: the boot "Seis hilos" (the owner's pick): the six tracks' threads from the screen's edges onto the logo's start, the logo written smooth (an antialiased round pen ~4 px stamped a pixel apart along its strokes, the same points), a white flash at its start, six dots in the tracks' colours, the version and "by Juan Jiant" fading in (~1.9 s; ANIM OFF: at once; the threads in the Bluetooth segment's room); its flash from the hints: the teaching hints (EUCLID's, MUTATE's, AUTOMATION's, PUNCH LANE's, at most twice ever) gone, fourteen hints shorter; dead code after V10.8.14-17 (ENV TRACKS' signature term, the four mixer cards, graph_proj's ar, env_now); tests: ui_render builds again (the LIVE scenes, ENV TRACKS), anim_test GEN still, ui_test the hints gone
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
17 files changed
+2403
-2582
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.17" /* (2026-11-21) 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 an LFO on the 1/8s, kept: not slowed to a breath); DRUM-X KIT's SNAP (was ATTACK), SOUND 3's SHORT (a filter's quick noise, was SNAP). V10.7.63: GENE: DUBSTEP SHOEGAZE METALCORE, each genre its FX STYLE (the drive where it belongLine truncated
|
||||
#define FELUCCA_VERSION "V10.8.18" /* (2026-11-21) 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 an LFO on the 1/8s, kept: not slowed to a breath); DRUM-X KIT's SNAP (was ATTACK), SOUND 3's SHORT (a filter's quick noise, was SNAP). V10.7.63: GENE: DUBSTEP SHOEGAZE METALCORE, each genre its FX STYLE (the drive where it belongLine truncated
|
||||
#endif
|
||||
#if FELUCCA_OTA && !FELUCCA_FLASH
|
||||
#error "FELUCCA_OTA needs FELUCCA_FLASH"
|
||||
|
||||
+1
-1
@@ -3464,7 +3464,7 @@ static void gen_panel(void)
|
||||
graph_score(1);
|
||||
else {
|
||||
proj_nofoot = 1;
|
||||
graph_proj(0);
|
||||
graph_proj();
|
||||
proj_nofoot = 0;
|
||||
}
|
||||
cv_rect(0, 124, 240, 16, T_SURF);
|
||||
|
||||
@@ -38,7 +38,7 @@ static __attribute__((noinline)) void trackgen_make(void)
|
||||
if(!bt_hw_seg()) {seg_missing();return;} /* (V10.6y: gen.c gen_pick in the segment) */
|
||||
track_t temp;
|
||||
_Static_assert(sizeof temp+sizeof save<8192,"track generator main-stack budget (15.75 KiB stack)");
|
||||
if(!trackgen_ok(t)||chain_busy()) {ui_message("STOP SONG TO EDIT");return;}
|
||||
if(!trackgen_ok(t)||chain_busy()) {ui_message("STOP THE SONG FIRST");return;}
|
||||
/* These pattern helpers never write gmut_name (only gen_make does). */
|
||||
memset(&temp,0,sizeof temp);memcpy(temp.p,t->p,sizeof temp.p);
|
||||
temp.eng_req=t->eng_req;temp.engine=t->engine;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* zoom: no longer used (the large readout); kept as it was saved, unless it holds the LEDS setting (panel.c).
|
||||
* favorites.factory[15][23]: JIANT_PAL_SEEN (JIANT 0.6.81). [15][20]: SKIN (JIANT 0.8.9; 0 = COLORS; 0.9.7: 3 AIR, new settings'). [15][19]: SCOPE (0.9.7; 0 = OFF). favorites.factory[15][28..31]: CLICK / CLICK LEVEL / COUNT-IN (1.1), STYLE, MENU's flags, [31] the layers seen (0.9.5: unused, kept as saved) (bytes no
|
||||
* engine uses; 0 in older settings = every one's default); [15][27]: SCREEN OFF (1.1.5; 0 = 30 MIN, the default).
|
||||
* [15][0..12] (0.9.5): how many times each teaching hint has been given (ui.c hint_given; 0 in older settings = not yet).
|
||||
* [15][0..12] (0.9.5 .. V10.8.17): the teaching hints' counts (gone in V10.8.18: kept as saved, unused).
|
||||
* MENU's flags (ui.c PREF_*) are append-only bits whose 0 is the default: BPM LOCK (16) is clear in every older setting
|
||||
* = unlocked, LARGE (32) = OFF, RESTORE LAST OFF (128, 1.2) = ON, read as saved (nothing to migrate, so importing twice changes nothing). */
|
||||
typedef struct {
|
||||
|
||||
+2
-18
@@ -324,14 +324,8 @@ static int32_t ratio_d(const param_desc_t *d, int32_t v) { return ratio_of(d->mi
|
||||
#define LG_H_GRAPH 62
|
||||
#define LZ_LG_Y_GRAPH 150 /* (0.8.5) .. under a lens's tabs: the tall cards 42..146, the strip 150..212 */
|
||||
|
||||
/* (0.9.5) the hints a page gives ("OCT+ KEEP GLO+A4 FREEZE"): only once the page has been dwelt on HINT_DWELL_MS (never
|
||||
* while SELECT walks past it), each at most HINT_MAX times ever. The count kept with the settings, a byte a hint in engine
|
||||
* 15's spare favourite bytes 0..12 (no engine 15: 0 in older settings, a hint not yet given; 4..12 held the layer buttons'
|
||||
* "HOLD [X] QUICK" counts, gone: kept as saved, unused); INIT SYSTEM starts them over */
|
||||
enum { HK_NONE, HK_MOTION, HK_PUNCH, HK_EUCLID, HK_N };
|
||||
#define HINT_DWELL_MS 800u
|
||||
#define HINT_MAX 2u
|
||||
#define hint_given(k) (favorites.factory[15][(k)])
|
||||
/* (0.9.5 .. V10.8.17) the teaching hints (EUCLID's, MUTATE's, AUTOMATION's, PUNCH LANE's, each at most twice ever, counted in
|
||||
* engine 15's spare favourite bytes 0..12) gone in V10.8.18 for the boot's room; those bytes kept as saved, unused */
|
||||
static struct {
|
||||
uint8_t home;
|
||||
uint8_t page; /* index into PAGES */
|
||||
@@ -389,11 +383,6 @@ static struct {
|
||||
uint32_t layer_sig; /* drawn-state cache of the map */
|
||||
char msg[40]; /* (0.9.0: 40, was 24 and cut the long ones silently; longer: ellipsised, ui_say) */
|
||||
char msg2[40]; /* a second message, shown when the first is over */
|
||||
uint8_t hint_pg; /* (0.9.0) the page (+ 1, HOME 255) a page's hint (MUTATE's) was given on: gone
|
||||
* on another (ui_draw_page) */
|
||||
uint8_t hint_k; /* (0.9.5) a hint waiting for its page to be dwelt on (HK_*; 0 none: ui_layer.c hint_tick) */
|
||||
uint8_t hint_at; /* .. the page it is for (+ 1, HOME 255) */
|
||||
uint32_t hint_ms; /* .. shown since */
|
||||
uint32_t enc_t[NE];
|
||||
/* drawn-state cache */
|
||||
char col[4][56]; /* (0.6.10: was 32, a key up to 51 lost its colour / gauge / icon tail) */
|
||||
@@ -798,7 +787,6 @@ static void ui_say(const char *a, const char *b)
|
||||
ui.msg[sizeof ui.msg - 2u] = ELLIPSIS;
|
||||
ui.msg_t = 40;
|
||||
ui.msg2[0] = 0;
|
||||
ui.hint_pg = 0;
|
||||
}
|
||||
|
||||
static void ui_message(const char *s) { ui_say(s, ""); }
|
||||
@@ -910,10 +898,6 @@ static void page_entered(void)
|
||||
if (!ui.home && lock_page_ok(ui.page))
|
||||
ui.plk_src = (uint8_t)(ui.page + 1u);
|
||||
song.seq_mode = !ui.home && pg->fam == FAM_SEQ;
|
||||
ui.hint_k = ui.home ? HK_NONE : pg->graph == GR_MOTION ? HK_MOTION : pg->graph == GR_PUNCH ? HK_PUNCH :
|
||||
pg->graph == GR_EUCLID ? HK_EUCLID : HK_NONE; /* (0.9.5: its hint once dwelt on: ui_layer.c hint_tick) */
|
||||
ui.hint_at = (uint8_t)(ui.home ? 255u : ui.page + 1u);
|
||||
ui.hint_ms = fm1_ms;
|
||||
ui.entry_open = 0;
|
||||
ui.hot_t = 0; /* clear the previous page's emphasis */
|
||||
ui.act = pg->graph == GR_USER ? 4u : 0u; /* the save screen is ready for OCT+ */
|
||||
|
||||
+96
-45
@@ -1829,59 +1829,118 @@ static void draw_columns(void)
|
||||
}
|
||||
|
||||
|
||||
/* The power-on splash (main.c fm1_main, web/emu felucca_web.c; JIANT 0.5): the maker's signature ("Jiant FM1",
|
||||
* tools/gen_signature.py: 24 strokes, 214 points) written in the thermal colours, stroke by stroke as the hand went:
|
||||
* the line cold (cyan) where the pen started, hotter along its way (violet, red, orange) to yellow white where it
|
||||
* ended, the pen's tip a white point while it writes; under it, small, the version and "by Juan Jiant". Written over
|
||||
* SPL_WRITE ms (splash_write, main.c's splash loop; MENU > ANIM OFF: whole at once). Lines only, the canvas
|
||||
* redrawn a step (~700 short lines). In the saved palette (settings_init before it) */
|
||||
/* The power-on splash (main.c fm1_main, web/emu felucca_web.c; JIANT 0.5): the logo ("jiant fm" in the owner's pen,
|
||||
* ui_signature.h, tools/gen_logo.py: a point every ~3 px, bit 7 of y a stroke's start). (V10.8.18, the owner's pick
|
||||
* "Seis hilos") 0 .. SPL_IN ms: the six tracks' threads (TRK_COL) come in from the screen's edges, curving, easing out,
|
||||
* onto the logo's first point; then the logo writes itself in the thermal scale (SPL_LOGO ms, the pen's tip white),
|
||||
* a white flash at its start fading (300 ms); then six dots in the tracks' colours one by one under it and the version
|
||||
* and "by Juan Jiant" fading in. MENU > ANIM OFF: the last picture at once. The strokes are drawn smooth: each a
|
||||
* line through its points, an antialiased round pen ~4 px wide stamped along it a pixel apart (spl_seg, spl_disc:
|
||||
* the joins round; nothing new stored: the same points). In the saved palette (settings_init before it) */
|
||||
#include "ui_signature.h"
|
||||
#define SPL_WRITE 800u /* ms: the signature written (was 900; 0.6.51: 600 -> 800) */
|
||||
#define SPL_HOLD 900u /* .. then shown whole, before the UI (was 1100; 0.6.51: 500 -> 900) */
|
||||
#define SPL_SY 40 /* the signature's canvas on the screen (240 x SIG_H + 12) */
|
||||
#define SPL_TY 186 /* the two lines under it */
|
||||
#define SPL_IN 550u /* ms: the threads come in */
|
||||
#define SPL_LOGO 800u /* .. the logo written */
|
||||
#define SPL_WRITE 1750u /* .. the dots and the lines in: the animation */
|
||||
#define SPL_HOLD 150u /* .. then still, before the UI (all: ~1.9 s) */
|
||||
#define SPL_SY 40 /* the logo's canvas on the screen (240 x SIG_H + 12) */
|
||||
#define SPL_TY 198 /* the two lines under it (the dots at 188) */
|
||||
static const char *const SPLASH_LINES[] = {FELUCCA_VERSION, "by Juan Jiant"};
|
||||
static uint8_t spl_anim; /* main.c: 1 = the signature to be written (splash_write) */
|
||||
/* (V10.6k) the logo (ui_signature.h, tools/gen_logo.py: "jiant fm" in the owner's pen, a point every ~3 px) up to point
|
||||
* n (>= SIG_N: whole), a round pen 5 px wide, solid, in the thermal scale as it is written (violet to red, orange,
|
||||
* yellow), the pen's tip white while it writes (V10.6n: was an outline filled at the end). Nothing computed but
|
||||
* the colour: no curves, no creatures (the 0.5.2 signature and its beings were ~1.9 KB) */
|
||||
static uint16_t sig_col(uint32_t i) /* the thermal scale along the writing: violet, red, orange, yellow */
|
||||
static uint8_t spl_anim, spl_clr; /* main.c: 1 = the splash animated (splash_write) */
|
||||
/* an antialiased disc: centre (cx, cy) and radius r in Q4 (1/16 px), c over the canvas at strength a (0..256) */
|
||||
static __attribute__((noinline)) void spl_disc(int32_t cx, int32_t cy, int32_t r, uint16_t c, int32_t a)
|
||||
{
|
||||
return heat_col(24 + (int32_t)(i * 220u / SIG_N));
|
||||
int32_t i, j, n = (r >> 4) + 2;
|
||||
if (r < 4)
|
||||
return;
|
||||
for (j = -n; j <= n; j++)
|
||||
for (i = -n; i <= n; i++) {
|
||||
int32_t x = (cx >> 4) + i, y = (cy >> 4) + j, dx = x * 16 + 8 - cx, dy = y * 16 + 8 - cy, d = dx * dx + dy * dy, k;
|
||||
k = r > 8 && d <= (r - 8) * (r - 8) ? 256 : d >= (r + 8) * (r + 8) ? 0 : ((r + 8) * (r + 8) - d) * 256 / (32 * r);
|
||||
og_plot(x, y, c, k * a >> 8);
|
||||
}
|
||||
}
|
||||
static void splash_sig(uint32_t n)
|
||||
/* the round pen from (x0, y0) to (x1, y1) (Q4), a stamp a pixel (the joins round) */
|
||||
static __attribute__((noinline)) void spl_seg(int32_t x0, int32_t y0, int32_t x1, int32_t y1, int32_t r, uint16_t c)
|
||||
{
|
||||
uint32_t i;
|
||||
cv_begin(240, SIG_H + 12, T_BG);
|
||||
for (i = 0; i < SIG_N && i < n; i++) { /* the pen (a rounded square, 5 px), solid as it writes */
|
||||
int32_t x = (240 - SIG_W) / 2 + SIG_PTS[2u * i], y = 6 + (SIG_PTS[2u * i + 1u] & 127);
|
||||
uint16_t c = i + 1u == n && n < SIG_N ? T_TEXT : sig_col(i);
|
||||
cv_rect(x - 2, y - 1, 5, 3, c);
|
||||
cv_rect(x - 1, y - 2, 3, 5, c);
|
||||
int32_t dx = x1 - x0, dy = y1 - y0, n = ((dx < 0 ? -dx : dx) > (dy < 0 ? -dy : dy) ? (dx < 0 ? -dx : dx) : (dy < 0 ? -dy : dy)) / 16 + 1, s;
|
||||
for (s = 1; s <= n; s++)
|
||||
spl_disc(x0 + dx * s / n, y0 + dy * s / n, r, c, 256);
|
||||
}
|
||||
/* the six threads' edges (px; the screen's centre + 170 px at k * 60 + 23 degrees) */
|
||||
BTAPP_RO static const int16_t SPL_E[12] = {277, 186, 141, 289, -16, 222, -37, 54, 99, -49, 256, 18};
|
||||
/* the threads at ms (< SPL_IN; the screen in two bands): quadratics from the edges bowed 30 px aside, eased out onto
|
||||
* the logo's start (the Bluetooth segment's room: without it, the screen dark that while) */
|
||||
BTAPP_FN static void spl_threads(uint32_t ms)
|
||||
{
|
||||
int32_t k, j, sx = 34 * 16, sy = (SPL_SY + 6 + 101) * 16, u = 256 - (int32_t)(ms * 256u / SPL_IN), e = 256 - u * u / 256 * u / 256;
|
||||
for (j = 0; j < 2; j++) {
|
||||
cv_begin(240, 120, T_BG);
|
||||
cv_oy = -120 * j;
|
||||
for (k = 0; k < 6; k++) {
|
||||
int32_t ex = SPL_E[2 * k] * 16, ey = SPL_E[2 * k + 1] * 16, mx = ex + (sx - ex) * e / 256, my = ey + (sy - ey) * e / 256;
|
||||
int32_t cx = (ex + mx) / 2 + (ey - 1920) * 3 / 17, cy = (ey + my) / 2 - (ex - 1920) * 3 / 17, t, x0 = ex, y0 = ey;
|
||||
for (t = 0; t <= 16; t++) {
|
||||
int32_t x = ((16 - t) * (16 - t) * ex + 2 * t * (16 - t) * cx + t * t * mx) / 256,
|
||||
y = ((16 - t) * (16 - t) * ey + 2 * t * (16 - t) * cy + t * t * my) / 256;
|
||||
spl_seg(x0, y0, x, y, 13, TRK_COL[k]);
|
||||
x0 = x; y0 = y;
|
||||
}
|
||||
}
|
||||
cv_oy = 0;
|
||||
cv_blit(0, (uint32_t)(120 * j));
|
||||
}
|
||||
}
|
||||
/* the splash at ms (>= SPL_WRITE: whole) */
|
||||
static void splash_at(uint32_t ms)
|
||||
{
|
||||
int32_t i, k, j, x0 = 0, y0 = 0, sx = 34 * 16, sy = (SPL_SY + 6 + 101) * 16;
|
||||
if (ms < SPL_IN) {
|
||||
if (bt_hw_seg())
|
||||
spl_threads(ms);
|
||||
return;
|
||||
}
|
||||
ms -= SPL_IN;
|
||||
if (!spl_clr) { /* (the threads' last picture away) */
|
||||
spl_clr = 1;
|
||||
lcd_fill(0, 0, 240, 240, T_BG);
|
||||
}
|
||||
cv_begin(240, SIG_H + 12, T_BG); /* the logo up to point n: the pen along its strokes */
|
||||
cv_oy = -SPL_SY;
|
||||
k = ms >= SPL_LOGO ? SIG_N : SIG_N * (int32_t)ms / (int32_t)SPL_LOGO;
|
||||
for (i = 0; i < k; i++) {
|
||||
int32_t x = ((240 - SIG_W) / 2 + SIG_PTS[2 * i]) * 16, y = (SPL_SY + 6 + (SIG_PTS[2 * i + 1] & 127)) * 16;
|
||||
if (SIG_PTS[2 * i + 1] & 128) { x0 = x; y0 = y; } /* (a stroke's start) */
|
||||
spl_seg(x0, y0, x, y, 30, heat_col(24 + i * 220 / SIG_N));
|
||||
x0 = x; y0 = y;
|
||||
}
|
||||
if (k < SIG_N && k) /* the pen's tip */
|
||||
spl_disc(x0, y0, 36, T_TEXT, 256);
|
||||
if (ms < 300u) /* the flash at its start */
|
||||
spl_disc(sx, sy, 128 - (int32_t)ms * 2 / 5, 0xFFFFu, 256 - (int32_t)ms * 256 / 300);
|
||||
cv_oy = 0;
|
||||
cv_blit(0, SPL_SY);
|
||||
cv_begin(240, 52, T_BG); /* the six dots, the lines */
|
||||
for (k = 0; k < 6; k++)
|
||||
spl_disc((70 + 20 * k) * 16 + 8, 8 * 16 + 8, clamp((int32_t)ms - 700 - k * 60, 0, 200) * 48 / 200, TRK_COL[k], 256);
|
||||
j = clamp((int32_t)ms - 900, 0, 300) / 3;
|
||||
for (k = 0; j && k < 2; k++)
|
||||
cv_text_in(0, SPL_TY - 180 + k * 16, 240, &AF_S, SPLASH_LINES[k], ux_mix(T_BG, k ? T_DIM : T_MID, j), T_BG);
|
||||
cv_blit(0, 180);
|
||||
}
|
||||
static void draw_splash(void)
|
||||
{
|
||||
uint32_t k;
|
||||
lcd_fill(0, 0, 240, 240, T_BG);
|
||||
cv_begin(240, 36, T_BG);
|
||||
for (k = 0; k < 2u; k++)
|
||||
cv_text_in(0, (int32_t)k * 16, 240, &AF_S, SPLASH_LINES[k], k ? T_DIM : T_MID, T_BG);
|
||||
cv_blit(0, SPL_TY);
|
||||
if (spl_anim && !(ui_prefs & PREF_ANIM_OFF))
|
||||
splash_sig(0);
|
||||
else
|
||||
splash_sig(SIG_N);
|
||||
splash_at(spl_anim && !(ui_prefs & PREF_ANIM_OFF) ? 0u : SPL_WRITE);
|
||||
lcd_sync();
|
||||
}
|
||||
/* main.c's splash loop: the signature as written ms after the start */
|
||||
/* main.c's splash loop: the splash ms after the start */
|
||||
static void splash_write(uint32_t ms)
|
||||
{
|
||||
if (!spl_anim || (ui_prefs & PREF_ANIM_OFF))
|
||||
static uint8_t done;
|
||||
if (!spl_anim || (ui_prefs & PREF_ANIM_OFF) || done)
|
||||
return;
|
||||
splash_sig(ms >= SPL_WRITE ? SIG_N : SIG_N * ms / SPL_WRITE); /* (V10.6n: solid as it writes, the owner) */
|
||||
done = ms >= SPL_WRITE; /* (the last picture once) */
|
||||
splash_at(ms);
|
||||
lcd_sync();
|
||||
}
|
||||
|
||||
@@ -2242,7 +2301,6 @@ static void ui_draw(void)
|
||||
anim_st.non = 0;
|
||||
scr_shown();
|
||||
}
|
||||
static void hint_tick(void); /* (ui_layer.c) */
|
||||
static uint8_t dlg_behind; /* (0.9.5) the page being drawn round a NOTICE */
|
||||
/* (0.9.5) a NOTICE (the OCT- / OCT+ questions) over the page: its tabs, its card, its breadcrumb the screen's holes (gfx.c
|
||||
* scr_holes), the page drawn round them as ever (DICE's BEFORE / NOW are the whole screen; over the menu, NAME, UPDATE MODE:
|
||||
@@ -2257,7 +2315,6 @@ static void ui_draw_page(uint32_t counting)
|
||||
if (dlg_notice()) {
|
||||
const int16_t R[3][4] = {{0, LT_Y, 240, (int16_t)DLG_TAB_H}, {14, 66, 212, 140}, {0, LZ_FOOT_Y, 240, LZ_FOOT_H}};
|
||||
uint8_t f = ui.force;
|
||||
hint_tick();
|
||||
scr_holes(R, 3);
|
||||
dlg_behind = 1;
|
||||
ui_draw_body(counting);
|
||||
@@ -2269,16 +2326,10 @@ static void ui_draw_page(uint32_t counting)
|
||||
}
|
||||
return;
|
||||
}
|
||||
hint_tick();
|
||||
ui_draw_body(counting);
|
||||
}
|
||||
static void ui_draw_body(uint32_t counting)
|
||||
{
|
||||
if (ui.hint_pg && ui.hint_pg != (ui.home ? 255u : ui.page + 1u)) { /* (0.9.0) a layer's hint: its own page's only */
|
||||
ui.hint_pg = 0;
|
||||
ui.msg_t = 0;
|
||||
ui.msg2[0] = 0;
|
||||
}
|
||||
if (ui.uboot) {
|
||||
draw_uboot();
|
||||
draw_head();
|
||||
|
||||
+4
-61
@@ -1450,9 +1450,9 @@ static __attribute__((noinline)) uint32_t graph_signature(void)
|
||||
h ^= (ui.focus + 1u) * 2246822519u;
|
||||
if (pg->graph == GR_STAGE) /* .. ENV > STAGE: the stage */
|
||||
h ^= (ui.stage + 1u) * 3266489917u;
|
||||
if (pd_on()) { /* .. a lens of ui_lens.c: its level (ENV's TRACKS: every track live) */
|
||||
if (pd_on()) { /* .. a lens of ui_lens.c: its level */
|
||||
h ^= (pd_level() + 1u) * 668265263u;
|
||||
if ((pd_cur() == PD_ENV && pd_level() == 0u) || (pd_cur() == PD_MOD && pg->graph != GR_MSEQ)) /* (MOD's pulse,
|
||||
if (pd_cur() == PD_MOD && pg->graph != GR_MSEQ) /* (V10.8.16: ENV's TRACKS gone, its term with it) (MOD's pulse,
|
||||
* LFO DEST's LFO) */
|
||||
h ^= anim_fr / 2u * 2654435761u;
|
||||
}
|
||||
@@ -1893,7 +1893,6 @@ static __attribute__((noinline)) void draw_tracks(void)
|
||||
uint32_t hot = sel && ui.hot_t ? ui.hot_col + 1u : 0u; /* the knob just turned (hot_col + 1): 1 LEVEL, 2 PAN,
|
||||
* 3 MUTE (the name), 4 the tempo (on its card) */
|
||||
int32_t pk = t->peak, m, pan = clamp(t->p[P_PAN], -64, 63), rv = clamp(t->p[P_REV], 0, 127);
|
||||
uint16_t vc = mute ? T_DIM : T_THEME;
|
||||
char b[16];
|
||||
t->peak = 0;
|
||||
trk_short_name(c, b);
|
||||
@@ -1912,64 +1911,8 @@ static __attribute__((noinline)) void draw_tracks(void)
|
||||
track_strip(c, sel, st, mute, arm, hot, lvl, b);
|
||||
continue;
|
||||
}
|
||||
if (six) {
|
||||
track_col6(c, sel, st, mute, hot, lvl, pan, rv, b);
|
||||
continue;
|
||||
}
|
||||
cv_begin(CARD_W, H_GRAPH, T_BG);
|
||||
cv_rrect(0, 0, CARD_W, H_GRAPH, 5, T_SURF, T_BG);
|
||||
cv_trk(4, 5, 16, c, sel ? trk_col(c) : ux_mix(T_SURF, trk_col(c), 55), T_SURF); /* (V10.8.10) */
|
||||
if (st)
|
||||
GFX_HOOK_ALIGN(0, 5, 0, 21, AL_V, "mixer badge on the cushion's line");
|
||||
if (st == 1u || st == 2u) /* REC (recording) / ARM (armed, stopped) */
|
||||
cv_keycap(53 - kc_w(st == 1u ? KC_REC : KC_ARM), 6, st == 1u ? KC_REC : KC_ARM, st == 1u ? T_REC : T_ACCENT,
|
||||
T_INK, T_SURF);
|
||||
else if (st) /* muted */
|
||||
cv_keycap(53 - kc_w(KC_MUTE), 6, KC_MUTE, T_KEY, T_INK, T_SURF);
|
||||
if (mute && arm) /* armed and muted: MUTE in place of the name */
|
||||
GFX_HOOK_ALIGN(0, 21 + AF_S_CAP_Y, 0, 21 + AF_S_CAP_Y + AF_S_CAP_H, AL_V,
|
||||
"mixer MUTE badge on the name's line");
|
||||
if (mute && arm) /* (on the name's capitals) */
|
||||
cv_keycap(5, 21 + AF_S_CAP_Y + HALF_UP(AF_S_CAP_H - KC_H), KC_MUTE, T_KEY, T_INK, T_SURF);
|
||||
else
|
||||
cv_free_text(5, 21, &AF_S, b, mute ? T_DIM : sel ? T_TEXT : T_MID, T_SURF, CARD_W - 10);
|
||||
{ /* (the JIANT style: track_col6) */
|
||||
{ /* LEVEL: the knob, its dB inside (OFF at 0), and the meter of the output */
|
||||
char v[8];
|
||||
knob(KB_X, KB_Y, KNOB_BIG_R, KNOB_BIG_COV, KNOB_BIG_ANG, (int32_t)lvl, 0, 127, hot == 1u ? T_ACCENT : vc);
|
||||
if (lvl) {
|
||||
int32_t d = LEVEL_DB_X10_AT(lvl);
|
||||
fmt_int(v, (d + (d < 0 ? -5 : 5)) / 10);
|
||||
GFX_HOOK_ALIGN(KB_X, 0, KB_X + 2 * KNOB_BIG_R, 0, AL_H, "mixer level text centred across");
|
||||
cv_text_in(KB_X, KB_Y + KNOB_BIG_R + 5, 2 * KNOB_BIG_R, &AF_S, "dB", T_DIM, T_SURF);
|
||||
} else {
|
||||
str_cpy(v, "OFF", sizeof v);
|
||||
}
|
||||
GFX_HOOK_ALIGN(KB_X, KB_Y, KB_X + 2 * KNOB_BIG_R, KB_Y + 2 * KNOB_BIG_R, AL_HV, "mixer level value in its knob");
|
||||
cv_text_in(KB_X, KB_Y + CAP_IN(S, 2 * KNOB_BIG_R), 2 * KNOB_BIG_R, &AF_S, v, hot == 1u ? T_ACCENT : lvl ? vc : T_DIM, T_SURF);
|
||||
cv_rrect(45, TS_MY, 4, TS_MH, 2, T_RAISE, T_SURF);
|
||||
if (ts.meter[c])
|
||||
cv_rrect(45, TS_MY + TS_MH - 1 - ts.meter[c], 4, ts.meter[c] + 1, ts.meter[c] >= 4 ? 2 : 0, T_MID, T_RAISE);
|
||||
}
|
||||
{ /* PAN (from the centre) and the REV send: captions, knobs, values */
|
||||
char v[8];
|
||||
uint16_t pc = hot == 2u ? T_ACCENT : vc, rc = hot == 3u ? T_ACCENT : vc;
|
||||
GFX_HOOK_ALIGN(15 - KNOB_SMALL_R, 0, 15 + KNOB_SMALL_R, 0, AL_H, "mixer caption over its knob");
|
||||
cv_text_in(15 - KNOB_SMALL_R, 72, 2 * KNOB_SMALL_R, &AF_S, "PAN", T_DIM, T_SURF); /* (by their ink) */
|
||||
GFX_HOOK_ALIGN(42 - KNOB_SMALL_R, 0, 42 + KNOB_SMALL_R, 0, AL_H, "mixer caption over its knob");
|
||||
cv_text_in(42 - KNOB_SMALL_R, 72, 2 * KNOB_SMALL_R, &AF_S, "REV", T_DIM, T_SURF);
|
||||
knob(15 - KNOB_SMALL_R, KS_Y, KNOB_SMALL_R, KNOB_SMALL_COV, KNOB_SMALL_ANG, pan, -64, 63, pc);
|
||||
knob(42 - KNOB_SMALL_R, KS_Y, KNOB_SMALL_R, KNOB_SMALL_COV, KNOB_SMALL_ANG, rv, 0, 127, rc);
|
||||
v[0] = '+'; /* the cards' numbers, without the % */
|
||||
fmt_int(pan > 0 ? v + 1 : v, pan * 100 / 64);
|
||||
GFX_HOOK_ALIGN(15 - KNOB_SMALL_R, 0, 15 + KNOB_SMALL_R, 0, AL_H, "mixer value under its knob");
|
||||
cv_text_in(15 - KNOB_SMALL_R, KS_Y + 17, 2 * KNOB_SMALL_R, &AF_S, v, pc, T_SURF);
|
||||
fmt_int(v, (rv * 100 + 63) / 127);
|
||||
GFX_HOOK_ALIGN(42 - KNOB_SMALL_R, 0, 42 + KNOB_SMALL_R, 0, AL_H, "mixer value under its knob");
|
||||
cv_text_in(42 - KNOB_SMALL_R, KS_Y + 17, 2 * KNOB_SMALL_R, &AF_S, v, rc, T_SURF);
|
||||
}
|
||||
}
|
||||
cv_blit((uint32_t)CARD_X(c - b4), Y_GRAPH);
|
||||
track_col6(c, sel, st, mute, hot, lvl, pan, rv, b); /* (V10.8.18: the four cards' code, after this, out: sk drew
|
||||
* the strips, else always the six) */
|
||||
}
|
||||
}
|
||||
/* oscilloscope of the output, triggered on a rising zero crossing: a RAISE centre line, the trace 2 px (in silence
|
||||
|
||||
@@ -2499,7 +2499,6 @@ static void seq_clr_step(void)
|
||||
* or project load, SRC / SET turned, a slot erased; again after another source or a project load. One a frame; after
|
||||
* a message already showing (LOADED) as the second message. Not on notes: nothing in the audio path */
|
||||
|
||||
static void hints_reset(void); /* (ui_layer.c) */
|
||||
/* messages of things that happened elsewhere (a load, the editor, MIDI in): after this frame's own */
|
||||
static void ui_notices(void)
|
||||
{
|
||||
@@ -2902,7 +2901,6 @@ static void ui_input_frame(void)
|
||||
}
|
||||
} else if (kind == CF_INIT_SYS) { /* (0.6.40) SAVE > TOOLS: everything as at power-on; */
|
||||
if (!project_clear()) { /* (V10.7.22) CLEAR PROJECT, stopped (project.c) */
|
||||
hints_reset(); /* (0.9.5) the teaching hints start over */
|
||||
gp.genre = GEN_EXPLORE; /* (0.8.6) GEN's GENRE as at power-on: EXPLORE */
|
||||
}
|
||||
} else if (kind == CF_CLEAR_ALL) { /* SEQ + REC: every track's steps and automation, the lane */
|
||||
@@ -3040,7 +3038,7 @@ static void ui_input_frame(void)
|
||||
if (!ui.home && !ui.menu && !ui.confirm && cur_page()->graph == GR_SHAPE) { /* (V10.25) STRETCH: NUDGE's */
|
||||
ndg_step = b != B_OCTUP ? 0u : ndg_step == 1u ? 2u : 1u; /* mode, OCT- the sequence (blue), OCT+ the
|
||||
* step's MICRO (red), OCT+ again the step itself (V10.7.4) */
|
||||
ui_message(ndg_step == 2u ? "NUDGE: THE STEP" : ndg_step ? "NUDGE: THE STEP'S MICRO TIMING" : "NUDGE: THE WHOLE SEQUENCE");
|
||||
ui_message(ndg_step == 2u ? "NUDGE: THE STEP" : ndg_step ? "NUDGE: THE STEP'S MICRO" : "NUDGE: THE SEQUENCE");
|
||||
ui.force = 1;
|
||||
break;
|
||||
}
|
||||
@@ -3201,8 +3199,8 @@ static void ui_input_frame(void)
|
||||
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 */
|
||||
static const char *const LH[4] = {"FILTER: HITS CLOSE, NOTES OPEN", "TIMBRE: THE OTHERS SHAPE IT",
|
||||
"PUMP: THE KICKS DUCK THE SYNTHS", "FX: THE OTHERS FEED THE SENDS"};
|
||||
static const char *const LH[4] = {"HITS CLOSE, NOTES OPEN", "THE OTHERS SHAPE IT",
|
||||
"KICKS DUCK THE SYNTHS", "THE OTHERS FEED THE SENDS"};
|
||||
if (ui.msg_t && str_eq(ui.msg, LH[k & 3u]))
|
||||
ui.msg_t = 40; /* (still turning: it stays) */
|
||||
else if (!(ui_help_off & 1u))
|
||||
|
||||
@@ -461,46 +461,6 @@ static void layer_tap(uint32_t l)
|
||||
else
|
||||
(void)page_tap(LAYERS[l].btn);
|
||||
}
|
||||
typedef char hk_room_t[HK_N <= 20 ? 1 : -1]; /* (bytes 20.. of engine 15's: other settings) */
|
||||
/* (0.9.5) INIT SYSTEM: the teaching hints start over (none given) */
|
||||
static void hints_reset(void)
|
||||
{
|
||||
uint32_t k;
|
||||
for (k = 0; k < HK_N; k++)
|
||||
hint_given(k) = 0;
|
||||
ui.hint_k = 0;
|
||||
settings_save();
|
||||
}
|
||||
/* (0.9.5) a frame: the page's hint waiting (page_entered: MOTION, PUNCH, MUTATE) given once its page has been shown HINT_DWELL_MS (gone with
|
||||
* another page: walking past with SELECT says nothing), when nothing else is said or open over it, at most HINT_MAX times
|
||||
* ever (hint_given, kept with the settings); on its page only (ui.hint_pg) */
|
||||
static void hint_tick(void)
|
||||
{
|
||||
uint32_t k = ui.hint_k, at = ui.home ? 255u : ui.page + 1u;
|
||||
if (!k)
|
||||
return;
|
||||
if (ui.hint_at != at) {
|
||||
ui.hint_k = 0;
|
||||
return;
|
||||
}
|
||||
if (fm1_ms - ui.hint_ms < HINT_DWELL_MS || ui.msg_t || ui.menu || ui.confirm || ui.layer || name_on() || ui.uboot)
|
||||
return;
|
||||
ui.hint_k = 0;
|
||||
if (hint_given(k) >= HINT_MAX)
|
||||
return;
|
||||
hint_given(k)++;
|
||||
settings_save(); /* (the count kept: deferred while playing) */
|
||||
if (k == HK_MOTION)
|
||||
ui_message("REC + PLAY, TURN A KNOB"); /* (0.6.92) how it is recorded */
|
||||
else if (k == HK_PUNCH)
|
||||
ui_message("REC + PLAY, HOLD FX + A KEY"); /* (0.6.99) the lane's recording */
|
||||
else { /* (V10.6) HK_EUCLID */
|
||||
int mu = cur_page()->id[0] == ID_MU0; /* (V10.16) MUTATE's keys */
|
||||
ui_message(mu ? "EVERY: MUTATE ON THE BAR" : "TURN A KNOB: A PATTERN");
|
||||
str_cpy(ui.msg2, mu ? "OCT+ MUTATE OCT- ANCHOR" : "OCT+ NEW OCT- BEFORE", sizeof ui.msg2);
|
||||
}
|
||||
ui.hint_pg = (uint8_t)at; /* (0.9.0: this page's only) */
|
||||
}
|
||||
|
||||
static uint32_t snd_id(void) { return TSEL->eng_req | (uint32_t)TSEL->preset << 8 | (uint32_t)TSEL->user << 16; }
|
||||
/* EDIT RECALL: the section playing has a stored sound to come back to */
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
* Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) */
|
||||
/* (0.8.5) the lens panels of ENV, LFO . MOD, SCL . ARP and GLO (ui_lens.c), as the approved mock-up's; included by
|
||||
* ui_graph.c after ui_lzedit.c (ed_cap, ed_chip). The canvas is the lens's panel (240 x 140, x 4..236).
|
||||
* ENV TRACKS: the six tracks' envelopes as tiles (the selected one tinted, its live level a dot; DEST: the three
|
||||
* amounts under each); ENV keeps graph_adsr / the DEST columns; STAGE: the envelope with the stage picked
|
||||
* shaded, the stage's own curve large under it, its time */
|
||||
* ENV ENV keeps graph_adsr (V10.8.16: its layers; TRACKS gone) / the DEST columns; STAGE: the envelope with the
|
||||
* stage picked shaded, the stage's own curve large under it, its time */
|
||||
/* track t's envelope in the box (x, y, w, h): attack straight, decay and release as three bends, sustain flat */
|
||||
static void env_mini(const track_t *t, int32_t x, int32_t y, int32_t w, int32_t h, uint16_t c, int32_t th)
|
||||
{
|
||||
@@ -27,15 +26,6 @@ static void env_mini(const track_t *t, int32_t x, int32_t y, int32_t w, int32_t
|
||||
py = yy;
|
||||
}
|
||||
}
|
||||
static int32_t env_now(const track_t *t) /* the loudest voice's level now, 0..1000 (-1: none) */
|
||||
{
|
||||
int32_t lv = -1;
|
||||
uint32_t i;
|
||||
for (i = 0; i < NVOICE; i++)
|
||||
if (t->v[i].stage && t->v[i].stage < 4u)
|
||||
lv = clamp((int32_t)(((int64_t)t->v[i].env * 1000) >> 24), lv, 1000);
|
||||
return lv;
|
||||
}
|
||||
static void graph_stage(const track_t *t)
|
||||
{
|
||||
static const char *const SN[4] = {"ATTACK", "DECAY", "SUSTAIN", "RELEASE"};
|
||||
@@ -302,7 +292,7 @@ static int graph_key_lz(const track_t *t, const page_t *pg)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* GLO MIX: the six strips (draw_tracks, track_col6; SENDS: the four sends as bars); GLOBAL keeps its bar of sixteenths;
|
||||
/* GLO MIX: the six strips (draw_tracks, track_col6; SENDS: the three sends as cells); GLOBAL the scope;
|
||||
* SYSTEM: the tracks that play as chips, LOAD's three settings (the one set lit), MIDI's route, (V10.7.63) the output's scope
|
||||
* and the CPU in % */
|
||||
static void scope_at(int32_t x0, int32_t pw, int32_t cy, int32_t a, uint16_t c); /* (ui_graph.c) */
|
||||
|
||||
@@ -429,15 +429,15 @@ static void graph_score(int gen)
|
||||
cv_text_r(236, 128, &AF_X, v, T_MID, T_SURF);
|
||||
}
|
||||
}
|
||||
/* PROJECT: the sections, the arrangement's chips, the song's strip (ar: ARRANGE, its rows picked) */
|
||||
/* PROJECT: the sections, the arrangement's chips, the song's strip (V10.8.18: ARRANGE's own, ar, gone: graph_score) */
|
||||
static uint8_t proj_nofoot; /* (gen.c: GENE draws its own words where the song's length stands) */
|
||||
static void graph_proj(int ar)
|
||||
static void graph_proj(void)
|
||||
{
|
||||
uint32_t i, total = 0, sel = (uint32_t)song.g[G_SLOT] - 1u, n = chain_config.count;
|
||||
char b[24];
|
||||
for (i = 0; i < 4u; i++) {
|
||||
int32_t x = LZ_TX(i);
|
||||
int used = graph_project_used(i), pick = !ar && i == (sel & 3u);
|
||||
int used = graph_project_used(i), pick = i == (sel & 3u);
|
||||
uint16_t c = lz_sec(i, used, used ? !pick : -1), ink = used ? T_INK : T_DIM;
|
||||
const char *nm = graph_project_name(i);
|
||||
b[0] = (char)('A' + i); b[1] = 0;
|
||||
@@ -453,33 +453,30 @@ static void graph_proj(int ar)
|
||||
}
|
||||
}
|
||||
GFX_HOOK_ALIGN(0, 58, 0, 69, AL_V | AL_PASS, "project arrange title");
|
||||
cv_text(6, 58, &AF_X, ar == 2 ? "ARRANGE 2" : "ARRANGE", ar ? T_THEME : T_DIM);
|
||||
cv_text(6, 58, &AF_X, "ARRANGE", T_DIM);
|
||||
for (i = 0; i < n && i < CHAIN_ROWS; i++) {
|
||||
const chain_row_t *r = &chain_config.row[i];
|
||||
int32_t x = 4 + (int32_t)(i % 8u) * 293 / 10, y = 72 + (int32_t)(i / 8u) * 22;
|
||||
int pick = ar && i == ui.song_row, used = graph_project_used(r->slot);
|
||||
uint16_t c = used ? lz_sec(r->slot, 1, !pick) : T_RAISE; /* (a row of an empty section: a well, its words DIM;
|
||||
int used = graph_project_used(r->slot);
|
||||
uint16_t c = used ? lz_sec(r->slot, 1, 1) : T_RAISE; /* (a row of an empty section: a well, its words DIM;
|
||||
* DIM on the section's colour could not be read) */
|
||||
b[0] = (char)('A' + (r->slot & 3u));
|
||||
fmt_int(b + 1, r->bars);
|
||||
cv_rect(x, y, 27, 20, c);
|
||||
GFX_HOOK_ALIGN(x, y, x + 27, y + 20, AL_HV, "arrange chip centred");
|
||||
cv_text_in(x, y + CAP_IN(X, 20), 27, &AF_X, b, used ? T_INK : T_DIM, c);
|
||||
if (pick)
|
||||
cv_frame(x - 1, y - 1, 29, 22, T_TEXT);
|
||||
if (song_idx.scene[song_cur][i].on) /* a scene: a dot */
|
||||
cv_rect(x + 22, y + 3, 2, 2, T_TEXT);
|
||||
if (song_idx.tsrc[song_cur][i] || song_idx.tvar[song_cur][i]) /* (add15) tracks of their own: a dot below */
|
||||
cv_rect(x + 3, y + 15, 2, 2, T_TEXT);
|
||||
total += r->bars;
|
||||
}
|
||||
song_strip(118, 6, ar ? 5u : 6u, 0); /* the song: its rows by their bars (V10.6o: song_strip's) */
|
||||
song_strip(118, 6, 6u, 0); /* the song: its rows by their bars (V10.6o: song_strip's) */
|
||||
if (proj_nofoot)
|
||||
return;
|
||||
song_len_txt(b, total);
|
||||
GFX_HOOK_ALIGN(0, 128, 0, 139, AL_V | AL_PASS, "project song length");
|
||||
cv_text_r(236, 128, &AF_X, n ? b : "NO ROWS: OCT+ ADDS ONE", ar && ui.song_row >= song_end_row() ? T_THEME : T_MID,
|
||||
T_SURF);
|
||||
cv_text_r(236, 128, &AF_X, n ? b : "NO ROWS: OCT+ ADDS ONE", T_MID, T_SURF);
|
||||
}
|
||||
/* a being small at (cx, cy) radius r (px): engine e's species, its outline in heat c; 24 vertices (bg_outline's form,
|
||||
* its spikes and lobes, at a slot's size: a quarter of the lines) */
|
||||
@@ -613,7 +610,7 @@ static void graph_save_lz(const page_t *pg)
|
||||
else if (SONG_PARTS(pg)) graph_parts();
|
||||
else if (SONG_CLIPS(pg) || SONG_TAKE(pg)) graph_clips();
|
||||
else if (pg->graph == GR_SONG) graph_score(0); /* (V10.8.14: ARRANGE's partitura viva) */
|
||||
else if (pg->graph == GR_SLOTS) { if (lv == SV_PROJ) graph_proj(0); else graph_lib(); }
|
||||
else if (pg->graph == GR_SLOTS) { if (lv == SV_PROJ) graph_proj(); else graph_lib(); }
|
||||
else if (pg->graph == GR_USER) graph_sound();
|
||||
else graph_lz_presets();
|
||||
}
|
||||
|
||||
@@ -416,7 +416,7 @@ static __attribute__((noinline)) void nm_draw_panel(void)
|
||||
}
|
||||
cv_text(14 + 14 * (int32_t)n, 48 - AF_X_CAP_Y, &AF_X, "TAP AGAIN: NEXT", T_MID);
|
||||
} else
|
||||
cv_text(10, 48 - AF_X_CAP_Y, &AF_X, nm.num ? "ONE TAP, ONE CHARACTER" : "TAP AGAIN: NEXT LETTER", T_MID);
|
||||
cv_text(10, 48 - AF_X_CAP_Y, &AF_X, nm.num ? "ONE TAP, ONE CHARACTER" : "TAP AGAIN: NEXT", T_MID);
|
||||
GFX_HOOK_ALIGN(4, 0, 236, 0, AL_H | AL_CELLS | AL_N(8), "name keys' row in the panel");
|
||||
for (i = 0; i < 16u; i++) { /* the white keys: the left octave, then the right one */
|
||||
int32_t x = 9 + 28 * (int32_t)(i % 8u), y = i < 8u ? 62 : 84;
|
||||
|
||||
@@ -90,7 +90,7 @@ static __attribute__((noinline)) void sc_put(uint32_t k, int32_t v)
|
||||
scn_frel = 1; /* (V10.7.63: a led scene's notes let go) */
|
||||
if (scn_on == 8u) { /* (V10.7.64) PRESS: the key's note on every live track, its own
|
||||
* sound each; no roles, no dice, the scale as it is */
|
||||
ui_message("PRESS: EVERY TRACK PLAYS THE KEYS");
|
||||
ui_message("EVERY TRACK PLAYS THE KEYS");
|
||||
return;
|
||||
}
|
||||
if (scn_on >= 2u && !drum_track(&trk[scn_on - 2u]))
|
||||
@@ -106,7 +106,7 @@ static __attribute__((noinline)) void sc_put(uint32_t k, int32_t v)
|
||||
{
|
||||
char b[32] = "SCENE: T1'S NOTES LEAD THE ROLES";
|
||||
b[8] = (char)('1' + (scn_on >= 2u ? scn_on - 2u : 0u));
|
||||
ui_message(!scn_on ? "SCENE OFF: KEYS PLAY ONE TRACK" : need ? "SCENE: T5 T6 ASLEEP (MENU > 6 TRACKS)" :
|
||||
ui_message(!scn_on ? "SCENE OFF: KEYS PLAY ONE TRACK" : need ? "T5 T6 ASLEEP: MENU > 6 TRACKS" :
|
||||
scn_on == 1u ? "SCENE: KEYS PLAY THE ROLES" : b);
|
||||
}
|
||||
} else if (k == 1u)
|
||||
@@ -190,8 +190,8 @@ static __attribute__((noinline)) void graph_harm(void)
|
||||
* over C2 .. C7), the one picked its role lit; one line: what that role does */
|
||||
static void graph_scene(void)
|
||||
{
|
||||
static const char *const RD[SC_N] = {"PLAYS ITS OWN SEQUENCE", "HOLDS EACH NOTE'S CHORD", "ARPEGGIATES EACH NOTE'S CHORD",
|
||||
"A BASS LINE UNDER THE NOTES", "A LINE ABOVE THE NOTES", "A NEW BEAT EACH KEY, WHILE HELD"};
|
||||
static const char *const RD[SC_N] = {"PLAYS ITS OWN SEQUENCE", "HOLDS EACH CHORD", "ARPEGGIATES EACH CHORD",
|
||||
"A BASS LINE UNDER THE NOTES", "A LINE ABOVE THE NOTES", "A NEW BEAT EACH KEY HELD"};
|
||||
uint32_t i, j, n;
|
||||
uint8_t o[KB_CH + 1];
|
||||
char b[48];
|
||||
@@ -221,10 +221,10 @@ static void graph_scene(void)
|
||||
}
|
||||
str_cpy(b, "T1 ", 48);
|
||||
b[1] = (char)('1' + sc_trk % NTRK);
|
||||
if (scn_on == 8u) str_cpy(b, "PRESS: EVERY TRACK PLAYS THE KEYS", 48);
|
||||
else if (scn_on >= 2u && sc_trk % NTRK == scn_on - 2u) str_cpy(b + 3, "LEADS: ITS NOTES PLAY THE OTHERS", 45);
|
||||
if (scn_on == 8u) str_cpy(b, "EVERY TRACK PLAYS THE KEYS", 48);
|
||||
else if (scn_on >= 2u && sc_trk % NTRK == scn_on - 2u) str_cpy(b + 3, "ITS NOTES LEAD THE OTHERS", 45);
|
||||
else str_cpy(b + 3, RD[scn_role[sc_trk % NTRK] % SC_N], 45);
|
||||
cv_text_in(4, 120, 232, &AF_X, scn_on ? b : "SCENE OFF: KNOB 1 KEYS OR A TRACK LEADS", scn_on ? T_TEXT : T_DIM, T_SURF);
|
||||
cv_text_in(4, 120, 232, &AF_X, scn_on ? b : "SCENE OFF: K1 KEYS OR A TRACK", scn_on ? T_TEXT : T_DIM, T_SURF);
|
||||
}
|
||||
|
||||
/* (V10.6j) SCENE's DRUM: key k's beat into the kit, 16 steps (main loop: ui_input.c's poll; the key in the audio side
|
||||
|
||||
+3
-3
@@ -2,7 +2,7 @@
|
||||
* Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) */
|
||||
/* (codex/anim) The animation under load, on the host (tests/ui_render.c's screens, firmware/src/ui*.c):
|
||||
* time the same moment draws the same picture whatever the frame rate: HOME's ECO, BEING, EDIT's beings and
|
||||
* creatures, DRUM-X's kit, GEN's helix drawn at 66 frames a second and at 10 (frames dropped, long gaps):
|
||||
* creatures, DRUM-X's kit, GEN drawn at 66 frames a second and at 10 (frames dropped, long gaps):
|
||||
* the panel identical at the same time (ui.c anim_at, the clock; ui_lzhome.c eco_swim / eco_at, the swim in
|
||||
* fixed steps drawn between them)
|
||||
* jumps LITE (75 %: a frame each 100 ms) the beings move on, no step between two frames past what they swim in it,
|
||||
@@ -87,10 +87,10 @@ static void run_to(int s, uint32_t step, uint32_t T, uint16_t *out)
|
||||
/* (the first NSTRICT pixel for pixel; the others keep a state of their own stepped once a frame drawn (WHEEL's rotors,
|
||||
* VOICE's articulation and nod, ANIMAL's flap and glide, NOISE's swarm, LOFI's bits, the kit's beings: their time is the
|
||||
* clock's, those steps the frames'; no room in the flash to step them by the ticks): their difference reported only) */
|
||||
#define NSTRICT 7u
|
||||
#define NSTRICT 6u /* (V10.8.18: GEN out, still since its helix went, V10.8.14) */
|
||||
static void test_time(void)
|
||||
{
|
||||
static const char *const SC[] = {"home", "home_being", "v6_analog", "v6_phase", "gen", "edit_analog", "v6_fm6_op",
|
||||
static const char *const SC[] = {"home", "home_being", "v6_analog", "v6_phase", "edit_analog", "v6_fm6_op",
|
||||
"v6_wheel", "vx_head_s", "vx_bird", "v6_noise", "v6_lofi", "vx_kit_hits"};
|
||||
uint32_t k;
|
||||
for (k = 0; k < sizeof SC / sizeof SC[0]; k++) {
|
||||
|
||||
+6
-48
@@ -664,7 +664,7 @@ enum { S_HOME, S_HOME_IDLE, S_MESSAGE, S_MESSAGE_KEY, S_MESSAGE_NOFILE, S_PRESET
|
||||
S_FXL_SENDS, S_FXL_DIST, S_FXL_PAN, S_FXL_BUSES, S_FXL_DELAY, S_FXL_DELAY2, S_FXL_REVERB, S_FXL_SLICER, S_FXL_MASTER,
|
||||
S_HOME_MACROS, S_HOME_BEING, S_HOME_ROUTES, S_GEN_LEAD,
|
||||
S_ED_FILTER, S_ED_FILTER_BP, S_ED_VOICE2, S_ED_FOCUS, S_ED_FOCUS_MOD, S_ED_OPERATOR,
|
||||
S_ENV_TRACKS, S_ENV_TRACKS_DEST, S_ENV_STAGE, S_ENV_STAGE_SUS, S_MSEQ2, S_KEY_CHORD, S_KEY_CHORD_OFF, S_KEY_ARP, S_KEY_ARP2, S_GLO_SENDS, S_MENU_ROW, S_MENU_ROW_LEDS, S_LY_FX_KNOBS, S_LY_FX_STATE, S_LY_GLO_STATE, S_DLG_DICE_SOUND, S_DLG_DICE_SEQ, S_DLG_DICE_FX, S_DLG_MUT_BACK,
|
||||
S_ENV_LZ, S_ENV_LZ_DEST, S_ENV_STAGE, S_ENV_STAGE_SUS, S_MSEQ2, S_KEY_CHORD, S_KEY_CHORD_OFF, S_KEY_ARP, S_KEY_ARP2, S_GLO_SENDS, S_MENU_ROW, S_MENU_ROW_LEDS, S_LY_FX_KNOBS, S_LY_FX_STATE, S_LY_GLO_STATE, S_DLG_DICE_SOUND, S_DLG_DICE_SEQ, S_DLG_DICE_FX, S_DLG_MUT_BACK,
|
||||
S_DRUM_X4, S_DRUM_GHOST, S_DRUM_OCT_UP, S_DRUM_OCT_DN, S_COMP_TOUCH, S_COMP_EVEN, S_GEN_EXPLORE, S_GEN_SONG,
|
||||
S_VX_HEAD_A, S_VX_HEAD_I, S_VX_HEAD_U, S_VX_HEAD_S, S_VX_HEAD_M, S_VX_HEAD_K, S_VX_HEAD_T, S_VX_HEAD_F, S_VX_HEAD_VOWEL,
|
||||
S_VX_HEAD_HOME, S_VX_HEAD_QUIET, S_VX_BIRD, S_VX_CMOS, S_VX_INSECT, S_VX_WING, S_VX_MAMMAL, S_VX_MORPH_IB, S_VX_MORPH_BM,
|
||||
@@ -672,7 +672,6 @@ enum { S_HOME, S_HOME_IDLE, S_MESSAGE, S_MESSAGE_KEY, S_MESSAGE_NOFILE, S_PRESET
|
||||
S_VX_BUG_BD, S_VX_BUG_SD, S_VX_BUG_CP, S_VX_BUG_CH, S_VX_BUG_OH, S_VX_BUG_TM, S_VX_BUG_RS, S_VX_BUG_CB, S_VX_BUG_GHOST,
|
||||
S_VX_BUG_FLAM, S_VX_BUG_RATCH, S_VX_BUG_QUIET,
|
||||
S_V6_ANALOG, S_V6_ANALOG_SQR, S_V6_ANALOG_RING, S_V6_ANALOG_QUIET, S_V6_ANALOG_HOME, S_V6_ANALOG_FULL, S_V6_FM6, S_V6_FM6_ALG32, S_V6_FM6_OP, S_V6_FM6_OP2, S_V6_FM6_ENV, S_V6_FM6_ENV_REL, S_V6_FM6_HOME, S_V6_FM6_FULL, S_V6_WHEEL, S_V6_WHEEL_FAST, S_V6_WHEEL_HOME, S_V6_WHEEL_FULL, S_V6_NOISE, S_V6_NOISE_LFSR, S_V6_NOISE_WHITE, S_V6_NOISE_HOME, S_V6_NOISE_FULL, S_V6_PHASE, S_V6_PHASE_RING, S_V6_PHASE_HOME, S_V6_PHASE_FULL, S_V6_LOFI, S_V6_LOFI_FLOAT, S_V6_LOFI_PLS, S_V6_LOFI_HOME, S_V6_LOFI_FULL, S_V6_VOICE_FULL, S_V6_ANIMAL_FULL, S_VX_TRACT_A_FULL, S_VX_TRACT_M_FULL, S_VX_TRACT_A_EDIT, S_VX_TRACT_M_EDIT, S_VX_TRACT_A_HOME, S_VX_TRACT_M_HOME, S_V6_STRING, S_V6_STRING_BOW, S_V6_STRING_HOME, S_V6_STRING_FULL, S_V6_ADD, S_V6_ADD_BELL, S_V6_ADD_HOME, S_V6_ADD_FULL, S_HOME_MUT, S_HOME_FACES,
|
||||
S_LIVE_RIELES, S_LIVE_RIELES_T3, S_LIVE_MANO, S_LIVE_MANO_KEYS,
|
||||
S_MIXER_T4, S_HOME_T4, S_MOCK_HOME, S_MOCK_PRESETS, S_MOCK_SEQ, S_MOCK_DRUM, S_MOCK_MIXER, S_MOCK_DIALOG, S_MOCK_MENU,
|
||||
S_TOAST_ENV, S_TOAST_MUTATE, S_TOAST_MUTATE_HINT, S_TOAST_MOTION, S_TOAST_MOTION_LOCKS, S_TOAST_PUNCH, S_TOAST_AUTO_LIST,
|
||||
S_TOAST_AUTO_LIST_DRUM, S_TOAST_PATTERN, S_TOAST_FM6_OP, S_TOAST_ANALOG, S_COUNT };
|
||||
@@ -702,7 +701,7 @@ static const char *const S_NAME[S_COUNT] = {"home", "home_idle", "message", "mes
|
||||
"fx_effect_slicer", "fx_effect_master",
|
||||
"home_macros", "home_being", "home_routes", "gen_lead",
|
||||
"ed_filter", "ed_filter_bp", "ed_voice2", "ed_focus", "ed_focus_mod", "ed_operator",
|
||||
"env_tracks", "env_tracks_dest", "env_stage", "env_stage_sus", "mseq2", "key_chord", "key_chord_off", "key_arp", "key_arp2", "glo_sends", "menu_row", "menu_row_leds", "ly_fx_knobs", "ly_fx_state", "ly_glo_state", "dlg_dice_sound", "dlg_dice_seq", "dlg_dice_fx", "euclid_modes",
|
||||
"env_lz", "env_lz_dest", "env_stage", "env_stage_sus", "mseq2", "key_chord", "key_chord_off", "key_arp", "key_arp2", "glo_sends", "menu_row", "menu_row_leds", "ly_fx_knobs", "ly_fx_state", "ly_glo_state", "dlg_dice_sound", "dlg_dice_seq", "dlg_dice_fx", "euclid_modes",
|
||||
"drum_hit_x4", "drum_hit_ghost", "drum_oct_x8", "drum_oct_flam", "comp_touch", "comp_echo_even", "gen_explore", "gen_song",
|
||||
"vx_head_a", "vx_head_i", "vx_head_u", "vx_head_s", "vx_head_m", "vx_head_k", "vx_head_t", "vx_head_f", "vx_head_vowel",
|
||||
"vx_head_home", "vx_head_quiet", "vx_bird", "vx_cmos", "vx_insect", "vx_wing", "vx_mammal", "vx_morph_insect_bird", "vx_morph_bird_mammal",
|
||||
@@ -710,50 +709,10 @@ static const char *const S_NAME[S_COUNT] = {"home", "home_idle", "message", "mes
|
||||
"vx_bug_bd", "vx_bug_sd", "vx_bug_cp", "vx_bug_ch", "vx_bug_oh", "vx_bug_tm", "vx_bug_rs", "vx_bug_cb", "vx_bug_ghost",
|
||||
"vx_bug_flam", "vx_bug_ratchet", "vx_bug_quiet",
|
||||
"v6_analog", "v6_analog_sqr", "v6_analog_ring", "v6_analog_quiet", "v6_analog_home", "v6_analog_full", "v6_fm6", "v6_fm6_alg32", "v6_fm6_op", "v6_fm6_op2", "v6_fm6_env", "v6_fm6_env_rel", "v6_fm6_home", "v6_fm6_full", "v6_wheel", "v6_wheel_fast", "v6_wheel_home", "v6_wheel_full", "v6_noise", "v6_noise_lfsr", "v6_noise_white", "v6_noise_home", "v6_noise_full", "v6_phase", "v6_phase_ring", "v6_phase_home", "v6_phase_full", "v6_lofi", "v6_lofi_float", "v6_lofi_pls", "v6_lofi_home", "v6_lofi_full", "v6_voice_full", "v6_animal_full", "vx_tract_a_full", "vx_tract_m_full", "vx_tract_a_edit", "vx_tract_m_edit", "vx_tract_a_home", "vx_tract_m_home", "v6_string", "v6_string_bow", "v6_string_home", "v6_string_full", "v6_add", "v6_add_bell", "v6_add_home", "v6_add_full", "home_mutate", "home_faces",
|
||||
"live_rieles", "live_rieles_t3", "live_mano", "live_mano_keys",
|
||||
"mixer_tracks4", "home_tracks4", "mock_home", "mock_presets", "mock_seq", "mock_drum", "mock_mixer", "mock_dialog", "mock_menu",
|
||||
"toast_env", "toast_mutate", "toast_mutate_hint", "toast_motion", "toast_motion_locks", "toast_punch", "toast_auto_list",
|
||||
"toast_auto_list_drum", "toast_pattern", "toast_fm6_op", "toast_analog"};
|
||||
|
||||
/* (p2, main 0.9.11) GLO > LIVE: six sequences of their own lengths (16 32 7 16 . 1/8 20 4 . 1/4, as the mock-up's),
|
||||
* modifiers on T2 (THIN 70 %), T3 (x2 RATCH x3), T4 (LOOP 8), T5 (2/3), played two seconds from PLAY so the playheads
|
||||
* and ghosts are where they would be; RIELES (KNOB 1 ALL or T3), MANO (black key 3 and C4 held, A4 PING latched on T5,
|
||||
* LATCH on) */
|
||||
static void live_scene(int s)
|
||||
{
|
||||
static const uint8_t NN[5] = {60, 67, 63, 72, 58};
|
||||
uint32_t k;
|
||||
trk[2].p[P_SLEN] = 7; trk[3].p[P_SDIV] = 1; trk[4].p[P_SLEN] = 20; trk[5].p[P_SLEN] = 4; trk[5].p[P_SDIV] = 0;
|
||||
for (k = 0; k < 20u; k++) {
|
||||
step_t *st = &trk[4].step[k];
|
||||
if (k % 3u) continue;
|
||||
st->time = ST_NOTE; st->n = 1; st->note[0] = NN[k % 5u]; st->vel = 100;
|
||||
}
|
||||
for (k = 0; k < 4u; k++) { trk[5].step[k].time = ST_NOTE; trk[5].step[k].n = 1; trk[5].step[k].note[0] = NN[k]; trk[5].step[k].vel = 90; }
|
||||
for (k = 0; k < 16u; k++) { /* T1 an acid line, T3 seven steps, T4 a beat of 1/8 */
|
||||
static const uint8_t A[16] = {36, 0, 48, 36, 0, 39, 0, 36, 43, 0, 36, 48, 0, 41, 39, 0};
|
||||
step_t *st = &trk[0].step[k], *d = &trk[3].step[k];
|
||||
if (A[k]) { st->time = ST_NOTE; st->n = 1; st->note[0] = A[k]; st->vel = 100; st->flags = k % 4u ? 0 : SF_ACCENT; }
|
||||
memset(d, 0, sizeof *d);
|
||||
d->time = ST_NOTE; d->vel = 100;
|
||||
d->hit = (uint8_t)((k % 4u == 0u ? 1u : 0u) | (k % 8u == 4u ? 2u : 0u) | (k % 2u ? 0u : 8u));
|
||||
if (k < 7u && k != 4u) { trk[2].step[k].time = ST_NOTE; trk[2].step[k].n = 1; trk[2].step[k].note[0] = NN[k % 5u] - 12u; trk[2].step[k].vel = 100; }
|
||||
}
|
||||
memset(&lv, 0, sizeof lv);
|
||||
lv.dn[1] = -3; lv.rate[2] = 2; lv.dn[2] = 2; lv.cut[3] = 5; lv.here = 1u << 3; lv.rate[4] = -1;
|
||||
if (s == S_LIVE_RIELES_T3) lv.tgt = 3;
|
||||
if (s == S_LIVE_MANO_KEYS) {
|
||||
lv.latch = 1; lv.lt[9] = 1u << 4; lv.tk[5] = 1u << 2;
|
||||
lv.kb = 1u << key_at(1, 2) | 1u << key_at(0, 5);
|
||||
}
|
||||
song.sel = 2;
|
||||
seq_start();
|
||||
live_publish();
|
||||
for (k = 0; k < 2800u; k++) { events_block(CTL); if (!(k % 64u)) live_publish(); }
|
||||
nav_put(SEC_GLO, "RAILS"); /* (V10.7.58: one LIVE page, KEYS shown as RAILS) */
|
||||
if (s == S_LIVE_RIELES_T3) { ui.hot_col = 0; ui.hot_t = 30; }
|
||||
}
|
||||
|
||||
/* the scenes of the UI design screens: the state the UI-redesign
|
||||
* prototype drew them from (its setup(): two pattern tracks, the drum pattern on track 4, a synthetic scope),
|
||||
* plus the hot knob each mock shows; tests/ui_mockcmp.py compares these renders with the mock PNGs */
|
||||
@@ -1268,8 +1227,8 @@ static void setup(int s)
|
||||
go_title("FOCUS"); ui.focus = 4;
|
||||
if (s == S_ED_FOCUS_MOD) { TSEL->p[P_M2SRC] = 1; TSEL->p[P_M2DST] = MD_E1 + 4; TSEL->p[P_M2AMT] = 40; }
|
||||
break;
|
||||
case S_ENV_TRACKS: case S_ENV_TRACKS_DEST: /* (0.8.5) ENV's lens: TRACKS (ENV / DEST), T2 sounding */
|
||||
song.sel = 1; nav_scene(SEC_ENV, s == S_ENV_TRACKS ? "TRACKS" : "ENV DEST"); /* (codex/coherence: TRACKS DEST gone) */
|
||||
case S_ENV_LZ: case S_ENV_LZ_DEST: /* ENV's lens (V10.8.16: its layers; TRACKS gone) / ENV DEST, T2 sounding */
|
||||
song.sel = 1; nav_scene(SEC_ENV, s == S_ENV_LZ ? "ENV" : "ENV DEST");
|
||||
trk[1].v[0].stage = 2; trk[1].v[0].env = 10u << 20; trk[2].p[P_ED_FLT] = 60; trk[2].p[P_ED_PIT] = -40;
|
||||
trk[1].p[P_ED_SHP] = 90; trk[3].p[P_MUTE] = 1;
|
||||
break;
|
||||
@@ -1835,7 +1794,6 @@ static void setup(int s)
|
||||
song.octave = s == S_DRUM_OCT_UP ? 3 : -3;
|
||||
ui_message(drum_oct_name(song.octave));
|
||||
break;
|
||||
case S_LIVE_RIELES: case S_LIVE_RIELES_T3: case S_LIVE_MANO: case S_LIVE_MANO_KEYS: live_scene(s); break;
|
||||
case S_COMP_TOUCH: case S_COMP_EVEN:
|
||||
drum(0);
|
||||
trk[3].step[0].comp = s == S_COMP_TOUCH ? CP_TOUCH : CP_ECHO;
|
||||
@@ -2445,7 +2403,7 @@ int main(int argc, char **argv)
|
||||
static const int COST[] = {S_HOME, S_PRESETS, S_STEP, S_ROLL_CHORDS, S_DRUM, S_MIXER, S_MENU, S_ABOUT_CREDITS, S_CONFIRM_PROJ,
|
||||
S_PATTERN, S_COMP, S_LENTE_PAT, S_LENTE_BAR, S_LENTE_STEP, S_LENTE_STEP_DRUM,
|
||||
S_SAVE_LIB, S_SAVE_PROJ, S_SAVE_SOUND, S_FXL_SENDS, S_FXL_BUSES, S_FXL_REVERB,
|
||||
S_HOME_BEING, S_EDIT_ANALOG, S_ED_FILTER, S_ED_FOCUS, S_ENV_TRACKS, S_MOD, S_KEY_CHORD,
|
||||
S_HOME_BEING, S_EDIT_ANALOG, S_ED_FILTER, S_ED_FOCUS, S_ENV_LZ, S_MOD, S_KEY_CHORD,
|
||||
S_SYSTEM, S_MENU_ROW, S_LY_FX_KNOBS, S_DLG_DICE_SOUND, S_EDIT_SAMPLE, S_VX_HEAD_S, S_VX_BIRD,
|
||||
S_VX_MAMMAL, S_VX_KIT_HITS, S_VX_HEAD_HOME, S_VX_KIT_HOME, S_VX_BUG_SD,
|
||||
S_V6_ANALOG, S_V6_FM6, S_V6_FM6_OP, S_V6_FM6_OP2, S_V6_FM6_ENV, S_V6_WHEEL, S_V6_NOISE, S_V6_PHASE,
|
||||
@@ -2481,7 +2439,7 @@ int main(int argc, char **argv)
|
||||
{ /* the STEP page's piano roll: its panel alone redrawn, and a frame that changes nothing (the signature only) */
|
||||
static const int G[] = {S_ROLL_CHORDS, S_ROLL_PLAYING, S_DRUM, S_PATTERN, S_COMP, S_LENTE_PAT, S_LENTE_STEP,
|
||||
S_SAVE_LIB, S_SAVE_SOUND, S_FXL_BUSES, S_FXL_REVERB, S_FXL_DELAY, S_EDIT_ANALOG,
|
||||
S_ENV_TRACKS, S_MOD, S_SYSTEM, S_VX_HEAD_S, S_VX_INSECT, S_VX_KIT_HITS, S_DX_SOUND};
|
||||
S_ENV_LZ, S_MOD, S_SYSTEM, S_VX_HEAD_S, S_VX_INSECT, S_VX_KIT_HITS, S_DX_SOUND};
|
||||
for (k = 0; k < sizeof G / sizeof G[0]; k++) {
|
||||
clock_t c0;
|
||||
double tg, ti;
|
||||
|
||||
+16
-76
@@ -341,6 +341,9 @@ static int layer_hint_said(void)
|
||||
return 0;
|
||||
}
|
||||
/* frames, true when a layer hint was said in any of them */
|
||||
#ifndef HINT_DWELL_MS
|
||||
#define HINT_DWELL_MS 800u /* (V10.8.18: the firmware's gone with its teaching hints) */
|
||||
#endif
|
||||
static int frames_layer_hint(uint32_t n)
|
||||
{
|
||||
int said = 0;
|
||||
@@ -11413,16 +11416,6 @@ static int test_skin(void)
|
||||
frames(100);
|
||||
bad += check("ui.msg: 40 bytes, a longer message ellipsised at its end (MUTATE's whole) (L8)", ok);
|
||||
}
|
||||
{ /* (0.9.0) a page's hint (MUTATE's) on its page only: gone when the page changes (0.9.5: the layers' gone) */
|
||||
ui_power_on(); frame();
|
||||
press(B_EDIT);
|
||||
ok = !frames_layer_hint(HINT_DWELL_MS + 64u) && !ui.hint_pg;
|
||||
go_title("TRACK"); frames(160); turn(EN_SELECT, 1); frames(HINT_DWELL_MS + 64u);
|
||||
ok &= str_eq(cur_page()->title, "EUCLID") && ui.msg_t && ui.hint_pg && msg_is("TURN A KNOB: A PATTERN");
|
||||
go_title("ENV"); frame();
|
||||
ok &= !ui.msg_t && !ui.hint_pg;
|
||||
bad += check("a page's hint goes when the page changes (not carried onto the next page); no layer hint after EDIT", ok);
|
||||
}
|
||||
{ /* every lens page */
|
||||
int okp = 1;
|
||||
for (i = 0; i < NPAGES; i++) {
|
||||
@@ -12638,79 +12631,26 @@ static int test_toasts(void)
|
||||
ok &= !ui.confirm && memcmp(toast_snap + H_HEAD * 240u, host_screen + H_HEAD * 240u, (240u - H_HEAD) * 480u) == 0;
|
||||
}
|
||||
bad += check(" NOTICE blacks out no more than its box (its tabs, its card, its breadcrumb): the page round it, back whole", ok);
|
||||
/* hints: walking SEQ's chain with SELECT (TRACK > EUCLID > PLAYHEADS) says nothing; dwelt on, MUTATE's; at most HINT_MAX */
|
||||
/* (V10.8.18) the teaching hints (EUCLID's, MUTATE's, AUTOMATION's, PUNCH LANE's: at most twice ever) gone for the
|
||||
* boot's room: walked past or dwelt on, those pages say nothing; no layer hint either */
|
||||
ui_power_on(); go_title("TRACK"); frames(400);
|
||||
for (seen = passed = 0, k = 0; k < 4u; k++) {
|
||||
turn(EN_SELECT, 1); passed |= str_eq(cur_page()->title, "EUCLID");
|
||||
for (n = 0; n < 12u; n++) { frame(); seen |= msg_is("TURN A KNOB: A PATTERN") || msg_is("OCT+ NEW OCT- BEFORE"); }
|
||||
for (n = 0; n < 12u; n++) { frame(); seen |= ui.msg_t && ui.msg[0]; }
|
||||
}
|
||||
for (n = 0; n < 200u; n++) { frame(); seen |= ui.msg_t && ui.msg[0]; }
|
||||
bad += check("0.9.5 a page's hint: none while SELECT walks past it (TRACK > EUCLID > PLAYHEADS), nor carried onto the next",
|
||||
passed && str_eq(cur_page()->title, "PLAYHEADS") && !seen);
|
||||
turn(EN_SELECT, -3); /* back to EUCLID (past MUTATE, MODES): stay */
|
||||
turn(EN_SELECT, -3);
|
||||
ok = str_eq(cur_page()->title, "EUCLID");
|
||||
frames(HINT_DWELL_MS - 160u);
|
||||
ok &= !ui.msg_t;
|
||||
frames(240u);
|
||||
ok &= msg_is("TURN A KNOB: A PATTERN");
|
||||
for (n = 0, seen = 0; n < 200u; n++) { frame(); seen |= msg_is("OCT+ NEW OCT- BEFORE"); }
|
||||
ok &= seen;
|
||||
bad += check(" dwelt on (HINT_DWELL_MS): EUCLID's, then its second line", ok);
|
||||
for (k = 0, n = 0; k < 3u; k++) { /* three more visits: once more (HINT_MAX), then no more */
|
||||
go_title("BAR"); frames(400);
|
||||
go_title("EUCLID");
|
||||
for (seen = 0, x = 0; x < 120u; x++) { frame(); seen |= msg_is("TURN A KNOB: A PATTERN"); }
|
||||
n += seen;
|
||||
}
|
||||
bad += check(" at most HINT_MAX (2) times in all: counted (hint_given), then never", n == HINT_MAX - 1u &&
|
||||
hint_given(HK_EUCLID) == HINT_MAX);
|
||||
{ /* the counts kept with the settings: a reboot (the settings saved, power off, loaded back) gives no more */
|
||||
persist_t p = {0};
|
||||
uint32_t lc;
|
||||
ui.msg_t = 0;
|
||||
for (k = 0, lc = 0; k < 3u; k++) { /* (0.9.5) SCL tapped: no layer hint, ever (nothing counted) */
|
||||
go_home(); frames(160); ui.msg_t = 0;
|
||||
press(B_SCL);
|
||||
lc += (uint32_t)frames_layer_hint(HINT_DWELL_MS + 64u);
|
||||
}
|
||||
ok = lc == 0u;
|
||||
for (k = HK_N; k < 13u; k++) /* (the old layer counts' bytes: untouched) */
|
||||
ok &= favorites.factory[15][k] == 0u;
|
||||
bad += check(" 0.9.5 SCL tapped three times, dwelt on: no \"HOLD [SCL] QUICK\", nothing counted", ok);
|
||||
p.magic = PERSIST_MAGIC; p.panel = panel;
|
||||
settings_export(&p);
|
||||
ui_power_on(); /* (a fresh power-on: favorites cleared, then the settings loaded) */
|
||||
ok = hint_given(HK_EUCLID) == 0u && settings_import(&p, sizeof p) && hint_given(HK_EUCLID) == HINT_MAX;
|
||||
go_title("TRACK"); frames(160); turn(EN_SELECT, 1);
|
||||
for (seen = 0, x = 0; x < 120u; x++) { frame(); seen |= msg_is("TURN A KNOB: A PATTERN"); }
|
||||
go_home(); frames(160); ui.msg_t = 0;
|
||||
press(B_SCL);
|
||||
seen |= frames_layer_hint(120u);
|
||||
bad += check(" the counts kept with the settings: after a reboot no more EUCLID hints (no SCL one)", ok && !seen);
|
||||
p.favorites.factory[15][HK_EUCLID] = 0; /* (older settings: those bytes 0 = not given yet) */
|
||||
ui_power_on();
|
||||
ok = settings_import(&p, sizeof p) && hint_given(HK_EUCLID) == 0u;
|
||||
bad += check(" older settings (the spare bytes 0): the hints not given yet", ok);
|
||||
}
|
||||
ui_power_on(); /* (0.9.5) no layer hint: not before the layer is held, nor after */
|
||||
press(B_EDIT);
|
||||
for (n = 0; n < 200u; n++) { frame(); seen |= ui.msg_t && ui.msg[0]; }
|
||||
go_title("AUTOMATION"); for (n = 0; n < 200u; n++) { frame(); seen |= ui.msg_t && ui.msg[0]; }
|
||||
go_title("PUNCH LANE"); for (n = 0; n < 200u; n++) { frame(); seen |= ui.msg_t && ui.msg[0]; }
|
||||
bad += check("V10.8.18 no teaching hint: EUCLID walked past or dwelt on, AUTOMATION, PUNCH LANE say nothing", passed && ok && !seen);
|
||||
ui_power_on(); /* (0.9.5) no layer hint: SCL or EDIT tapped, dwelt on */
|
||||
go_home(); frames(160); ui.msg_t = 0;
|
||||
press(B_SCL);
|
||||
ok = !frames_layer_hint(HINT_DWELL_MS + 64u);
|
||||
go_home(); frames(160);
|
||||
fm1_in.buttons |= 1u << panel.btn[B_EDIT]; host_pressed |= 1u << panel.btn[B_EDIT];
|
||||
frames(480);
|
||||
ok &= ui.layer == LAYER_EDIT;
|
||||
fm1_in.buttons &= ~(1u << panel.btn[B_EDIT]); frame();
|
||||
go_home(); frames(160); ui.msg_t = 0;
|
||||
press(B_EDIT);
|
||||
bad += check(" 0.9.5 no layer hint after an EDIT tap: before its layer is held, nor after", ok && !frames_layer_hint(120u));
|
||||
/* INIT SYSTEM (SAVE > TOOLS): the hints start over */
|
||||
hint_given(HK_EUCLID) = HINT_MAX;
|
||||
confirm_open(CF_INIT_SYS, 0); ui.force = 1; frame();
|
||||
press(B_OCTUP); frames(160);
|
||||
ok = !ui.confirm && hint_given(HK_EUCLID) == 0u;
|
||||
go_title("TRACK"); frames(160); turn(EN_SELECT, 1); ui.msg_t = 0;
|
||||
for (seen = 0, x = 0; x < 120u; x++) { frame(); seen |= msg_is("TURN A KNOB: A PATTERN"); }
|
||||
bad += check(" INIT SYSTEM: the counts start over (MUTATE's hint again)", ok && seen);
|
||||
bad += check(" no layer hint after an SCL or EDIT tap", ok && !frames_layer_hint(HINT_DWELL_MS + 64u));
|
||||
return bad;
|
||||
}
|
||||
|
||||
@@ -13027,7 +12967,7 @@ static const char *coh_name(uint32_t sec, uint32_t e) { const nv_t *v = &nav_ch(
|
||||
static int coh_ok(uint32_t sec, const char *a, const char *b)
|
||||
{
|
||||
static const struct { uint8_t sec; const char *a, *b; } OK[] = {
|
||||
{SEC_ENV, "ENV", "TRACKS"}, {SEC_GLO, "MIXER", "GLOBAL"}, {SEC_FX, "SENDS", "DIST"},
|
||||
{SEC_GLO, "MIXER", "GLOBAL"}, {SEC_FX, "SENDS", "DIST"},
|
||||
{SEC_FX, "BUSES", "DLY"}, {SEC_FX, "BUSES", "REVERB"}, {SEC_FX, "BUSES", "CHORUS"}, {SEC_FX, "BUSES", "SLICER"},
|
||||
{SEC_EDIT, "MORE", FELUCCA_FM4 ? "OP LEVEL" : "-"}}; /* (FELUCCA_FM4's retired DIGITAL: P_TVEL is its OP4 LEVEL) */
|
||||
uint32_t i;
|
||||
|
||||
+2249
-2249
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user