mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-05 20:34:27 +01:00
V10.8.35: room for MUTATE and LIVE back, compact (the owner): the filter TYPEs MS20 and LP24 gone (not far enough from LP: voice.c tf_ms20 / tf_lp24, their states, the lens's curves; a stored 5 or 6 opens as LP: project.c proj_phys_gone, upreset.c up_values, ft_of / ft_voice at use; GEN's EBM bass a resonant LP driven harder), ENV > STAGE gone (its row kept in the table: the index; LOOP and the destinations were ENV DEST's already), EUCLID's picture one ring of dots (the hits in the track's colour, an accent larger, the step playing white, ROTATE's mark; a kit the lane picked, ALL any lane; the concentric lanes, their list, the key, the roll, VARY's turns gone). SEQ > MUTATE back with EVERY alone (OFF, 1 2 4 8 bars): a mutation from the anchor as far as VARY (seed, HITS, ROTATE, the MODES) on the bar, OCT+ on EUCLID or MUTATE one now, OCT- the anchor; MODES' OCT+ / OCT- still a new variation / the one before. A melodic track: ROLE on EUCLID's KNOB 4 (MELODY first), VARY on MODES, named MELODY there. LIVE back as SEQ > STEP FX's black keys 1..9 on the selected track (seq_live.c: REV PING RND and THIN again in live_next / live_drop): RATE x2, x3/2, x2/3, REVERSE, PING-PONG, RANDOM, THIN held (in on the 1/16, let go back in phase on the ghost), GIRO - / + pressed (the playhead a step back / on). spl_threads out of the Bluetooth segment (the USB host's code compiled 240 B larger there). Tests: ui_test (ENV's chain of 3, SEQ's of 17, MUTATE compact, MELODY's OCT, the nav tasks 79), stepfx_test (LIVE compact), euclid_mel_test (ROLE's knob), gen_test (EBM), target_budget (tf_ms20 out); layout re-recorded (REPIN=keep: voice.c, seq_live.c)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
26 files changed
+2611
-2662
No files matched your search
@@ -20,20 +20,20 @@ static const param_desc_t *analog_desc(const track_t *t, uint32_t k) { return k
|
||||
* note and CUT (+-32 semitones about it), RES its feedback (voice.c track_comb).
|
||||
* (0.9.9-snd1) COMB- the same comb with its feedback negative: odd harmonics, hollow (its line half as long: the note
|
||||
* where COMB's is). FT_POST(ft): a TYPE the part's (voice.c tf_run), every engine's own filter open under it */
|
||||
enum { FT_LP, FT_HP, FT_BP, FT_COMB, FT_COMBN, FT_MS20, FT_LP24, FT_N }; /* (snd1: MS20, voice.c tf_ms20; V10.22: LP24,
|
||||
* voice.c tf_lp24) */
|
||||
enum { FT_LP, FT_HP, FT_BP, FT_COMB, FT_COMBN, FT_N }; /* (V10.8.35, the owner: MS20 (5) and LP24 (6) gone, not far
|
||||
* enough from LP for their flash: a stored 5 or 6 plays LP) */
|
||||
#define FT_IS_COMB(ft) ((ft) == FT_COMB || (ft) == FT_COMBN)
|
||||
#define FT_POST(ft) ((ft) >= FT_COMB)
|
||||
/* the TYPE stored, in range (was & 3: a value past the last read as another TYPE) */
|
||||
static inline uint32_t ft_of(const int16_t *p)
|
||||
{
|
||||
return (uint32_t)clamp(p[P_FTYPE], 0, FT_N - 1);
|
||||
return (uint32_t)p[P_FTYPE] < FT_N ? (uint32_t)p[P_FTYPE] : FT_LP; /* (V10.8.35: past the last, MS20's and LP24's: LP) */
|
||||
}
|
||||
/* the TYPE a voice's own filter plays (ANALOG, LOFI): LP HP BP, or open (FT_COMB in svf_mode) under a part's TYPE */
|
||||
static inline uint32_t ft_voice(const int16_t *p)
|
||||
{
|
||||
uint32_t f = (uint16_t)p[P_FTYPE]; /* (a stray negative one: open, as a part's) */
|
||||
return f < FT_COMB ? f : FT_COMB;
|
||||
return f < FT_COMB ? f : f < FT_N ? FT_COMB : FT_LP; /* (V10.8.35: MS20's and LP24's numbers: its own LP) */
|
||||
}
|
||||
static inline int32_t svf_mode(const tsvf_t *c, int32_t in, int32_t *ic1, int32_t *ic2, uint32_t ft, int32_t k)
|
||||
{
|
||||
|
||||
@@ -73,23 +73,6 @@ static uint32_t noise_inc(int32_t p)
|
||||
inc = pitch_inc((uint32_t)clamp(p, 0, 2047));
|
||||
return sh && inc >= 0x80000000u >> (sh - 1u) ? 0xFFFFFFFFu : inc << sh;
|
||||
}
|
||||
/* the integer square root (NOISE's, kept here: voice.c's LP24 tf_lp24 uses it) */
|
||||
static uint32_t isqrt32(uint32_t x)
|
||||
{
|
||||
uint32_t r = 0, b = 1u << 30;
|
||||
while (b > x)
|
||||
b >>= 2;
|
||||
while (b) {
|
||||
if (x >= r + b) {
|
||||
x -= r + b;
|
||||
r = (r >> 1) + b;
|
||||
} else {
|
||||
r >>= 1;
|
||||
}
|
||||
b >>= 2;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
#define WS_SUB 16u /* the vactrol's step (samples) */
|
||||
#define WL_DARK (15 << 20) /* the cell's darkness at its darkest (Q20 octaves): shut */
|
||||
/* 2^-x, x Q12 octaves (>= 0), Q15 (a quadratic between the octaves) */
|
||||
|
||||
@@ -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.34" /* (2026-11-23) V10.8.21: SEQ > CLAY (the owner): DRONE CLAY, JIANT BYTE's drone and its four modulators (DEST SHAPE EUCLID AMOUNT; DECAY, STEP, SEED) on any track, kept with the project ('C' 'Y'), its pages' picture the modulators' telemetry. V10.7.77: GEN (the owner): DUBSTEP's wobble its rate moving (the wobble bass's LFO RATE automated half a bar each: 1/4 1/8 1/8T 1/16); CUMBIA villera one throw in two (a villera 'teclado': 92 .. 100, minor, the keyboard's lead up front). V10.7.76: DRUM-X MATH a wavetable (the owner: "harsh"): its t whole cycles of the hit's time (one shape evolving), interpolated between its samples; SOUND 3 draws it (four moments, cold to hot); hints trimmed (flash). V10.7.75: DRUM-X MATH (the owner): its RATIO (1/4 .. 16, 24, the inharmonic between) on SOUND 3's KNOB 4, COLOR read MOD AMT; MATH's RESTART the scope (its ramps' picture gone), ten more hints out (flash). V10.7.74: DRUM-X MATH (the owner): a sound's WAVE past BELL a MATH formula F01..F48 as its FM's modulator (COLOR its index; its t the hit's time, a sample in eight), kept with the project ('D' 'F'). V10.7.73: SCL > HARMONY its own tab (KEY CHORD HARMONY SCENE); the defaults once (the owner): LARGE off, CLICK REC, COUNT-IN 1 BAR. V10.7.72: GEN (the owner): MATH WEST STRING more (the archetypes' third options theirs, 25 %; a bass's one time in ten); GLO > GLOBAL the scope, its bars gone. V10.7.71: SCL > HARMONY's picture (the owner): the progression's chords as roman numerals in the key ("-" minor, "o" diminished), each its root's colour, the one playing lit; the obvious knobs' hints out (flash). V10.7.70: FX > PUNCH IN: KNOB 4 M4 (its ERASE PUNCH LANE's only), so OCT+ always the punch-in editor (an ERASE picked took it). V10.7.69: MATH FLOAT MORPH (the owner): ALGO B where CHIP was, MORPH A -> B where BEND was (between the ends B a sample in eight, interpolated: +12.5 % CPU); MATH's formulas (lofi_float, lofi_byte) their 14 divisions by a constant as multiplies (JIANT BYTE 0.16's build pass, tools/build.py const_divs: exact, less CPU a sample); the MACRO layer's dead branches out (flash). V10.7.68: EUCLID MODES > ROLE (MELODY CHORDS BASS ARP, was CHORD) on the harmony the other melodic tracks play, bar by bar (four bars when it changes), else SCL's key; a recorded melody EUCLID takes: its notes as they were; LFO / FX dice leftovers out (flash). V10.7.67: GEN and EUCLID MUTATE fuse two seeds (the owner: never one as it is; the second far from the first), A+B in the name; FX + OCT+ opens the punch-in editor again (as OCT+ on FX > PUNCH IN). V10.7.66: SCL > HARMONY (PROG LENGTH EVOLVE SKIP: every melodic sequence follows a progression); GEN 8 progressions more (neo-soul, jazz, IDM, progressive); EUCLID's melody CONTOUR RANGE MOTIF CHORD; macros FX > PUNCH IN's only (LFO's layer, HOME > ROUTES gone, MACROS in FX), GLO's layer says G4 UNDO; the PUNCH-IN EDITOR redone (the owner): a key WHAT (an effect, or PARAM: M1..M4, CUT PITCH TIMBRE VOLUME PAN DIST CHORUS DELAY REVERB VIBRATO on every track), HOW (an effect HOLD LATCH QUANT; PARAM HOLD RAMP UP RAMP DN SINE STUTTER S&H), AMOUNT (-100..+100 %; an effect its TARGET), TIME (1/16 .. 8 BARS); two slots A B; FX > PUNCH IN its knobs M1..M4 (PUNCH LANE: LEN RES); the layers MAP only (KNOBS STATE gone, ALGORITHM nothing held), the FX cards "M1 CUT"; FX + SELECT the FX pages (its dice gone). GENE while it plays waits for the bar to end (Hollusion); GENE 4: KEY NEW / KEEP (the first melodic track's key and mode kept), ENTRY ALL / BUILD (the new piece in a track a bar, the kit first); the old DIGITAL / NOISE / retired engines' conversions out (flash), the songs 7-8 notice out; voices past V10.6c's budget: tails first, FM6's quarter rate gone. V10.7.65: the PUNCH-IN EDITOR (the owner): OCT+ on FX > PUNCH IN opens it (the FX layer locked open; an ERASE picked on KNOB 4: OCT+ does it), DICE gone; the COMB / COMB- cut-off moved by the LFO and the ENV as the other filters; a key held and KNOB 1..4 its EFFECT (any, MOD a macro moved) TARGET (ALL SYN DRM T1..T6; MOD M1..M4) AMOUNT (MOD 1 BEAT .. 4 BARS) MODE (HOLD LATCH QUANT; MOD RAMP UP / DOWN SINE S&H), the mode said in the header; SELECT a slot (four, in the settings), OCT+ saves and plays it, OCT- leaves. V10.7.64: SCENE's LEADER PRESS (a key's note on every live track at once, each its own sound); SCENE on the live tracks only (it opened on T6, asleep with four: nothing heard, nothing drawn), every role with the key: a kit's DRUM loops its beat while a key is held, stopped too; the engines as the kit (the owner): FILTER TYPE CUT RES IMAGE (DIST the SENDS' only), PLAY POLY GLIDE UNISON VEL (the plain MORE gone, GL MODE off the panel), GAIN 0..+12 dB clean where a DRIVE was (ANALOG's MORE, WHEEL's COLOR; their DRIVE off the panel, kept), saved ('T' 'G'); FUGA's subject and answer on live tracks (the continuo after: with four tracks it began unheard); DUBSTEP's bass the wobble (a resonant low-pass on aLine truncated
|
||||
#define FELUCCA_VERSION "V10.8.35" /* (2026-11-23) V10.8.21: SEQ > CLAY (the owner): DRONE CLAY, JIANT BYTE's drone and its four modulators (DEST SHAPE EUCLID AMOUNT; DECAY, STEP, SEED) on any track, kept with the project ('C' 'Y'), its pages' picture the modulators' telemetry. V10.7.77: GEN (the owner): DUBSTEP's wobble its rate moving (the wobble bass's LFO RATE automated half a bar each: 1/4 1/8 1/8T 1/16); CUMBIA villera one throw in two (a villera 'teclado': 92 .. 100, minor, the keyboard's lead up front). V10.7.76: DRUM-X MATH a wavetable (the owner: "harsh"): its t whole cycles of the hit's time (one shape evolving), interpolated between its samples; SOUND 3 draws it (four moments, cold to hot); hints trimmed (flash). V10.7.75: DRUM-X MATH (the owner): its RATIO (1/4 .. 16, 24, the inharmonic between) on SOUND 3's KNOB 4, COLOR read MOD AMT; MATH's RESTART the scope (its ramps' picture gone), ten more hints out (flash). V10.7.74: DRUM-X MATH (the owner): a sound's WAVE past BELL a MATH formula F01..F48 as its FM's modulator (COLOR its index; its t the hit's time, a sample in eight), kept with the project ('D' 'F'). V10.7.73: SCL > HARMONY its own tab (KEY CHORD HARMONY SCENE); the defaults once (the owner): LARGE off, CLICK REC, COUNT-IN 1 BAR. V10.7.72: GEN (the owner): MATH WEST STRING more (the archetypes' third options theirs, 25 %; a bass's one time in ten); GLO > GLOBAL the scope, its bars gone. V10.7.71: SCL > HARMONY's picture (the owner): the progression's chords as roman numerals in the key ("-" minor, "o" diminished), each its root's colour, the one playing lit; the obvious knobs' hints out (flash). V10.7.70: FX > PUNCH IN: KNOB 4 M4 (its ERASE PUNCH LANE's only), so OCT+ always the punch-in editor (an ERASE picked took it). V10.7.69: MATH FLOAT MORPH (the owner): ALGO B where CHIP was, MORPH A -> B where BEND was (between the ends B a sample in eight, interpolated: +12.5 % CPU); MATH's formulas (lofi_float, lofi_byte) their 14 divisions by a constant as multiplies (JIANT BYTE 0.16's build pass, tools/build.py const_divs: exact, less CPU a sample); the MACRO layer's dead branches out (flash). V10.7.68: EUCLID MODES > ROLE (MELODY CHORDS BASS ARP, was CHORD) on the harmony the other melodic tracks play, bar by bar (four bars when it changes), else SCL's key; a recorded melody EUCLID takes: its notes as they were; LFO / FX dice leftovers out (flash). V10.7.67: GEN and EUCLID MUTATE fuse two seeds (the owner: never one as it is; the second far from the first), A+B in the name; FX + OCT+ opens the punch-in editor again (as OCT+ on FX > PUNCH IN). V10.7.66: SCL > HARMONY (PROG LENGTH EVOLVE SKIP: every melodic sequence follows a progression); GEN 8 progressions more (neo-soul, jazz, IDM, progressive); EUCLID's melody CONTOUR RANGE MOTIF CHORD; macros FX > PUNCH IN's only (LFO's layer, HOME > ROUTES gone, MACROS in FX), GLO's layer says G4 UNDO; the PUNCH-IN EDITOR redone (the owner): a key WHAT (an effect, or PARAM: M1..M4, CUT PITCH TIMBRE VOLUME PAN DIST CHORUS DELAY REVERB VIBRATO on every track), HOW (an effect HOLD LATCH QUANT; PARAM HOLD RAMP UP RAMP DN SINE STUTTER S&H), AMOUNT (-100..+100 %; an effect its TARGET), TIME (1/16 .. 8 BARS); two slots A B; FX > PUNCH IN its knobs M1..M4 (PUNCH LANE: LEN RES); the layers MAP only (KNOBS STATE gone, ALGORITHM nothing held), the FX cards "M1 CUT"; FX + SELECT the FX pages (its dice gone). GENE while it plays waits for the bar to end (Hollusion); GENE 4: KEY NEW / KEEP (the first melodic track's key and mode kept), ENTRY ALL / BUILD (the new piece in a track a bar, the kit first); the old DIGITAL / NOISE / retired engines' conversions out (flash), the songs 7-8 notice out; voices past V10.6c's budget: tails first, FM6's quarter rate gone. V10.7.65: the PUNCH-IN EDITOR (the owner): OCT+ on FX > PUNCH IN opens it (the FX layer locked open; an ERASE picked on KNOB 4: OCT+ does it), DICE gone; the COMB / COMB- cut-off moved by the LFO and the ENV as the other filters; a key held and KNOB 1..4 its EFFECT (any, MOD a macro moved) TARGET (ALL SYN DRM T1..T6; MOD M1..M4) AMOUNT (MOD 1 BEAT .. 4 BARS) MODE (HOLD LATCH QUANT; MOD RAMP UP / DOWN SINE S&H), the mode said in the header; SELECT a slot (four, in the settings), OCT+ saves and plays it, OCT- leaves. V10.7.64: SCENE's LEADER PRESS (a key's note on every live track at once, each its own sound); SCENE on the live tracks only (it opened on T6, asleep with four: nothing heard, nothing drawn), every role with the key: a kit's DRUM loops its beat while a key is held, stopped too; the engines as the kit (the owner): FILTER TYPE CUT RES IMAGE (DIST the SENDS' only), PLAY POLY GLIDE UNISON VEL (the plain MORE gone, GL MODE off the panel), GAIN 0..+12 dB clean where a DRIVE was (ANALOG's MORE, WHEEL's COLOR; their DRIVE off the panel, kept), saved ('T' 'G'); FUGA's subject and answer on live tracks (the continuo after: with four tracks it began unheard); DUBSTEP's bass the wobble (a resonant low-pass on aLine truncated
|
||||
#endif
|
||||
#if FELUCCA_OTA && !FELUCCA_FLASH
|
||||
#error "FELUCCA_OTA needs FELUCCA_FLASH"
|
||||
|
||||
@@ -530,8 +530,9 @@ static const grecipe_t RECIPE[SR_N] = {
|
||||
/* ---- (0.9.9-gen1) the archetypes the genres lacked */
|
||||
/* EBM (V10.6p, the owner: "a modular's analog basses, slightly detuned"): FAT BASS's two oscillators (two saws, two
|
||||
* squares one time in three) ~9 cents apart, the second an octave under (or a fourth, a fifth: GEN's consonant
|
||||
* INT), the MS20 filter, short, its envelope on it (the accents open it further), driven */
|
||||
[SR_EBMBASS] = {{{EG_A, 14}, {EG_A, 14}, NO_}, GR(0, 7), GR(32, 47), GR(8, 31), GR(8, 23), GR(48, 71), GR(40, 63), GR4(28, 47), GFT(5, 0), GWV(0, 1, 0), 0, GDC(28, 0), V_LEGATO},
|
||||
* INT), the LP filter resonant (V10.8.35: was the MS20, gone), short, its envelope on it (the accents open it
|
||||
* further), driven harder */
|
||||
[SR_EBMBASS] = {{{EG_A, 14}, {EG_A, 14}, NO_}, GR(0, 7), GR(32, 47), GR(8, 31), GR(8, 23), GR(48, 71), GR(56, 79), GR4(28, 47), GFT(0, 0), GWV(0, 1, 0), 0, GDC(40, 0), V_LEGATO},
|
||||
/* trap's 808: a sine's long boom, gliding (the SLIDEs), driven */
|
||||
[SR_808] = {{{EG_A, 7}, {EG_A, 2}, NO_}, GR(0, 7), GR(88, 111), GR(0, 15), GR(32, 47), GR(56, 79), GR(0, 7), GR4(0, 7), GFT(0, 48), GWV(3, 3, 1), 0, GDC(36, 0), V_LEGATO},
|
||||
/* jazz, bossa, boom bap: an upright's triangle, plucked */
|
||||
|
||||
@@ -58,7 +58,7 @@ static const char *const N_HSKIP[] = {"NONE", "T1", "T2", "T3", "T4", "T5", "T6"
|
||||
* they play (seq.c seq_step; the steps keep what was written). Append-only: older projects hold 0..2 */
|
||||
static const char *const N_QUANT[] = {"OFF", "SNAP", "WHITE", "SEQ"};
|
||||
static const char *const N_DTYPE[] = {"SOFT", "HARD", "FOLD", "CRUSH", "RECT", "AMP"}; /* (JIANT) fx.c DT_*; 0.7.8 AMP */
|
||||
static const char *const N_FTYPE[] = {"LP", "HP", "BP", "COMB", "COMB-", "MS20", "LP24"}; /* (JIANT 0.5) P_FTYPE: eng_analog.c FT_*
|
||||
static const char *const N_FTYPE[] = {"LP", "HP", "BP", "COMB", "COMB-"}; /* (JIANT 0.5) P_FTYPE: eng_analog.c FT_*
|
||||
* (0.9.9-snd1: COMB- the negative comb, MS20) */
|
||||
static const char *const N_VOICE[] = {"POLY", "MONO", "LEG", "UNI"}; /* V_POLY .. V_UNISON */
|
||||
static const char *const N_GLMODE[] = {"RATE", "TIME"};
|
||||
@@ -877,7 +877,7 @@ static const page_t PAGES[] = {
|
||||
* old RAILS page gone (the two were nearly the same) */
|
||||
{"TIMELINE", FAM_SAVE, SC_GLOBAL, GR_SONG, {0xFF, 0xFF, 0xFF, 0xFF}}, /* (add15) the song as lanes (was ARRANGE 2): a row's tracks, the section each
|
||||
* plays from (song_chain.c row_src; ui_input.c song_trk_knob) */
|
||||
{"MUTATE", FAM_SEQ, SC_TRACK, GR_EUCLID, {ID_MU0, ID_MU0 + 1u, ID_MU0 + 2u, ID_MU0 + 3u}},
|
||||
{"MUTATE", FAM_SEQ, SC_TRACK, GR_EUCLID, {ID_MU0, 0xFF, 0xFF, 0xFF}}, /* (V10.8.35: back, its EVERY alone) */
|
||||
{"ENV 2", FAM_ENV, SC_TRACK, GR_ADSR, {P_E2ATK, P_E2DEC, P_E2SUS, P_E2REL}}, /* (V10.22) a second ADSR, a MOD
|
||||
* source (SRC ENV2) */ /* (V10.16) EUCLID's
|
||||
* mutations on the bar: EVERY AMOUNT MODE WHAT */
|
||||
@@ -1018,8 +1018,8 @@ static const param_desc_t *page_desc(const page_t *pg, uint32_t slot, int16_t **
|
||||
id += ms_ui_step & 15u;
|
||||
if (id >= ID_EU0 && id < ID_EU0 + 8u) /* (V10.6) EUCLID's and MODES' views (ui_euclid.c eu_put) */
|
||||
return eu_desc(id - ID_EU0, valp);
|
||||
if (id >= ID_MU0 && id < ID_MU0 + 4u) /* (V10.16) MUTATE's */
|
||||
return eu_desc(id - ID_MU0 + 8u, valp);
|
||||
if (id == ID_MU0) /* (V10.8.35) MUTATE's EVERY */
|
||||
return eu_desc(8u, valp);
|
||||
if (id >= ID_SC0 && id < ID_SC0 + 4u) /* (V10.25) SCENE's */
|
||||
return sc_desc(id - ID_SC0, valp);
|
||||
if (id >= ID_CL0 && id <= ID_CL0 + CL_SEL) /* (V10.8.21) DRONE CLAY's (seq.c clay.c clay_page_desc) */
|
||||
|
||||
@@ -322,6 +322,10 @@ static void proj_phys_gone(project_t *q)
|
||||
* retired engine's track ANALOG's first preset, its motion as
|
||||
* it was) */
|
||||
proj_trk_t *d = &q->t[k];
|
||||
if (d->p[P_FTYPE] > 4) { /* (V10.8.35: the filter TYPEs MS20 and LP24 gone: LP) */
|
||||
d->p[P_FTYPE] = 0;
|
||||
hit = 1;
|
||||
}
|
||||
if (!eng_gone(d->engine))
|
||||
continue;
|
||||
d->engine = ENGI_PHYS_TO; /* (V10.7.66: its values as they were, ANALOG's ranges) */
|
||||
|
||||
@@ -2012,6 +2012,8 @@ static volatile uint8_t seq_fill;
|
||||
static int step_rolls(const track_t *t, const step_t *s)
|
||||
{
|
||||
uint32_t c = trk_chance(t, s);
|
||||
if (live_drop(t)) /* (V10.8.35) LIVE THIN (seq_live.c) */
|
||||
return 0;
|
||||
return c >= 100u || rng() % 100u < c;
|
||||
}
|
||||
/* (0.9.9-seq2d) STEP COMPONENTS v2 (core.h CA_* CC_*). Component k's CONDITION on step s this pass (t->loops: the
|
||||
|
||||
+33
-6
@@ -53,8 +53,8 @@ static struct {
|
||||
uint8_t rq[NTRK], rk[NTRK]; /* a request: rq moved on, of kind rk (LQ_*) */
|
||||
/* ISR */
|
||||
lv_mod_t cur[NTRK];
|
||||
uint8_t act, rs[NTRK], rem[NTRK]; /* modified (a bit a track); rq seen; PING going down; RATE's
|
||||
* remainder */
|
||||
uint8_t act, rs[NTRK], rem[NTRK], pd[NTRK]; /* modified (a bit a track); rq seen; RATE's remainder; (V10.8.35)
|
||||
* PING going down */
|
||||
uint8_t pfo[NTRK], pfa; /* the FX layer's 1/2 TEMPO / LOOP on it last block; a bit a track */
|
||||
uint16_t gidx[NTRK]; /* the ghost: its step, samples into it */
|
||||
uint32_t gpos[NTRK];
|
||||
@@ -69,8 +69,8 @@ static int lv_phase0(const lv_mod_t *m) { return !(m->rate | m->cut | (m->fl & 6
|
||||
* step), its direction (seq_tick takes it as a JUMP component's: a component's own JUMP first) */
|
||||
static __attribute__((noinline)) uint32_t live_next(const track_t *t, uint32_t len)
|
||||
{
|
||||
uint32_t ti = trk_index(t), n = lv.cur[ti].cut, lo = 0; /* (V10.8.12: forward only; REV, PING, RND, GIRO gone
|
||||
* with GLO > LIVE) */
|
||||
uint32_t ti = trk_index(t), n = lv.cur[ti].cut, lo = 0, d = LF_DIR(lv.cur[ti].fl); /* (V10.8.35: REV, PING, RND
|
||||
* back, SEQ > STEP FX's black keys; GIRO still gone) */
|
||||
int32_t r = (int32_t)(t->seq_idx % len), w;
|
||||
if (!n || n >= len)
|
||||
n = len;
|
||||
@@ -80,7 +80,24 @@ static __attribute__((noinline)) uint32_t live_next(const track_t *t, uint32_t l
|
||||
r -= (int32_t)lo;
|
||||
if (r < 0)
|
||||
r += (int32_t)len;
|
||||
r = r >= w || r + 1 >= w ? 0 : r + 1; /* (outside the window: it enters at its start) */
|
||||
if (r >= w) /* (outside the window: it enters at its start / end) */
|
||||
r = d == LVD_REV ? w : -1;
|
||||
if (d == LVD_REV)
|
||||
r = r <= 0 ? w - 1 : r - 1;
|
||||
else if (d == LVD_PING) {
|
||||
if (w < 2)
|
||||
r = 0;
|
||||
else if ((r += lv.pd[ti] ? -1 : 1) >= w) {
|
||||
r = w - 2;
|
||||
lv.pd[ti] = 1;
|
||||
} else if (r < 0) {
|
||||
r = 1;
|
||||
lv.pd[ti] = 0;
|
||||
}
|
||||
} else if (d == LVD_RND)
|
||||
r = (int32_t)(rng() % n);
|
||||
else
|
||||
r = r + 1 >= w ? 0 : r + 1;
|
||||
r += (int32_t)lo;
|
||||
return (uint32_t)(r >= (int32_t)len ? r - (int32_t)len : r);
|
||||
}
|
||||
@@ -121,7 +138,17 @@ static __attribute__((noinline)) uint32_t live_adv(track_t *t, uint32_t n, uint3
|
||||
return x;
|
||||
}
|
||||
|
||||
/* (V10.8.12: THIN, RATCH, OCT gone with GLO > LIVE: the FX layer's 1/2 TEMPO and LOOP set none of them) */
|
||||
/* (V10.8.12: RATCH, OCT gone with GLO > LIVE) (V10.8.35: THIN back) (step_rolls) THIN: the step playing kept silent
|
||||
* this time; the same steps on the same loop every PLAY */
|
||||
static int live_drop(const track_t *t)
|
||||
{
|
||||
uint32_t ti = trk_index(t), h;
|
||||
if (!LV_ON(ti) || !lv.cur[ti].drop)
|
||||
return 0;
|
||||
h = ((ti << 6 | t->seq_idx) + (uint32_t)t->loops * 65539u) * 0x9E3779B1u;
|
||||
h = (h ^ h >> 15) * 0x9E3779B1u;
|
||||
return ((h >> 16) * 100u) >> 16 < lv.cur[ti].drop;
|
||||
}
|
||||
/* (rec_note, rec_release) a modified track's playhead and ghost swapped: recording at the ghost's place */
|
||||
static int live_swap(track_t *t)
|
||||
{
|
||||
|
||||
+4
-6
@@ -618,12 +618,10 @@ static int page_visible(uint32_t i)
|
||||
{
|
||||
if (PAGES[i].graph == GR_SONG && (PAGES[i].fam == FAM_SEQ || (PAGES[i].title[0] == 'T' && PAGES[i].title[1] == 'I')))
|
||||
return 0; /* (V10.8: TIMELINE, PARTS gone, the song mode's redesign) */
|
||||
if (PAGES[i].graph == GR_LIVE || PAGES[i].graph == GR_SHAPE || PAGES[i].graph == GR_GCOMP || /* (V10.8.21: GLO > G.COMP gone) */
|
||||
PAGES[i].id[0] == ID_MU0) /* (V10.8.20, the owner: SEQ >
|
||||
* STRETCH and MUTATE gone for the flash; kept in the table: their
|
||||
* index; ROTATE's P_SOFS, MUTATE's settings kept in the projects) */
|
||||
return 0; /* (V10.8.3, the owner: GLO > LIVE gone for the song mode's flash) */ /* (0.6.24) the song in one place: SAVE > ARRANGE (SEQ > SONG
|
||||
* was the same page twice; kept in the table: its index) */
|
||||
if (PAGES[i].graph == GR_LIVE || PAGES[i].graph == GR_SHAPE || PAGES[i].graph == GR_GCOMP || PAGES[i].graph == GR_STAGE)
|
||||
return 0; /* (V10.8.3: GLO > LIVE, V10.8.20: SEQ > STRETCH, V10.8.21: GLO >
|
||||
* G.COMP, V10.8.35: ENV > STAGE gone for the flash (the owner);
|
||||
* kept in the table: their index) */
|
||||
if (sys_load == LOAD_ECO && ((PAGES[i].graph == GR_SLCR || PAGES[i].graph == GR_SLPIT) ||
|
||||
(PAGES[i].fam == FAM_FX && PAGES[i].id[0] == G_CRATE)))
|
||||
return 0; /* (0.6.30) LOAD ECO: no SLICER, no chorus: their pages gone */
|
||||
|
||||
+2
-13
@@ -1278,17 +1278,6 @@ static void draw_columns(void)
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (cur_page()->graph == GR_STAGE) { /* (0.8.5) ENV > STAGE: the stage, its value (codex/coherence: LOOP
|
||||
* on ENV DEST alone) */
|
||||
uint32_t id = P_ATK + (ui.stage & 3u);
|
||||
int16_t *vp = &TSEL->p[id];
|
||||
hot_gauge_column(0, "STAGE", TP[id].label, (int32_t)(ui.stage & 3u) * 1000 / 3);
|
||||
card_mot_of(vp);
|
||||
pf_column(1, TP[id].label, &TP[id], *vp, VAL(1u), ICON_NONE);
|
||||
empty_column(2);
|
||||
text_column(3, "", "", T_DIM);
|
||||
return;
|
||||
}
|
||||
if (cur_page()->graph == GR_DXSND) { /* EDIT > SOUND (ui_dx.c) */
|
||||
dx_cards(cur_page());
|
||||
return;
|
||||
@@ -1809,8 +1798,8 @@ static __attribute__((noinline)) void spl_seg(int32_t x0, int32_t y0, int32_t x1
|
||||
/* 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)
|
||||
* the logo's start (V10.8.35: in the image again, its edges still the Bluetooth segment's: without it, the screen dark that while) */
|
||||
static __attribute__((noinline)) 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++) {
|
||||
|
||||
+89
-136
@@ -28,7 +28,7 @@ static eu_t eu[NTRK];
|
||||
static uint8_t eu_z[NTRK][EU_ZN]; /* (V10.16) each track's anchor: what MUTATE orbits, OCT- returns to */
|
||||
static uint32_t eu_s, eu_ms;
|
||||
enum { EK_HITS, EK_STEPS, EK_ROT, EK_K4, EK_M0, EK_U0 = EK_M0 + EU_M, EK_N = EK_U0 + 4 };
|
||||
static const uint8_t EU_MX[4] = {5, 100, 2, 3}; /* (V10.16) MUTATE's settings' tops */
|
||||
#define EU_EV 4 /* (V10.8.35) MUTATE's EVERY: OFF, 1, 2, 4, 8 bars */
|
||||
static uint16_t eu_zs[NTRK]; /* (V10.24) the anchor's seed (OCT- returns to it too) */
|
||||
/* (V10.28) the sequence the track had (recorded, edited, a song's) when EUCLID came to it: a kit's lanes step by step;
|
||||
* a melody's first note of each step (bit 7: a chord), 1 a held step, 0 none. EUCLID transforms it: its rhythm until
|
||||
@@ -141,7 +141,6 @@ static eu_t *eu_of(uint32_t k)
|
||||
e->seed = e->prev = (uint16_t)(1u + k * 7u);
|
||||
e->a.n = 16; e->l[0].n = 16;
|
||||
eu_kit(e);
|
||||
e->mu[1] = 50;
|
||||
eu_anchor(k);
|
||||
}
|
||||
eu_take(k % NTRK, e);
|
||||
@@ -455,13 +454,11 @@ static param_desc_t eu_d;
|
||||
static const param_desc_t *eu_desc(uint32_t k, int16_t **valp)
|
||||
{
|
||||
static const char *const LN[NLANE + 1] = {"ALL", "BD", "SD", "CP", "CH", "OH", "TM", "RS", "CB"};
|
||||
static const char *const MD[2][EU_M] = {{"CONTOUR", "RANGE", "MOTIF", "ROLE"}, {"ACCENT", "GHOST", "RATCHET", "VARY"}};
|
||||
static const char *const MD[2][EU_M] = {{"CONTOUR", "RANGE", "MOTIF", "VARY"}, {"ACCENT", "GHOST", "RATCHET", "VARY"}};
|
||||
static const char *const CT[7] = {"WALK", "UP", "DOWN", "ARCH", "WAVE", "LEAP", "RANDOM"}; /* (V10.7.66, the owner) */
|
||||
static const char *const MO[5] = {"OFF", "2", "3", "4", "8"};
|
||||
static const char *const RO[4] = {"MELODY", "CHORDS", "BASS", "ARP"}; /* (V10.7.67, the owner) */
|
||||
static const char *const MU[3][6] = {{"OFF", "1 BAR", "2 BARS", "4 BARS", "8 BARS", "16 BARS"}, {"ORBIT", "DRIFT", "PULSE"},
|
||||
{"GROOVE", "RHYTHM", "FEEL", "ALL"}};
|
||||
static const char *const ML[4] = {"EVERY", "AMOUNT", "MODE", "WHAT"};
|
||||
static const char *const MU[EU_EV + 1] = {"OFF", "1 BAR", "2 BARS", "4 BARS", "8 BARS"};
|
||||
eu_t *e = eu_of(song.sel);
|
||||
uint32_t dr = drum_track(TSEL) != 0;
|
||||
uint32_t al = dr && !(e->lane % (NLANE + 1u));
|
||||
@@ -473,19 +470,17 @@ static const param_desc_t *eu_desc(uint32_t k, int16_t **valp)
|
||||
else if (k == EK_STEPS) { eu_d.label = "STEPS"; eu_d.min = 2; eu_d.max = 64; eu_v[k] = L->n; }
|
||||
else if (k == EK_ROT) { eu_d.label = "ROTATE"; eu_d.max = L->n > 1u ? L->n - 1 : 0; eu_v[k] = L->r; }
|
||||
else if (k == EK_K4 && dr) { eu_d.label = "LANE"; eu_d.fmt = F_ENUM; eu_d.max = NLANE; eu_d.names = LN; eu_v[k] = e->lane; }
|
||||
else if (k == EK_K4) { eu_d.label = "VARY"; eu_d.max = 100; eu_v[k] = e->vary; }
|
||||
else if (k == EK_K4) { eu_d.label = "ROLE"; eu_d.fmt = F_ENUM; eu_d.max = 3; eu_d.names = RO; eu_v[k] = e->role; } /* (V10.8.35, the
|
||||
* owner: what the track plays, up front; VARY on MELODY) */
|
||||
else if (k < EK_U0) {
|
||||
eu_d.label = MD[dr][k - EK_M0]; eu_d.max = 100; eu_v[k] = e->m[k - EK_M0];
|
||||
if (!dr && k == EK_M0) { eu_d.fmt = F_ENUM; eu_d.max = 6; eu_d.names = CT; } /* (a melody: CONTOUR RANGE MOTIF CHORD) */
|
||||
else if (!dr && k == EK_M0 + 1u) { eu_d.min = 2; eu_d.max = 15; eu_v[k] = e->m[1] ? e->m[1] : 5; }
|
||||
else if (!dr && k == EK_M0 + 2u) { eu_d.fmt = F_ENUM; eu_d.max = 4; eu_d.names = MO; }
|
||||
else if (!dr) { eu_d.fmt = F_ENUM; eu_d.max = 3; eu_d.names = RO; eu_v[k] = e->role; } /* (V10.7.67) ROLE */
|
||||
else if (!dr) eu_v[k] = e->vary;
|
||||
}
|
||||
else { /* (V10.16) MUTATE */
|
||||
k -= EK_U0;
|
||||
eu_d.label = ML[k]; eu_d.max = EU_MX[k]; eu_v[k + EK_U0] = e->mu[k];
|
||||
if (k != 1u) { eu_d.fmt = F_ENUM; eu_d.names = MU[k ? k - 1u : 0u]; }
|
||||
k += EK_U0;
|
||||
else { /* (V10.8.35) MUTATE's EVERY (its other three gone) */
|
||||
eu_d.label = "EVERY"; eu_d.fmt = F_ENUM; eu_d.max = EU_EV; eu_d.names = MU; eu_v[k] = e->mu[0];
|
||||
}
|
||||
*valp = &eu_v[k];
|
||||
return &eu_d;
|
||||
@@ -498,17 +493,17 @@ static void eu_put(uint32_t k, int32_t v)
|
||||
uint32_t al = dr && !(e->lane % (NLANE + 1u));
|
||||
eul_t *L = al ? &e->a : &e->l[dr ? (e->lane + NLANE) % (NLANE + 1u) : 0];
|
||||
if (k == EK_K4 && dr) { e->lane = (uint8_t)clamp(v, 0, NLANE); ui.force = 1; return; }
|
||||
if (k >= EK_U0) { /* (V10.16) MUTATE: its settings (EVERY on: the anchor now) */
|
||||
if (k == EK_U0 && !e->mu[0] && v > 0) eu_anchor(song.sel);
|
||||
e->mu[k - EK_U0] = (uint8_t)clamp(v, 0, EU_MX[k - EK_U0]);
|
||||
if (k >= EK_U0) { /* (V10.8.35) MUTATE's EVERY (on: the anchor now) */
|
||||
if (!e->mu[0] && v > 0) eu_anchor(song.sel);
|
||||
e->mu[0] = (uint8_t)clamp(v, 0, EU_EV);
|
||||
ui.force = 1;
|
||||
return;
|
||||
}
|
||||
if (k == EK_HITS) L->h = (uint8_t)clamp(v, 0, al ? 8 : L->n);
|
||||
else if (k == EK_STEPS) { L->n = (uint8_t)clamp(v, 2, 64); if (!al && L->h > L->n) L->h = L->n; if (L->r >= L->n) L->r = 0; }
|
||||
else if (k == EK_ROT) L->r = (uint8_t)clamp(v, 0, L->n - 1);
|
||||
else if (k == EK_K4) e->vary = (uint8_t)clamp(v, 0, 100);
|
||||
else if (!dr && k == EK_M0 + 3u) e->role = (uint8_t)clamp(v, 0, 3);
|
||||
else if (k == EK_K4) e->role = (uint8_t)clamp(v, 0, 3);
|
||||
else if (!dr && k == EK_M0 + 3u) e->vary = (uint8_t)clamp(v, 0, 100);
|
||||
else e->m[(k - EK_M0) % EU_M] = (uint8_t)clamp(v, 0, 100);
|
||||
if (al && k < EK_K4) eu_kit(e); /* (ALL: the kit again, of DENSITY, STEPS, ROTATE) */
|
||||
if (k < EK_K4) e->rs &= (uint16_t)(al ? 0u : ~(1u << (dr ? (e->lane + NLANE) % (NLANE + 1u) : 0u))); /* (V10.28: the
|
||||
@@ -518,14 +513,66 @@ static void eu_put(uint32_t k, int32_t v)
|
||||
eu_gen(song.sel, 1);
|
||||
}
|
||||
|
||||
/* (V10.16 .. V10.8.19) MUTATE (the bar-by-bar mutations, its page) gone in V10.8.20 (the owner: the flash): its settings
|
||||
* (eu_t.mu) kept with the projects and the editor's descriptors, read by nothing */
|
||||
/* (V10.8.35, the owner: MUTATE back, compact) track k's settings moved from the anchor (what was dialled: it orbits it),
|
||||
* as far as VARY (a quarter at least): always a new seed (a melody: the anchor's notes crossed with a new seed's), HITS
|
||||
* (DENSITY) and ROTATE, the MODES; a lane picked: that lane's. (V10.16's AMOUNT, MODE and WHAT, its page's picture gone) */
|
||||
static void eu_mutate(uint32_t k, eu_t *e)
|
||||
{
|
||||
uint32_t dr = drum_track(&trk[k]) != 0, sl = e->lane % (NLANE + 1u), i, al = dr && !sl, p;
|
||||
eul_t *L = al ? &e->a : &e->l[dr ? sl - 1u : 0u];
|
||||
int32_t d;
|
||||
mut_n[k % NTRK]++; /* (V10.6z3) the editor's MUTATE push (editor.c) */
|
||||
memcpy((uint8_t *)e + EU_Z0, eu_z[k], EU_ZN);
|
||||
p = dr ? e->m[3] : e->vary;
|
||||
p = p < 25u ? 25u : p;
|
||||
d = (int32_t)(1u + p / 40u);
|
||||
eu_s ^= fm1_ms * 2654435761u + k + mut_n[k % NTRK] * 0x9E3779B9u; /* (V10.7.66: each mutation its own) */
|
||||
if (dr) e->seed = (uint16_t)(eu_rnd() | 1u);
|
||||
else { /* (V10.7.66) four to twelve of sixteen notes a new seed's */
|
||||
do e->s2 = (uint16_t)(eu_rnd() | 1u); while (__builtin_popcount((uint32_t)(e->s2 ^ e->seed)) < 6);
|
||||
do e->xm = (uint16_t)eu_rnd(); while (__builtin_popcount(e->xm) < 4 || __builtin_popcount(e->xm) > 12);
|
||||
}
|
||||
if (L->n) {
|
||||
if (eu_ch(p)) L->h = (uint8_t)clamp((int32_t)L->h + (eu_ch(50) ? d : -d), al || !dr ? 1 : 0, al ? 8 : L->n);
|
||||
if (eu_ch(p)) L->r = (uint8_t)((L->r + eu_rnd() % (1u + p * L->n / 200u)) % L->n);
|
||||
if (al) eu_kit(e);
|
||||
e->rs &= (uint16_t)(al ? 0u : ~(1u << (dr ? sl - 1u : 0u)));
|
||||
}
|
||||
for (i = 0; i < 3u; i++) { /* (a melody's CONTOUR RANGE MOTIF, a kit's ACCENT GHOST RATCHET) */
|
||||
static const uint8_t MX[2][3] = {{6, 15, 4}, {100, 100, 100}};
|
||||
int32_t st = dr ? (int32_t)p / 2 : 1 + (int32_t)p / 50;
|
||||
if (eu_ch(p)) e->m[i] = (uint8_t)clamp((int32_t)e->m[i] + (int32_t)(eu_rnd() % (uint32_t)(2 * st + 1)) - st, 0, MX[dr][i]);
|
||||
}
|
||||
eu_gen(k, 0);
|
||||
}
|
||||
/* called every UI frame: playing (not a song's chain), each track with EVERY on mutates in the last beat of every EVERY
|
||||
* bars (the pattern new from the next bar) */
|
||||
static void eu_tick(void)
|
||||
{
|
||||
uint32_t k, b = bar_n;
|
||||
for (k = 0; !song.playing && k < NTRK; k++) eu[k].bar = 0; /* (stopped: from the top again) */
|
||||
if (!song.playing || chain_busy() || beat_n != 3u || beat_pos < beat_samples() / 2u) return;
|
||||
for (k = 0; k < NTRK; k++) {
|
||||
eu_t *e = &eu[k];
|
||||
if (!e->on || !e->mu[0] || e->bar == (uint8_t)(b + 1u) || (b + 1u) % (1u << (e->mu[0] - 1u))) continue;
|
||||
e->bar = (uint8_t)(b + 1u);
|
||||
eu_mutate(k, e);
|
||||
if (k == song.sel) ui.force = 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* OCT+ a new variation, OCT- the one before ((V10.8.20) MUTATE's OCT+ / OCT- gone with it) */
|
||||
static void eu_oct(int up)
|
||||
/* MODES / MELODY: OCT+ a new variation, OCT- the one before; (V10.8.35) EUCLID and MUTATE: OCT+ a mutation now, OCT-
|
||||
* back to the anchor (what was dialled) */
|
||||
static void eu_oct(int up, int mu)
|
||||
{
|
||||
eu_t *e = eu_of(song.sel);
|
||||
if (chain_busy()) { ui_message("SONG PLAYS: STOP IT TO EDIT"); return; }
|
||||
if (mu) {
|
||||
if (up) eu_mutate(song.sel, e);
|
||||
else { memcpy((uint8_t *)e + EU_Z0, eu_z[song.sel], EU_ZN); e->seed = eu_zs[song.sel]; e->xm = 0; eu_gen(song.sel, 1); }
|
||||
ui_message(up ? "MUTATED" : "ANCHOR");
|
||||
return;
|
||||
}
|
||||
if (up) { e->prev = e->seed; e->seed = (uint16_t)(e->seed * 25173u + 13849u); }
|
||||
else { uint16_t s = e->seed; e->seed = e->prev; e->prev = s; }
|
||||
eu_anchor(song.sel);
|
||||
@@ -534,122 +581,28 @@ static void eu_oct(int up)
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------- the graph --- */
|
||||
/* (V10.24, the user's pick A) DRUM: the lanes as concentric rings (BD outside), each a cycle of its own STEPS at the turn
|
||||
* playing, its hits in its heat (few violet, many yellow); the lane picked bright, the others dimmed (ALL: all bright);
|
||||
* the lanes' names and HITS at the right. Melodic: the ring of the melody's cycle, the key in it, the notes as a roll.
|
||||
* Under the ring VARY's turns (A A' A'' B), the one playing marked */
|
||||
static void eu_ring(const track_t *t, int32_t cx, int32_t cy, int32_t rad, uint32_t lane, uint32_t n, uint32_t now, uint16_t col, int lit)
|
||||
{
|
||||
uint32_t len = (uint32_t)clamp(t->p[P_SLEN], 1, NSTEP), base, i;
|
||||
n = n && n < len ? n : len;
|
||||
base = now != ~0u ? now / n * n : 0u;
|
||||
if (base + n > len) base = len - n; /* (a lane whose STEPS do not divide the pattern: its last n) */
|
||||
now = now != ~0u ? now - base : ~0u;
|
||||
for (i = 0; i < n; i++) {
|
||||
uint32_t a = i * 65536u / n + 49152u;
|
||||
int32_t x = cx + ((rad * og_cos(a)) >> 15), y = cy + ((rad * og_sin(a)) >> 15), r;
|
||||
const step_t *s = &t->step[base + i];
|
||||
uint32_t hit = lane < NLANE ? (step_lanes_of(t,s) >> lane) & 1u : s->time == ST_NOTE && s->n;
|
||||
uint32_t acc = lane < NLANE && hit && ((step_accents_of(t,s) >> lane) & 1u);
|
||||
if (!hit) { if (lit) cv_rect(x, y, 1, 1, T_DIM); continue; }
|
||||
r = acc ? 3 : n > 24u ? 1 : 2;
|
||||
cv_rect(x - r, y - r, 2 * r + 1, 2 * r + 1, i == now && lit ? T_TEXT : col);
|
||||
if (lit && lane < NLANE && (step_lmode(s, lane) == LM_X2 || step_lmode(s, lane) == LM_X4))
|
||||
cv_frame(x - r - 2, y - r - 2, 2 * r + 5, 2 * r + 5, col);
|
||||
}
|
||||
}
|
||||
/* (V10.8.35, the owner: the ring simplified for the flash) one ring of dots, the cycle of STEPS at the turn playing: its
|
||||
* hits lit in the track's colour (an accent larger), the step playing white, ROTATE a mark outside its first step; a
|
||||
* DRUM track the lane picked (ALL: a step any lane hits). (V10.24's concentric lanes, their list, the key, the roll and
|
||||
* VARY's turns gone) */
|
||||
static __attribute__((noinline)) void graph_euclid(const track_t *t)
|
||||
{
|
||||
static const char *const LN[NLANE + 1] = {"ALL", "BD", "SD", "CP", "CH", "OH", "TM", "RS", "CB"};
|
||||
static const char *const NN[12] = {"C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"};
|
||||
static const char *const TN[4] = {"A", "A'", "A''", "B"};
|
||||
const eu_t *e = eu_of(song.sel);
|
||||
uint32_t dr = drum_track(t) != 0, len = (uint32_t)clamp(t->p[P_SLEN], 1, NSTEP), sl = e->lane % (NLANE + 1u), lane = (sl + NLANE) % (NLANE + 1u), i, n, tn, cyc;
|
||||
int32_t h = (int32_t)graph_h(), cy = h / 2 - 5, cx = 64, rad = h / 2 - 17 < 54 ? h / 2 - 17 : 54;
|
||||
uint32_t now = song.playing ? t->seq_idx % len : ~0u, t_now = now;
|
||||
char b[12];
|
||||
if (dr) { /* VARY's turns: of the lanes' least common length */
|
||||
for (cyc = 1, i = 0; i < NLANE; i++) {
|
||||
uint32_t a = cyc, c = e->l[i].n;
|
||||
if (!e->l[i].h || !c) continue;
|
||||
while (c) { uint32_t x = a % c; a = c; c = x; }
|
||||
cyc = cyc / a * e->l[i].n > 64u ? 64u : cyc / a * e->l[i].n;
|
||||
}
|
||||
tn = eu_turns(cyc < 2u ? 16u : cyc, e->m[3]);
|
||||
} else
|
||||
tn = eu_turns(e->l[0].n ? e->l[0].n : 16u, e->vary);
|
||||
if (tn > 1u) { /* the turns, under the ring */
|
||||
uint32_t tp = now != ~0u ? now / (len / tn ? len / tn : 1u) % tn : 0u;
|
||||
for (i = 0; i < tn; i++) {
|
||||
int32_t x = cx - (int32_t)tn * 13 + 4 + (int32_t)i * 26;
|
||||
const char *nm = tn == 2u ? TN[i * 3u] : TN[i];
|
||||
cv_text_in(x - 4, h - 12, 22, &AF_X, nm, i == tp ? T_ACCENT : T_DIM, T_SURF);
|
||||
if (i == tp) cv_rect(x, h - 3, 14, 1, T_ACCENT);
|
||||
}
|
||||
}
|
||||
if (dr) {
|
||||
uint32_t nl = 0, k = 0;
|
||||
int32_t gap;
|
||||
for (i = 0; i < NLANE; i++) nl += e->l[i].h != 0u || (sl && i == lane);
|
||||
gap = (rad - 10) / (int32_t)(nl > 1u ? nl - 1u : 1u);
|
||||
gap = gap > 12 ? 12 : gap;
|
||||
for (k = 0; k < 2u; k++) /* the rings: the picked lane last, over the others */
|
||||
for (i = 0; i < NLANE; i++) {
|
||||
uint32_t r = 0, j, nn = e->l[i].n ? e->l[i].n : 1u, lit = !sl || i == lane;
|
||||
uint16_t c = heat_col(48 + (int32_t)(e->l[i].h * 200u / nn));
|
||||
if ((!e->l[i].h && !(sl && i == lane)) || (sl && (i == lane) != (k == 1u)) || (!sl && k)) continue;
|
||||
for (j = 0; j < i; j++) r += e->l[j].h != 0u || (sl && j == lane);
|
||||
eu_ring(t, cx, cy, rad - (int32_t)r * gap, i, nn, now, lit ? c : ux_mix(c, T_SURF, 68), (int)lit);
|
||||
}
|
||||
cv_text_in(cx - 20, cy - 5, 40, &AF_X, LN[sl], T_ACCENT, T_SURF);
|
||||
for (i = 0; i < NLANE; i++) { /* the lanes */
|
||||
int32_t y = 6 + (int32_t)i * (h - 12) / NLANE, rh = (h - 12) / NLANE - 2;
|
||||
uint32_t on = sl ? i == lane : e->l[i].h != 0u, nn = e->l[i].n ? e->l[i].n : 1u; /* (ALL: the lanes it plays) */
|
||||
uint16_t c = on ? T_TEXT : e->l[i].h ? T_MID : T_DIM;
|
||||
if (sl && on) cv_rect(136, y, 98, rh, T_RAISE);
|
||||
cv_rect(136, y, 2, rh, sl && on ? T_ACCENT : T_SURF);
|
||||
cv_text(144, y + (rh - 8) / 2, &AF_X, LN[i + 1u], c);
|
||||
fmt_frac(b, e->l[i].h, e->l[i].n);
|
||||
cv_text_r(230, y + (rh - 8) / 2, &AF_X, b, e->l[i].h ? heat_col(48 + (int32_t)(e->l[i].h * 200u / nn)) : T_DIM, sl && on ? T_RAISE : T_SURF);
|
||||
}
|
||||
return;
|
||||
}
|
||||
n = e->l[0].n;
|
||||
eu_ring(t, cx, cy, rad, NLANE, n, now, T_THEME, 1);
|
||||
str_cpy(b, NN[e->root % 12u], sizeof b); /* the key, in the ring: its root, its scale */
|
||||
cv_text_in(cx - 30, cy - 14, 60, &AF_M, b, T_TEXT, T_SURF);
|
||||
for (i = 1; i < sizeof SCALE_MASK / sizeof SCALE_MASK[0] && SCALE_MASK[i] != e->mask; i++) {}
|
||||
if (i < sizeof SCALE_MASK / sizeof SCALE_MASK[0])
|
||||
cv_text_in(cx - 30, cy + 6, 60, &AF_X, N_SCALE[i], T_MID, T_SURF);
|
||||
{ /* the roll */
|
||||
int32_t x0 = 134, y0 = 8, w = 100, rh = h - 30, lo = 127, hi = 0, cw;
|
||||
uint32_t c;
|
||||
for (i = 0; i < len; i++)
|
||||
for (c = 0; t->step[i].time == ST_NOTE && c < t->step[i].n && c < 4u; c++) {
|
||||
lo = t->step[i].note[c] < lo ? t->step[i].note[c] : lo;
|
||||
hi = t->step[i].note[c] > hi ? t->step[i].note[c] : hi;
|
||||
}
|
||||
if (hi < lo) { lo = 60; hi = 72; }
|
||||
if (hi - lo < 12) { lo -= (12 - (hi - lo)) / 2; hi = lo + 12; }
|
||||
cw = w / (int32_t)(len ? len : 1u);
|
||||
cw = cw < 1 ? 1 : cw;
|
||||
cv_frame(x0 - 1, y0 - 1, w + 2, rh + 2, T_DIM);
|
||||
for (i = 0; i < len && (int32_t)i * cw < w; i++) {
|
||||
const step_t *s = &t->step[i];
|
||||
uint32_t g = 1;
|
||||
if (s->time != ST_NOTE) continue;
|
||||
while (i + g < len && t->step[i + g].time == ST_TIE) g++;
|
||||
for (c = 0; c < s->n && c < 4u; c++) {
|
||||
int32_t y = y0 + rh - 3 - (s->note[c] - lo) * (rh - 4) / (hi - lo);
|
||||
cv_rect(x0 + (int32_t)i * cw, y, (int32_t)g * cw - 1 > 1 ? (int32_t)g * cw - 1 : 1, 3, c ? T_ACCENT : T_THEME);
|
||||
}
|
||||
}
|
||||
if (t_now != ~0u) cv_rect(x0 + (int32_t)t_now * cw, y0, 1, rh, T_TEXT);
|
||||
if (e->own) str_cpy(b, e->rl && (e->rs & 1u) ? "YOUR SEQ" : "YOUR NOTES", sizeof b);
|
||||
else if (e->src == 0u) str_cpy(b, "SCL", sizeof b);
|
||||
else if (e->src == 7u) str_cpy(b, "NEW KEY", sizeof b);
|
||||
else { str_cpy(b, "FROM T1", sizeof b); b[6] = (char)('0' + e->src); }
|
||||
cv_text_in(x0, y0 + rh + 6, w, &AF_X, b, e->src == 7u ? T_ACCENT : T_MID, T_SURF);
|
||||
uint32_t dr = drum_track(t) != 0, len = (uint32_t)clamp(t->p[P_SLEN], 1, NSTEP), sl = dr ? e->lane % (NLANE + 1u) : 1u, i;
|
||||
const eul_t *L = sl ? &e->l[sl - 1u] : &e->a;
|
||||
uint32_t n = L->n && L->n < len ? L->n : len, now = song.playing ? t->seq_idx % len : ~0u, base = now != ~0u ? now / n * n : 0u;
|
||||
int32_t h = (int32_t)graph_h(), cy = h / 2, rad = h / 2 - 10 < 54 ? h / 2 - 10 : 54;
|
||||
uint16_t col = trk_col(song.sel);
|
||||
if (base + n > len) base = len - n; /* (STEPS that do not divide the pattern: its last n) */
|
||||
for (i = 0; i < n; i++) {
|
||||
uint32_t a = i * 65536u / n + 49152u, lm;
|
||||
int32_t x = 120 + ((rad * og_cos(a)) >> 15), y = cy + ((rad * og_sin(a)) >> 15), r = n > 24u ? 1 : 2;
|
||||
const step_t *s = &t->step[base + i];
|
||||
lm = dr ? step_lanes_of(t, s) & (sl ? 1u << (sl - 1u) : 0xFFu) : s->time == ST_NOTE && s->n;
|
||||
if (i == L->r % n) /* ROTATE: where the cycle starts */
|
||||
cv_rect(120 + (((rad + 7) * og_cos(a)) >> 15), cy + (((rad + 7) * og_sin(a)) >> 15), 2, 2, T_ACCENT);
|
||||
if (!lm) { cv_rect(x, y, 1, 1, T_DIM); continue; }
|
||||
if (dr && (step_accents_of(t, s) & lm)) r++;
|
||||
cv_rect(x - r, y - r, 2 * r + 1, 2 * r + 1, base + i == now ? T_TEXT : col);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1455,8 +1455,6 @@ static __attribute__((noinline)) uint32_t graph_signature(void)
|
||||
h ^= (mod_ui_slot + 1u) * 40503u;
|
||||
if (pg->graph == GR_FOCUS) /* (0.8.5) EDIT > FOCUS: the parameter */
|
||||
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 */
|
||||
h ^= (pd_level() + 1u) * 668265263u;
|
||||
if (pd_cur() == PD_MOD && pg->graph != GR_MSEQ) /* (V10.8.16: ENV's TRACKS gone, its term with it) (MOD's pulse,
|
||||
|
||||
+44
-12
@@ -673,6 +673,45 @@ static void sfx_keys(void)
|
||||
hc_trk = (uint8_t)song.sel;
|
||||
hc_act = w < 16u ? SFX_KA[w] : 0u;
|
||||
}
|
||||
/* (V10.8.35, the owner: LIVE back, compact) STEP FX's black keys 1..7 held: the selected track's live modifiers (seq_live.c:
|
||||
* how the sequencer walks, never the steps; let go, back in phase on its ghost): RATE x2, x3/2, x2/3, REVERSE, PING-PONG,
|
||||
* RANDOM, THIN (half the steps silent); several at once add up (the last rate, the last direction); in on the 1/16.
|
||||
* Black keys 8 / 9 pressed: GIRO, the playhead a step back / on (it stays there: the other key, or PLAY again, back) */
|
||||
static const char LVK_NM[9][10] = {"RATE x2", "RATE x3/2", "RATE x2/3", "REVERSE", "PING-PONG", "RANDOM", "THIN", "GIRO -",
|
||||
"GIRO +"};
|
||||
static uint16_t lvk_held;
|
||||
static uint8_t lvk_trk;
|
||||
static void lvk_keys(uint32_t on)
|
||||
{
|
||||
static const int8_t KR[3] = {2, 1, -1};
|
||||
uint32_t k, p, held = 0, kk[9] = {0}, len = (uint32_t)clamp(TSEL->p[P_SLEN], 1, NSTEP);
|
||||
lv_mod_t m = {0};
|
||||
for (k = 0; on && k < 27u; k++)
|
||||
if (((fm1_in.notes >> k) & 1u) && key_black(k) && (p = key_place(k)) < 9u) {
|
||||
held |= 1u << p;
|
||||
kk[p] = k;
|
||||
if (p < 3u) m.rate = KR[p];
|
||||
else if (p < 6u) m.fl = (uint8_t)((p - 2u) << 1);
|
||||
else if (p == 6u) m.drop = 50;
|
||||
}
|
||||
if (held == lvk_held && (!held || lvk_trk == song.sel))
|
||||
return;
|
||||
for (k = 0; k < 9u; k++)
|
||||
if ((held & ~(uint32_t)lvk_held) >> k & 1u) {
|
||||
ui_message(LVK_NM[k]);
|
||||
bn_set(LVK_NM[k], kk[k], 1);
|
||||
if (k >= 7u && song.playing) /* GIRO: the step after this one a step back / on */
|
||||
TSEL->jump_to = (uint8_t)((TSEL->seq_idx + (k - 7u) * 2u) % len + 1u);
|
||||
}
|
||||
if ((lvk_held & 0x7Fu) && lvk_trk != song.sel) /* (another track picked: the one before let go) */
|
||||
memset(&lv.want[lvk_trk % NTRK], 0, sizeof m), lv.rq[lvk_trk % NTRK]++;
|
||||
lvk_held = (uint16_t)held;
|
||||
lvk_trk = (uint8_t)song.sel;
|
||||
lv.want[song.sel % NTRK] = m;
|
||||
lv.r16 |= (uint8_t)(1u << song.sel % NTRK);
|
||||
lv.rq[song.sel % NTRK]++; /* (live_q: it goes in on the next 1/16) */
|
||||
lv.busy = 1;
|
||||
}
|
||||
static void comp_keys(uint32_t pressed) /* (V10.8.9: the black keys PG UP / DN only; the white keys hold */
|
||||
{ /* components, sfx_keys; PRESETS picks the step) */
|
||||
uint32_t k, p;
|
||||
@@ -1338,16 +1377,6 @@ static void edit_param(uint32_t slot, int32_t steps)
|
||||
focus_knob(slot, steps);
|
||||
return;
|
||||
}
|
||||
if (pg->graph == GR_STAGE && slot < 2u) { /* (0.8.5) ENV > STAGE: the stage, its value */
|
||||
if (slot == 0u)
|
||||
ui.stage = (uint8_t)clamp((int32_t)(ui.stage & 3u) + (steps > 0 ? 1 : -1), 0, 3);
|
||||
else {
|
||||
uint32_t id = P_ATK + (ui.stage & 3u);
|
||||
TSEL->p[id] = (int16_t)param_turn(&TP[id], TSEL->p[id], accel(EN_K1 + 1u, steps, 127));
|
||||
knob_cap(TSEL, id);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if(pg->graph==GR_LYRSTEP) {
|
||||
if(!slot) cursor_set((int32_t)ui.cursor+steps);
|
||||
if(slot==1u) {lyric_word=(uint8_t)clamp((int32_t)lyric_word+steps,0,31);lyric_syl=1;}
|
||||
@@ -2435,6 +2464,7 @@ static void ui_input(void)
|
||||
ui_input_frame();
|
||||
if (mxn_s) mx_banner(); /* (V10.8.22) the value turned, its route in full */
|
||||
if (!ui_preview_ok() && (preview_req || preview_left)) preview_req = PREVIEW_CANCEL;
|
||||
eu_tick(); /* (V10.8.35) EUCLID's MUTATE, on the bar */
|
||||
gen_tick(); /* (V10.7.66) GEN on the bar, ENTRY BUILD */
|
||||
scale_link(); /* (JIANT 0.4) one scale for every melodic track (after the
|
||||
* frame's edits) */
|
||||
@@ -2921,7 +2951,8 @@ static void ui_input_frame(void)
|
||||
break;
|
||||
}
|
||||
if (!ui.home && !ui.menu && !ui.confirm && cur_page()->graph == GR_EUCLID) { /* (V10.6) EUCLID / MODES: */
|
||||
eu_oct(b == B_OCTUP); /* OCT+ a new variation, OCT- the one before */
|
||||
eu_oct(b == B_OCTUP, cur_page()->id[0] != ID_EU0 + 4u); /* (V10.8.35) EUCLID, MUTATE: OCT+ mutates,
|
||||
* OCT- the anchor; MODES / MELODY: a new variation, the one before */
|
||||
break;
|
||||
}
|
||||
oct_key(b, both); /* (V10.6z4: a note held, the expression keys) */
|
||||
@@ -2981,6 +3012,7 @@ static void ui_input_frame(void)
|
||||
sfx_keys();
|
||||
else
|
||||
hc_act = 0, sfx_key = 16;
|
||||
lvk_keys((uint32_t)ckeys_on()); /* (V10.8.35) .. its black keys, the live modifiers */
|
||||
if (ckeys_on()) { /* (seq2g) SEQ > COMP: the keys pick the step */
|
||||
comp_keys(notes);
|
||||
} else if (skeys_on()) { /* (V10.6o) PARTS, TIMELINE: theirs */
|
||||
@@ -3051,7 +3083,7 @@ static void ui_input_frame(void)
|
||||
if (ui.home || pg->scope == SC_STEP || pg->scope == SC_TRK || page_desc(pg, k, &hv) ||
|
||||
((pg->graph == GR_USER || pg->graph == GR_MOD || pg->graph == GR_MSEQ || pg->graph == GR_PATS || BAR_PAGE(pg)) &&
|
||||
k == 0u)
|
||||
|| FIT_PAGE(pg) || SPLIT_PAGE(pg) || pg->graph == GR_SONG || pg->graph == GR_DXSND || pg->graph == GR_SWARM || pg->graph == GR_FOCUS || pg->graph == GR_STAGE ||
|
||||
|| FIT_PAGE(pg) || SPLIT_PAGE(pg) || pg->graph == GR_SONG || pg->graph == GR_DXSND || pg->graph == GR_SWARM || pg->graph == GR_FOCUS ||
|
||||
pg->graph == GR_GCOMP || pg->graph == GR_LIVE) { /* (not an empty column) */
|
||||
ui.hot_col = (uint8_t)k;
|
||||
ui.hot_t = 40, ui.knob_ms = fm1_ms;
|
||||
|
||||
@@ -232,7 +232,7 @@ static __attribute__((noinline)) int16_t *mom_vp(uint32_t k, const param_desc_t
|
||||
*d = home_param(k, &vp);
|
||||
} else {
|
||||
if (FIT_PAGE(pg) || pg->scope == SC_STEP || pg->scope == SC_TRK || ((act_cols() >> k) & 1u) || g == GR_COMP || g == GR_GCOMP ||
|
||||
g == GR_FUGUE || g == GR_CHANCE || g == GR_DXSND || g == GR_SWARM || g == GR_FOCUS || (g == GR_STAGE && k < 2u) ||
|
||||
g == GR_FUGUE || g == GR_CHANCE || g == GR_DXSND || g == GR_SWARM || g == GR_FOCUS ||
|
||||
g == GR_EVENTS || g == GR_MOTION || g == GR_SONG || g == GR_BROWSE || g == GR_TOOLS || g == GR_SLOTS ||
|
||||
g == GR_USER || g == GR_PATS || DX_KIT3(pg) || fop_page(g) ||
|
||||
(k == 0u && (BAR_PAGE(pg) || g == GR_SLPIT || g == GR_MSEQ || g == GR_MOD)))
|
||||
|
||||
@@ -78,7 +78,7 @@ enum { LV_PAT, LV_BAR, LV_STEP, LV_N }; /* SEQ's pictures: the b
|
||||
* PLAYHEADS . STRETCH . COMP (COMP 2 after it, by SELECT as before) . AUTO (AUTOMATION, AUTO LIST). BAR and NOTE stay pages
|
||||
* (code puts them) but out of the chain, until the step held opens its own (the mock-up's slice 5) */
|
||||
static const nv_t CE_SEQ[] = {NV("STEP", 0, 0, LV_BAR), NV("PATTERN", "LENGTH", 1, LV_PAT), NV("RHYTHM", 0, 1, LV_PAT), NV("TRACK", 0, 1, LV_PAT),
|
||||
NV("EUCLID", 0, 2, LV_PAT), NV("MODES", 0, 2, LV_PAT),
|
||||
NV("EUCLID", 0, 2, LV_PAT), NV("MODES", 0, 2, LV_PAT), NV("MUTATE", 0, 2, LV_PAT), /* (V10.8.35) */
|
||||
NV("PLAYHEADS", 0, 3, LV_PAT),
|
||||
NV("COMP", "STEP FX", 4, LV_STEP), NV("COMP 2", "STEP FX 2", 4, LV_STEP), NV("AUTOMATION", 0, 5, LV_BAR),
|
||||
NV("AUTO LIST", 0, 5, LV_BAR), NV("LYRIC STEP",0,5,LV_BAR),NV("TRACK GEN",0,6,LV_BAR),
|
||||
@@ -106,11 +106,11 @@ static const nv_t CE_GLO[] = {NV("MIXER", 0, 0, 0), NV("SENDS", 0, 0, 0), /* (
|
||||
* (ui_live.c) */
|
||||
static const ng_t CG_GLO[] = {{"MIXER", "MIX"}, {"SETUP", 0}}; /* (codex/coherence: SETUP, the
|
||||
* settings in one group: GLOBAL, SYSTEM, SYSTEM 2, KEY SPLIT) */ /* (five tabs of 44 px in the labels' face) */
|
||||
static const nv_t CE_ENV[] = {NV("ENV", 0, 0, 1), NV("ENV DEST", 0, 0, 1), NV("ENV 2", 0, 0, 1), NV("STAGE", 0, 1, 2)}; /* (V10.8.16, the owner: TRACKS, the six
|
||||
static const nv_t CE_ENV[] = {NV("ENV", 0, 0, 1), NV("ENV DEST", 0, 0, 1), NV("ENV 2", 0, 0, 1)}; /* (V10.8.35, the owner: STAGE gone) */ /* (V10.8.16, the owner: TRACKS, the six
|
||||
* envelopes together, gone for ENV's layers' room) */ /* (V10.22: ENV 2) (codex/coherence) the track's pages first;
|
||||
* TRACKS, the six tracks' envelopes at a glance (ENV's knobs), last
|
||||
* (TRACKS DEST, ENV DEST's twin, gone) */
|
||||
static const ng_t CG_ENV[] = {{"ENV", 0}, {"STAGE", 0}};
|
||||
static const ng_t CG_ENV[] = {{"ENV", 0}};
|
||||
static const nv_t CE_LFO[] = {NV("MOD", 0, 0, 0), NV("LFO", 0, 1, 1), NV("LFO 2", 0, 1, 1), NV("LFO DEST", 0, 1, 1),
|
||||
NV("MSEQ", "MOD SEQ", 2, 2), NV("MSEQ 2", "MOD SEQ 2", 2, 2)}; /* (0.9.18: LFO 2, PHASE) */
|
||||
static const ng_t CG_LFO[] = {{"MODULATION", "MOD"}, {"LFO", 0}, {"MOD SEQUENCE", "MOD SEQ"}}; /* (V10.7.59: MOD SEQ) */
|
||||
@@ -385,6 +385,8 @@ static __attribute__((noinline)) const char *nav_page_name(void)
|
||||
return b;
|
||||
}
|
||||
str_cpy(b, v->nm ? v->nm : v->t, 24);
|
||||
if (sec == SEC_SEQ && b[0] == 'M' && b[1] == 'O' && !drum_track(TSEL)) /* (V10.8.35) MODES a melodic track's MELODY */
|
||||
return "MELODY";
|
||||
if (sec == SEC_EDIT && v->g == 0u && !v->nm && PAGES[ui.page].scope == SC_ENGINE) { /* (EDIT 1 . OSC) */
|
||||
const char *pt = trk_engp(TSEL)->page_title[PAGES[ui.page].id[0] != P_E0];
|
||||
if (trk_eng(TSEL) == ENGI_ANALOG) /* (codex/coherence) EDIT . OSC: ANALOG has no EDIT 2 */
|
||||
|
||||
@@ -58,11 +58,7 @@ static int32_t ed_resp(uint32_t ty, int32_t x, int32_t xc, int32_t res)
|
||||
int32_t bump = pk * 64 / (64 + d * d / 2);
|
||||
if (ty == 3u || ty == 4u) /* COMB: teeth CUT apart, as deep as RES (COMB-: between) */
|
||||
return 62 - (int32_t)(((ty == 4u ? -1 : 1) * og_cos((uint32_t)x * (uint32_t)(4096 + xc * 160)) * (8 + pk / 2)) >> 15);
|
||||
if (ty == 5u) /* (snd1) MS20: a low-pass, its peak higher */
|
||||
bump += bump / 2;
|
||||
if (ty == 6u) /* (V10.22) LP24: twice as steep */
|
||||
return clamp(62 + (d > 0 ? 4 * d : 0) - bump, 8, 104);
|
||||
y = ty == 0u || ty == 5u ? (d > 0 ? 2 * d : 0) : ty == 1u ? (d < 0 ? 2 * a : 0) : 2 * a / 3; /* LP HP BP */
|
||||
y = ty == 0u ? (d > 0 ? 2 * d : 0) : ty == 1u ? (d < 0 ? 2 * a : 0) : 2 * a / 3; /* LP HP BP */
|
||||
return clamp(62 + y - bump - (ty == 2u ? pk / 3 : 0), 8, 104);
|
||||
}
|
||||
static void graph_filter_lz(const track_t *t, const page_t *pg)
|
||||
|
||||
@@ -26,43 +26,11 @@ static void env_mini(const track_t *t, int32_t x, int32_t y, int32_t w, int32_t
|
||||
py = yy;
|
||||
}
|
||||
}
|
||||
static void graph_stage(const track_t *t)
|
||||
{
|
||||
static const char *const SN[4] = {"ATTACK", "DECAY", "SUSTAIN", "RELEASE"};
|
||||
uint32_t sg = ui.stage & 3u, id = P_ATK + sg;
|
||||
int32_t a = 2 + t->p[P_ATK] * 56 / 127, d = 3 + t->p[P_DEC] * 56 / 127, r = 3 + t->p[P_REL] * 56 / 127;
|
||||
int32_t x0 = 10, x1 = x0 + a, x2 = x1 + d, x3 = 226 - r, sx[5] = {x0, x1, x2, x3, 226}, x, py = 0;
|
||||
int32_t s = t->p[P_SUS] * 1000 / 127, v = t->p[id] * 1000 / 127;
|
||||
const char *u = "";
|
||||
char b[24];
|
||||
cv_rect(sx[sg], 4, sx[sg + 1u] - sx[sg], 40, T_TINT); /* the stage picked, on the whole envelope */
|
||||
env_mini(t, 10, 6, 216, 36, T_MID, 1);
|
||||
for (x = 0; x <= 216; x++) { /* its own shape, large: up, down to SUS, held, down to 0 */
|
||||
int32_t q = x * 1000 / 216, e = 1000 - (int32_t)((int64_t)(1000 - q) * (1000 - q) * (1000 - q) / 1000000), y;
|
||||
y = sg == 0u ? q : sg == 1u ? 1000 - (1000 - s) * e / 1000 : sg == 2u ? s : s - s * e / 1000;
|
||||
if (sg == 0u) /* (ATK: slow or fast as it is) */
|
||||
y = 1000 - (int32_t)((int64_t)(1000 - q) * (1000 - q) / 1000) * (1000 - v / 2) / 1000 - (1000 - q) * v / 2000;
|
||||
y = 122 - y * 66 / 1000;
|
||||
if (x)
|
||||
cv_line_t(10 + x - 1, py, 10 + x, y, heat_y(y, 56, 122, T_THEME), 2);
|
||||
py = y;
|
||||
}
|
||||
cv_rect(10, 124, 217, 1, T_RAISE);
|
||||
ed_cap(10, 50, SN[sg], T_THEME);
|
||||
param_format(&TP[id], t->p[id], b, &u);
|
||||
str_cpy(b + str_len(b), u, 24 - str_len(b));
|
||||
cv_text_r(226, 50 - AF_X_CAP_Y, &AF_X, b, T_TEXT, T_SURF);
|
||||
cv_text(10, 128 - AF_X_CAP_Y, &AF_X, "0", T_DIM);
|
||||
cv_text_r(226, 128 - AF_X_CAP_Y, &AF_X, sg == 2u ? "HELD" : b, T_DIM, T_SURF);
|
||||
}
|
||||
/* the lens's panel for ENV's page pg (1), else 0 (its own) */
|
||||
static int graph_env_lz(const track_t *t, const page_t *pg)
|
||||
{
|
||||
if (pg->graph == GR_STAGE)
|
||||
graph_stage(t);
|
||||
else
|
||||
return 0;
|
||||
return 1;
|
||||
(void)t; (void)pg; /* (V10.8.35: STAGE, its only one, gone) */
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* LFO . MOD MOD: the matrix as a net, the sources down the left (those a slot reads lit), a curve from each slot's
|
||||
|
||||
@@ -250,6 +250,7 @@ static void up_values(const up_rec_t *r, int16_t *v) /* mapped and clamped for
|
||||
for (i = 0; i < P_COUNT; i++)
|
||||
def[i] = param_store_def(r->engine, i);
|
||||
up_params(r, v, def);
|
||||
if (v[P_FTYPE] > 4) v[P_FTYPE] = 0; /* (V10.8.35: MS20 and LP24 gone: LP) */
|
||||
for (i = 0; i < P_COUNT; i++)
|
||||
v[i] = (int16_t)param_fit(param_desc_of(r->engine, i), v[i]); /* (a retired KIT: the kit it plays) */
|
||||
}
|
||||
|
||||
+2
-82
@@ -166,74 +166,6 @@ static __attribute__((noinline)) void tf_sides(uint32_t ti, const tsvf_t *c, int
|
||||
static uint8_t tf_on[NTRK], tf_ft[NTRK]; /* the SVF in the chain the last block; the TYPE playing (0.6.71: a
|
||||
* byte a track, not a bit: two cores write two tracks at once) */
|
||||
static uint8_t tf_cmb[NTRK]; /* (0.6.81) the COMB ran the last block (its line live) */
|
||||
/* (0.9.9-snd1) TYPE MS20, the owner's "more aggressive filter, the Korg MS-20's": a 2-pole low-pass whose resonance is a
|
||||
* positive feedback through a diode-like clip (the Sallen-Key's, the MS-20's: screaming, and controlled, the clip
|
||||
* setting how loud it can ring). Here the trapezoidal SVF (dsp.c) held at damping 2 (no resonance of its own: the
|
||||
* MS-20's soft knee at RES 0) and its band-pass fed back into the input through softclip (half full scale): its small-
|
||||
* signal damping 2 - kn, RES exponential to it (2 .. 0.03: Q 0.5 .. 33, a scream at the top that still dies out when
|
||||
* the part is silent: no whistle left on its own), a hot input clipped in the loop (the MS-20's growl). The clip's feedback a sample late (explicit: the
|
||||
* linear part stable, the clip bounded: bounded however it is driven). CUT, LFO / ENV DEST FILTER as the SVF's; on
|
||||
* ANALOG and LOFI the part's (their own filter open), at ANALOG's CUT RES (E4 E5) */
|
||||
static uint8_t tf_ms[NTRK]; /* (snd1) MS20 ran the last block (its state live) */
|
||||
static int32_t ms_s[NTRK][3]; /* .. its state: the SVF's ic1 ic2, the band-pass a sample back */
|
||||
static __attribute__((noinline)) void tf_ms20(uint32_t ti, int32_t *out, uint32_t n, int32_t cut, int32_t res)
|
||||
{
|
||||
int32_t ic1 = ms_s[ti][0], ic2 = ms_s[ti][1], bp = ms_s[ti][2], r = clamp(res, 0, 127), kn, xq;
|
||||
uint32_t i;
|
||||
tsvf_t c;
|
||||
if (!tf_ms[ti]) { /* in: from rest at the input (no step) */
|
||||
ic1 = bp = 0;
|
||||
ic2 = out[0];
|
||||
}
|
||||
tsvf_coef_k(&c, cut, 8192);
|
||||
xq = r * 1536 / 127; /* the damping left 2 x 2^-(6 RES / 127): 2 .. 0.03 (Q 0.5 .. 33) */
|
||||
kn = 8192 - (((8192 * (65536 - ((xq & 255) << 7))) >> 16) >> (xq >> 8)); /* Q12 */
|
||||
for (i = 0; i < n; i++) {
|
||||
int32_t x = clamp(out[i] + ((kn * softclip(bp * 2)) >> 13), -60000, 60000); /* the diode's feedback */
|
||||
int32_t v3 = x - ic2, v1 = (c.a1 * ic1 + c.a2 * v3) >> 13, v2 = ic2 + ((c.a2 * ic1 + c.a3 * v3) >> 13);
|
||||
ic1 = clamp(2 * v1 - ic1, -150000, 150000);
|
||||
ic2 = clamp(2 * v2 - ic2, -150000, 150000);
|
||||
bp = v1;
|
||||
out[i] = soft_knee(v2 - (v2 >> 2), 16000); /* (3/4: its ring about the dry's level, under full scale) */
|
||||
}
|
||||
ms_s[ti][0] = ic1;
|
||||
ms_s[ti][1] = ic2;
|
||||
ms_s[ti][2] = bp;
|
||||
tf_ms[ti] = 1;
|
||||
}
|
||||
/* (V10.22) TYPE LP24 (a tester: "a 24 dB/oct ladder filter"): two of the SVF's low-passes in a row, 4 poles, the first
|
||||
* plain (damping 2), RES on the second (its peak, the ladder's), a soft knee after it; CUT, LFO / ENV DEST FILTER as the
|
||||
* SVF's; on ANALOG and LOFI the part's at their CUT RES (their own filter open), as MS20 */
|
||||
static uint8_t tf_l24[NTRK]; /* LP24 ran the last block (its state live) */
|
||||
static int32_t l24_s[NTRK][4]; /* .. its two stages' ic1 ic2 */
|
||||
static __attribute__((noinline)) void tf_lp24(uint32_t ti, int32_t *out, uint32_t n, int32_t cut, int32_t res)
|
||||
{
|
||||
int32_t a1 = l24_s[ti][0], a2 = l24_s[ti][1], b1 = l24_s[ti][2], b2 = l24_s[ti][3];
|
||||
uint32_t i;
|
||||
tsvf_t c1, c2;
|
||||
if (!tf_l24[ti]) { /* in: from rest at the input (no step) */
|
||||
a1 = b1 = 0;
|
||||
a2 = b2 = out[0];
|
||||
}
|
||||
tsvf_coef_k(&c1, cut, 8192);
|
||||
tsvf_coef(&c2, cut, clamp(res, 0, 127));
|
||||
for (i = 0; i < n; i++) {
|
||||
int32_t v3 = out[i] - a2, v1 = (c1.a1 * a1 + c1.a2 * v3) >> 13, v2 = a2 + ((c1.a2 * a1 + c1.a3 * v3) >> 13);
|
||||
a1 = clamp(2 * v1 - a1, -150000, 150000);
|
||||
a2 = clamp(2 * v2 - a2, -150000, 150000);
|
||||
v3 = v2 - b2;
|
||||
v1 = (c2.a1 * b1 + c2.a2 * v3) >> 13;
|
||||
v2 = b2 + ((c2.a2 * b1 + c2.a3 * v3) >> 13);
|
||||
b1 = clamp(2 * v1 - b1, -150000, 150000);
|
||||
b2 = clamp(2 * v2 - b2, -150000, 150000);
|
||||
out[i] = soft_knee(v2, 30000);
|
||||
}
|
||||
l24_s[ti][0] = a1;
|
||||
l24_s[ti][1] = a2;
|
||||
l24_s[ti][2] = b1;
|
||||
l24_s[ti][3] = b2;
|
||||
tf_l24[ti] = 1;
|
||||
}
|
||||
static uint8_t tf_xb[NTRK], tf_fo[NTRK]; /* (0.6.81) a TYPE's crossfade: its blocks left, the TYPE from (TF_DRY:
|
||||
* no filter) */
|
||||
#define TF_XB (256u / CTL) /* (~5 ms: one block's fade between two filters was a tick) */
|
||||
@@ -248,9 +180,9 @@ static __attribute__((noinline)) void tf_run(track_t *t, int32_t *out, uint32_t
|
||||
const int16_t *p = t->p;
|
||||
uint32_t ti = (uint32_t)(t - trk) % NTRK, i;
|
||||
int32_t cut = ccut << 8, envq = 0, ic1 = tf_ic1[ti], ic2 = tf_ic2[ti], k; /* (snd1: ccut, P_FCUT but on
|
||||
* ANALOG, whose own filter returned above but for MS20) */
|
||||
* ANALOG, whose own filter returned above) */
|
||||
tsvf_t c;
|
||||
if (own && ft != FT_MS20 && ft != FT_LP24 && !FT_IS_COMB(ft))
|
||||
if (own && !FT_IS_COMB(ft))
|
||||
return;
|
||||
if (t->engine == ENGI_DRUM)
|
||||
envq = (uint16_t)drum_env(t) + 1; /* (gen6d: the kit's ENV, its voices held at full) */
|
||||
@@ -277,14 +209,6 @@ static __attribute__((noinline)) void tf_run(track_t *t, int32_t *out, uint32_t
|
||||
cut = (127 << 8) - span > 0 ? (127 << 8) - span : 0;
|
||||
}
|
||||
cut += ((mulq15(t->lfo_val, t->lfo_fade) * p[P_LD_FLT]) >> 7) + ((envq * p[P_ED_FLT]) >> 7);
|
||||
if (ft == FT_MS20) {
|
||||
tf_ms20(ti, out, n, cut, cres);
|
||||
return;
|
||||
}
|
||||
if (ft == FT_LP24) { /* (V10.22) */
|
||||
tf_lp24(ti, out, n, cut, cres);
|
||||
return;
|
||||
}
|
||||
{
|
||||
uint32_t on = !(ft == FT_LP && fo == TF_DRY && cut >= (127 << 8) && !p[P_FRES]), was = tf_on[ti];
|
||||
if (!on && !was)
|
||||
@@ -344,8 +268,6 @@ static __attribute__((noinline)) void track_filter(track_t *t, int32_t *out, uin
|
||||
if (!tf_xb[ti]) {
|
||||
tf_run(t, out, n, ft, TF_DRY, 0, 0, own, ccut, cres);
|
||||
tf_cmb[ti] = FT_IS_COMB(ft);
|
||||
tf_ms[ti] = ft == FT_MS20;
|
||||
tf_l24[ti] = ft == FT_LP24;
|
||||
return;
|
||||
}
|
||||
if (n > CTL)
|
||||
@@ -366,8 +288,6 @@ static __attribute__((noinline)) void track_filter(track_t *t, int32_t *out, uin
|
||||
}
|
||||
if (!--tf_xb[ti]) {
|
||||
tf_cmb[ti] = FT_IS_COMB(ft);
|
||||
tf_ms[ti] = ft == FT_MS20;
|
||||
tf_l24[ti] = ft == FT_LP24;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ int main(void)
|
||||
song.sel = 1; frame();
|
||||
go_title("EUCLID"); frame();
|
||||
eu_put(EK_HITS, 8); frame();
|
||||
eu_put(EK_M0, 1); eu_put(EK_M0 + 1u, 8); eu_put(EK_M0 + 2u, 0); eu_put(EK_M0 + 3u, 0); frame(); /* UP, 8, no motif */
|
||||
eu_put(EK_M0, 1); eu_put(EK_M0 + 1u, 8); eu_put(EK_M0 + 2u, 0); eu_put(EK_K4, 0); frame(); /* UP, 8, no motif */
|
||||
n = notes(m, v);
|
||||
for (i = 1, up = 0; i < n; i++) up += v[i] >= v[i - 1];
|
||||
ok = n == 8u && distinct(v, n) >= 6u && up == n - 1u && v[n - 1] > v[0];
|
||||
@@ -48,7 +48,7 @@ int main(void)
|
||||
* of C F G C next door: four bars, the third G B D */
|
||||
track_t *nb = &trk[2];
|
||||
uint32_t k, c, ok2 = 1;
|
||||
eu_put(EK_M0, 6); eu_put(EK_M0 + 2u, 0); eu_put(EK_M0 + 3u, 1); frame(); /* RANDOM, CHORDS */
|
||||
eu_put(EK_M0, 6); eu_put(EK_M0 + 2u, 0); eu_put(EK_K4, 1); frame(); /* RANDOM, CHORDS */
|
||||
for (i = 0, n = 0; i < 16u; i++) {
|
||||
const step_t *s = &m->step[i];
|
||||
if (s->time != ST_NOTE) continue;
|
||||
@@ -57,7 +57,7 @@ int main(void)
|
||||
for (c = 0; c < 3u; c++) ok2 &= s->note[c] % 12u == 0u || s->note[c] % 12u == 4u || s->note[c] % 12u == 7u;
|
||||
}
|
||||
bad += check("EUCLID ROLE CHORDS: a triad on every hit (C E G in C major, nothing else playing)", ok2 && n == 8u);
|
||||
eu_put(EK_M0 + 3u, 2); frame(); /* BASS */
|
||||
eu_put(EK_K4, 2); frame(); /* BASS */
|
||||
for (i = 0, ok2 = 1, n = 0; i < 16u; i++)
|
||||
if (m->step[i].time == ST_NOTE) { n++; ok2 &= m->step[i].note[0] <= 60u; if (!(i & 3u)) ok2 &= m->step[i].note[0] % 12u == 0u; }
|
||||
if (!ok2) { printf(" bass:"); for (i = 0; i < 16u; i++) if (m->step[i].time == ST_NOTE) printf(" %u:%u", i, m->step[i].note[0]); printf("\n"); }
|
||||
@@ -66,11 +66,11 @@ int main(void)
|
||||
for (i = 0; i < NSTEP; i++) step_clear(&nb->step[i]);
|
||||
nb->p[P_SLEN] = 16;
|
||||
for (i = 0; i < 16u; i += 4u) { nb->step[i].time = ST_NOTE; nb->step[i].n = 3; nb->step[i].note[0] = 57; nb->step[i].note[1] = 60; nb->step[i].note[2] = 64; }
|
||||
eu_put(EK_M0 + 3u, 0); frame(); /* MELODY over A minor */
|
||||
eu_put(EK_K4, 0); frame(); /* MELODY over A minor */
|
||||
for (i = 0, ok2 = 1; i < 16u; i++)
|
||||
if (m->step[i].time == ST_NOTE && !(i & 3u)) { k = m->step[i].note[0] % 12u; ok2 &= k == 9u || k == 0u || k == 4u; }
|
||||
bad += check("EUCLID follows the neighbours: a track in A minor, the melody's beats on A C E", ok2);
|
||||
eu_put(EK_M0 + 3u, 1); frame();
|
||||
eu_put(EK_K4, 1); frame();
|
||||
for (i = 0, ok2 = 1; i < 16u; i++)
|
||||
if (m->step[i].time == ST_NOTE) for (c = 0; c < 3u; c++) { k = m->step[i].note[c] % 12u; ok2 &= k == 9u || k == 0u || k == 4u; }
|
||||
bad += check("EUCLID CHORDS over the neighbour: A minor's (A C E)", ok2);
|
||||
|
||||
+2
-2
@@ -1081,7 +1081,7 @@ int main(void)
|
||||
(void)d;
|
||||
}
|
||||
if (!strcmp(GENRE[g].name, "REGGAETON")) trap_ok += b->eng_req == EG_A && b->p[P_E0] == 3 && b->p[P_GLIDE] >= 30 && b->p[P_DEC] >= 80;
|
||||
if (!strcmp(GENRE[g].name, "EBM") && gs.g->snd[GP_BASS] == SR_EBMBASS) ebm_ok += !(b->eng_req == EG_A && b->p[P_FTYPE] == 5 && b->p[P_DIST] > 0); /* (V10.6n:
|
||||
if (!strcmp(GENRE[g].name, "EBM") && gs.g->snd[GP_BASS] == SR_EBMBASS) ebm_ok += !(b->eng_req == EG_A && b->p[P_FTYPE] == 0 && b->p[P_E5] >= 48 && b->p[P_DIST] > 0); /* (V10.6n:
|
||||
* its throws' basses four: the MS20's, each time it is that one) */
|
||||
wob_ok = 1; /* (V10.6n: no wobble genre now) */
|
||||
}
|
||||
@@ -1093,7 +1093,7 @@ int main(void)
|
||||
!glue_bad && !mut_bad && !kit_bad && four_ok == four_n && four_n);
|
||||
bad += gcheck(" BREAKBEAT's 303: ANALOG saw/square, LP, RES >= 90, CUT low, ENV high, short over a sustain, LEGATO, glide TIME ~55 ms, slides ..",
|
||||
acid_n && acid_ok + 1u >= acid_n); /* (V10.6n: one in its seeds may miss an accent, the 303's dice) */
|
||||
bad += gcheck(" REGGAETON's 808 (a sine, long, gliding), EBM's MS20 driven", trap_ok && !ebm_ok && wob_ok);
|
||||
bad += gcheck(" REGGAETON's 808 (a sine, long, gliding), EBM's resonant LP driven (V10.8.35: the MS20 gone)", trap_ok && !ebm_ok && wob_ok);
|
||||
}
|
||||
/* ---- (0.9.9-gen2) the owner's ear. ACID HOUSE's line as X0X's TB-3PO writes one (notes on 60..75 % of the steps,
|
||||
* ACCENTs on 25..35 % of the notes, SLIDEs on 20..30 %, never into a rest, octave jumps), over 40 seeds; played,
|
||||
|
||||
@@ -168,6 +168,62 @@ int main(void)
|
||||
stop_transport(); frame(); live.mode = 0;
|
||||
bad += check("SONG mode, no rows: PLAY plays the loop (not ADD A SONG ROW)", ok);
|
||||
}
|
||||
{ /* (V10.8.35, the owner: LIVE back, compact) STEP FX's black keys: the live modifiers on the selected track, held;
|
||||
* let go, back in phase on the ghost; the steps never touched */
|
||||
uint32_t bk[9], k, a, b, n, d, ph;
|
||||
step_t was[16];
|
||||
for (k = 0; k < 27u; k++) if (key_black(k) && key_place(k) < 9u) bk[key_place(k)] = k;
|
||||
stop_transport(); frame();
|
||||
track_select(0); go_title("COMP"); frame();
|
||||
memcpy(was, trk[0].step, sizeof was);
|
||||
transport_req = 1; ui_input();
|
||||
steps(3);
|
||||
ph = (trk[0].seq_idx + 16u - trk[1].seq_idx % 16u) % 16u; /* (T2 untouched: T1's phase against it) */
|
||||
fm1_in.notes |= 1u << bk[3]; frame(); /* REVERSE */
|
||||
ok = msg_is("REVERSE") && lv.want[0].fl == (LVD_REV << 1);
|
||||
steps(2);
|
||||
a = trk[0].seq_idx; steps(1); b = trk[0].seq_idx;
|
||||
ok &= LV_ON(0) && b == (a + 15u) % 16u; /* (backwards) */
|
||||
fm1_in.notes = 0; frame();
|
||||
steps(2);
|
||||
ok &= !LV_ON(0) && (trk[0].seq_idx + 16u - trk[1].seq_idx % 16u) % 16u == ph; /* (back in phase: on the ghost) */
|
||||
a = trk[0].seq_idx; steps(1);
|
||||
ok &= trk[0].seq_idx == (a + 1u) % 16u;
|
||||
fm1_in.notes |= 1u << bk[0]; frame(); /* RATE x2 */
|
||||
ok &= msg_is("RATE x2") && lv.want[0].rate == 2;
|
||||
steps(8);
|
||||
ok &= LV_ON(0) && lv.cur[0].rate == 2;
|
||||
fm1_in.notes = 0; frame(); steps(2);
|
||||
ok &= !LV_ON(0) && (trk[0].seq_idx + 16u - trk[1].seq_idx % 16u) % 16u == ph;
|
||||
fm1_in.notes |= 1u << bk[6]; frame(); /* THIN: about half the steps silent */
|
||||
steps(2);
|
||||
ok &= lv.cur[0].drop == 50u;
|
||||
for (k = n = d = 0; k < 64u; k++) { n++; d += (uint32_t)live_drop(&trk[0]); steps(1); }
|
||||
ok &= d >= 16u && d <= 48u;
|
||||
fm1_in.notes = 0; frame(); steps(2);
|
||||
ok &= !LV_ON(0) && !live_drop(&trk[0]);
|
||||
fm1_in.notes |= 1u << bk[4]; frame(); steps(2); /* PING-PONG, then RANDOM over it: the last direction */
|
||||
ok &= LF_DIR(lv.cur[0].fl) == LVD_PING;
|
||||
fm1_in.notes |= 1u << bk[5]; frame(); steps(2);
|
||||
ok &= LF_DIR(lv.cur[0].fl) == LVD_RND;
|
||||
track_select(1); frame(); steps(2); /* another track picked: the one before let go */
|
||||
ok &= !LV_ON(0);
|
||||
fm1_in.notes = 0; frame(); steps(2);
|
||||
track_select(0); frame();
|
||||
a = trk[0].seq_idx;
|
||||
fm1_in.notes |= 1u << bk[8]; frame(); /* GIRO +: a step skipped */
|
||||
ok &= msg_is("GIRO +");
|
||||
steps(1);
|
||||
ok &= trk[0].seq_idx == (a + 2u) % 16u || trk[0].seq_idx == (a + 3u) % 16u;
|
||||
fm1_in.notes = 0; frame();
|
||||
go_title("STEP"); frame(); /* off STEP FX: the keys nothing */
|
||||
fm1_in.notes |= 1u << bk[3]; frame(); steps(2);
|
||||
ok &= !LV_ON(0) && !lv.want[0].fl;
|
||||
fm1_in.notes = 0; frame();
|
||||
ok &= !memcmp(was, trk[0].step, sizeof was);
|
||||
stop_transport(); frame();
|
||||
bad += check("LIVE compact: STEP FX's black keys REVERSE, RATE x2, THIN, PING-PONG / RANDOM held; let go in phase; GIRO; the steps untouched", ok);
|
||||
}
|
||||
if (bad) printf("stepfx: %d failed\n", bad);
|
||||
else printf("stepfx: all passed\n");
|
||||
return bad != 0;
|
||||
|
||||
@@ -38,7 +38,7 @@ FUNCS = ["analog_render", "digital_render", "digital_render_legacy", "digital_re
|
||||
"formant_word_render", "formant_block", # (JIANT 0.8.5) VOICE singing words (eng_formant.c, sing.c)
|
||||
"djf_block", # (0.9.1) the master DJ FILTER (fx.c), while it is off the middle
|
||||
"eq_block", # (p9) the master EQ (fx.c), while a band is off 0
|
||||
"track_comb", "tf_run", "tf_ms20"] # (0.9.9-snd1) the FILTER after the voices: COMB / COMB-, the SVF, MS20
|
||||
"track_comb", "tf_run"] # (0.9.9-snd1) the FILTER after the voices: COMB / COMB-, the SVF (V10.8.35: MS20 gone)
|
||||
# built only with FELUCCA_FM4=1 (DIGITAL, src/eng_digital.c; not in the default build, so not in BUDGET): absent,
|
||||
# they are skipped; present, checked against these (their budget lines until the engine was retired in 1.0)
|
||||
OPTIONAL = {"digital_render": 12, "digital_render_legacy": 333, "digital_render_custom": 558,
|
||||
|
||||
@@ -54,6 +54,5 @@ djf_block 199
|
||||
eq_block 355
|
||||
track_comb 115
|
||||
tf_run 124
|
||||
tf_ms20 94
|
||||
clay_tick 47305
|
||||
clay_mod 125
|
||||
+82
-61
@@ -766,7 +766,7 @@ static int test_euclid_src(void)
|
||||
eu_put(EK_HITS, 6); frame();
|
||||
ok = m->p[P_SLEN] == 16;
|
||||
for (v = 0; v <= 50u; v++) {
|
||||
eu_put(EK_K4, (int32_t)v); frame();
|
||||
eu_put(EK_M0 + 3u, (int32_t)v); frame();
|
||||
ok &= m->p[P_SLEN] == 16;
|
||||
for (i = n = 0; i < 16u; i++) n += m->step[i].time == ST_NOTE && m->step[i].n;
|
||||
ok &= n == 6u;
|
||||
@@ -774,7 +774,7 @@ static int test_euclid_src(void)
|
||||
if (v) same += sg[v] == sg[v - 1u];
|
||||
}
|
||||
ok &= same <= 3u && sg[50] != sg[0];
|
||||
eu_put(EK_K4, 51); frame();
|
||||
eu_put(EK_M0 + 3u, 51); frame();
|
||||
ok &= m->p[P_SLEN] == 64;
|
||||
bad += check("V10.28 VARY up to 50: one cycle (16 steps, the HITS exact), a new one at nearly each value; above 50 the four turns", ok);
|
||||
/* a recorded melody: C Eb G Bb at 0 4 8 12, the G held two steps */
|
||||
@@ -782,12 +782,12 @@ static int test_euclid_src(void)
|
||||
for (i = 0; i < 4u; i++) { step_t *s = &m->step[i * 4u]; s->time = ST_NOTE; s->n = 1; s->vel = 100; s->note[0] = NT[i]; }
|
||||
m->step[9].time = ST_TIE;
|
||||
m->p[P_SLEN] = 16;
|
||||
eu_put(EK_K4, 0); frame();
|
||||
eu_put(EK_M0 + 3u, 0); frame();
|
||||
ok = eu[1].own && eu[1].rl == 16u && eu[1].l[0].h == 4u && m->p[P_SLEN] == 16;
|
||||
for (i = 0; i < 4u; i++) ok &= m->step[i * 4u].time == ST_NOTE && m->step[i * 4u].note[0] == NT[i];
|
||||
ok &= m->step[9].time == ST_TIE;
|
||||
bad += check("V10.28 a recorded melody: EUCLID takes it (VARY 0 gives it back as it was, its hold too)", ok);
|
||||
eu_put(EK_K4, 40); frame();
|
||||
eu_put(EK_M0 + 3u, 40); frame();
|
||||
for (i = n = c = 0; i < 16u; i++)
|
||||
if (m->step[i].time == ST_NOTE && m->step[i].n) { n++; c += memchr(NT, m->step[i].note[0], 4) != 0; }
|
||||
ok = n == 4u && c == 4u && m->p[P_SLEN] == 16;
|
||||
@@ -795,7 +795,7 @@ static int test_euclid_src(void)
|
||||
for (i = n = c = 0; i < 16u; i++)
|
||||
if (m->step[i].time == ST_NOTE && m->step[i].n) { n++; c += memchr(NT, m->step[i].note[0], 4) != 0; }
|
||||
ok &= n == 7u && c == 7u && !(eu[1].rs & 1u) && eu[1].own;
|
||||
eu_put(EK_K4, 80); frame();
|
||||
eu_put(EK_M0 + 3u, 80); frame();
|
||||
for (i = n = c = 0; i < 64u; i++)
|
||||
if (m->step[i].time == ST_NOTE && m->step[i].n) { n++; c += memchr(NT, m->step[i].note[0], 4) != 0; }
|
||||
ok &= m->p[P_SLEN] == 64 && n == 28u && c == n;
|
||||
@@ -820,9 +820,9 @@ static int test_euclid_src(void)
|
||||
ST_MICRO_SET(&m->step[4], 9);
|
||||
m->p[P_SLEN] = 16;
|
||||
memcpy(was, m->step, sizeof was);
|
||||
eu_put(EK_K4, 30); frame();
|
||||
eu_put(EK_M0 + 3u, 30); frame();
|
||||
ok = memcmp(was, m->step, sizeof was) != 0;
|
||||
eu_put(EK_K4, 0); frame();
|
||||
eu_put(EK_M0 + 3u, 0); frame();
|
||||
ok &= !memcmp(was, m->step, sizeof was) && m->p[P_SLEN] == 16 && msg_is("YOUR SEQUENCE BACK");
|
||||
eu_put(EK_HITS, 7); frame(); eu_put(EK_M0 + 1u, 60); frame();
|
||||
ok &= memcmp(was, m->step, sizeof was) != 0;
|
||||
@@ -841,7 +841,7 @@ static int test_euclid_src(void)
|
||||
ok &= !memcmp(was, d->step, sizeof was);
|
||||
bad += check("V10.31 EUCLID reversible on a kit: DENSITY 0 puts the recorded kit back", ok);
|
||||
song.sel = 1; frame(); go_title("EUCLID"); frame();
|
||||
m->step[0].note[0] = 62; eu_put(EK_K4, 10); frame(); /* (the melody taken again: the kit's whole copy gone) */
|
||||
m->step[0].note[0] = 62; eu_put(EK_M0 + 3u, 10); frame(); /* (the melody taken again: the kit's whole copy gone) */
|
||||
ok = eu_bk_k == 1u;
|
||||
song.sel = 0; frame(); go_title("EUCLID"); frame();
|
||||
eu_put(EK_HITS, 5); frame();
|
||||
@@ -880,7 +880,7 @@ static int test_eumutate(void)
|
||||
song.sel = 1; frame();
|
||||
m->p[P_SCALE] = 2; m->p[P_ROOT] = 0;
|
||||
go_title("EUCLID"); frame();
|
||||
eu_put(EK_K4, 80); frame(); /* the melody's VARY */
|
||||
eu_put(EK_M0 + 3u, 80); frame(); /* the melody's VARY */
|
||||
ok = m->p[P_SLEN] == 64;
|
||||
s0 = eu_cyc_sig(m, 0, 16, NLANE);
|
||||
for (c = 1, diff = 0; c < 4u; c++) diff += eu_cyc_sig(m, c, 16, NLANE) != s0;
|
||||
@@ -889,10 +889,37 @@ static int test_eumutate(void)
|
||||
if (m->step[i].time == ST_NOTE && m->step[i].n) { n++; c += (SCALE_MASK[2] >> (m->step[i].note[0] % 12u)) & 1u; }
|
||||
ok &= n == 4u * eu[1].l[0].h && c == n;
|
||||
bad += check("V10.16 VARY on a melody: four turns, the motif answered (notes in the key, HITS in each turn)", ok);
|
||||
{ /* (V10.8.20, the owner) MUTATE gone: its page hidden (kept in the table: its index), its settings read by nothing */
|
||||
uint32_t i2, vis = 0;
|
||||
{ /* (V10.8.35, the owner) MUTATE back, compact: its page (EVERY alone) in SEQ; on EUCLID OCT+ a mutation now (from
|
||||
* the anchor, as far as VARY), OCT- the anchor again; on the bar while it plays, every EVERY bars */
|
||||
uint32_t i2, vis = 0, a0, a1, a2;
|
||||
step_t was[NSTEP];
|
||||
const param_desc_t *dd; int16_t *vp;
|
||||
for (i2 = 0; i2 < NPAGES; i2++) if (PAGES[i2].id[0] == ID_MU0) vis |= (uint32_t)page_visible(i2);
|
||||
bad += check("V10.8.20 MUTATE gone: its page out of SEQ", !vis);
|
||||
ok = vis != 0;
|
||||
eu_put(EK_M0 + 3u, 40); frame();
|
||||
eu_put(EK_HITS, 6); frame();
|
||||
memcpy(was, m->step, sizeof was);
|
||||
a0 = eu_cyc_sig(m, 0, 16, NLANE);
|
||||
for (a1 = a2 = 0; a2 < 8u; a2++) { /* (each from the anchor: most differ from it) */
|
||||
eu_oct(1, 1); frame();
|
||||
a1 += eu_cyc_sig(m, 0, 16, NLANE) != a0;
|
||||
}
|
||||
ok &= msg_is("MUTATED") && a1 >= 5u;
|
||||
eu_oct(0, 1); frame();
|
||||
ok &= msg_is("ANCHOR") && eu_cyc_sig(m, 0, 16, NLANE) == a0; /* (the notes; a rest's stale bytes aside) */
|
||||
go_title("MUTATE"); frame();
|
||||
ok &= str_eq(cur_page()->title, "MUTATE");
|
||||
dd = page_desc(cur_page(), 0, &vp);
|
||||
ok &= dd && str_eq(dd->label, "EVERY") && dd->max == 4 && !page_desc(cur_page(), 1, &vp);
|
||||
eu_put(EK_U0, 1); frame(); /* EVERY 1 BAR */
|
||||
ok &= eu[1].mu[0] == 1u;
|
||||
song.playing = 1; bar_n = 0; beat_n = 3; beat_pos = beat_samples() - 1u;
|
||||
eu_tick();
|
||||
ok &= eu_cyc_sig(m, 0, 16, NLANE) != a0 || memcmp(was, m->step, sizeof was);
|
||||
eu_tick(); /* (once a bar) */
|
||||
song.playing = 0; eu_tick();
|
||||
eu_put(EK_U0, 0); frame();
|
||||
bad += check("V10.8.35 MUTATE compact: its page (EVERY), OCT+ on EUCLID mutates from the anchor, OCT- the anchor; on the bar", ok);
|
||||
}
|
||||
memset(eu, 0, sizeof eu);
|
||||
return bad;
|
||||
@@ -997,13 +1024,16 @@ static int test_mutate(void)
|
||||
{
|
||||
uint8_t was[16], now[16];
|
||||
for (i = 0; i < 16u; i++) was[i] = m->step[i].time == ST_NOTE ? m->step[i].note[0] : 0u;
|
||||
go_title("MODES"); frame(); /* (V10.8.35: MODES / MELODY's; EUCLID's OCT+ / OCT- MUTATE's) */
|
||||
ok = str_eq(nav_page_name(), "MELODY");
|
||||
press(B_OCTUP); frame();
|
||||
for (i = c = 0; i < 16u; i++) { now[i] = m->step[i].time == ST_NOTE ? m->step[i].note[0] : 0u; c += now[i] != was[i]; }
|
||||
ok = c > 0u && msg_is("NEW VARIATION");
|
||||
ok &= c > 0u && msg_is("NEW VARIATION");
|
||||
press(B_OCTDN); frame();
|
||||
for (i = c = 0; i < 16u; i++) c += (m->step[i].time == ST_NOTE ? m->step[i].note[0] : 0u) != was[i];
|
||||
ok &= c == 0u;
|
||||
bad += check("V10.6 OCT+ a new variation, OCT- the one before (the same notes again)", ok);
|
||||
go_title("EUCLID"); frame();
|
||||
bad += check("V10.6 OCT+ a new variation, OCT- the one before (the same notes again): on MODES, a melody's MELODY (V10.8.35)", ok);
|
||||
}
|
||||
/* (V10.8.21, the owner: the SEQ dice gone) */
|
||||
{ /* (V10.8, testers) SEQ > STEP's KNOB 4: the step's velocity 1..127, a fast turn stops at 127, then ACC SLD A+S */
|
||||
@@ -4859,9 +4889,9 @@ static int test_quick_layers(void)
|
||||
btn_down(B_ENV); frame(); turn(EN_SELECT, 1); frame(); /* (0.9.2: into ENV, its page left, then the chain) */
|
||||
ok = str_eq(cur_page()->title, "ENV DEST") && !ui.confirm;
|
||||
turn(EN_SELECT, 2); frame(); /* (V10.22: past ENV 2) */
|
||||
ok &= str_eq(cur_page()->title, "STAGE");
|
||||
ok &= str_eq(cur_page()->title, "ENV 2");
|
||||
btn_up(B_ENV); frame(); turn(EN_SELECT, -1); frame(); /* (the same turn, the button let go first) */
|
||||
ok &= str_eq(cur_page()->title, "STAGE") && !ui.layer;
|
||||
ok &= str_eq(cur_page()->title, "ENV 2") && !ui.layer;
|
||||
frames(30);
|
||||
sig = steps_sig(TSEL);
|
||||
held_turn(B_SEQ, 1); /* (V10.8.21: SEQ + SELECT no dice, its pages) */
|
||||
@@ -7732,7 +7762,7 @@ static int test_lente(void)
|
||||
{
|
||||
/* (2463a3b, 2026-11-04, FIT / SPAN: SEQ > LENGTH > RHYTHM after LENGTH; 92fc1d7, 2026-11-05: the GENERATE tab at the
|
||||
* end (LYRIC STEP only on a VOICE track): 14 pages in eight tabs, was 12 in seven) */
|
||||
static const char *const CH[16] = {"STEP", "LENGTH", "RHYTHM", "TRACK", "EUCLID", "MODES", "PLAYHEADS",
|
||||
static const char *const CH[17] = {"STEP", "LENGTH", "RHYTHM", "TRACK", "EUCLID", "MODES", "MUTATE", "PLAYHEADS", /* (V10.8.35: MUTATE back) */
|
||||
"STEP FX", "STEP FX 2", "AUTOMATION", "AUTO LIST", "TRACK GEN", "DRONE CLAY",
|
||||
"CLAY MOD", "CLAY RHYTHM", "CLAY TIME"}; /* (V10.8.27: BYTE's four CLAY pages) */ /* (V10.8.21: DRONE CLAY) */ /* (V10.8.20: MUTATE, STRETCH gone) */ /* (V10.7.59: STEP FX,
|
||||
* was COMP) (codex/coherence: TRACK
|
||||
@@ -7744,26 +7774,26 @@ static int test_lente(void)
|
||||
TSEL->p[P_SLEN] = 64;
|
||||
open_family(FAM_SEQ); frame();
|
||||
ok = str_eq(cur_page()->title, "STEP") && lens_level() == LV_BAR && roll_view(cur_page()) && lz_tabs() == 8u &&
|
||||
lz_tab_lit(0) && lz_crumb_is("SEQ \xB7 STEP \xB7 STEP") && lz_count_is("1/16");
|
||||
lz_tab_lit(0) && lz_crumb_is("SEQ \xB7 STEP \xB7 STEP") && lz_count_is("1/17");
|
||||
turn(EN_SELECT, -1); frames(32);
|
||||
ok &= str_eq(cur_page()->title, "STEP") && lz_count_is("1/16"); /* (the first: no wrap) */
|
||||
ok &= str_eq(cur_page()->title, "STEP") && lz_count_is("1/17"); /* (the first: no wrap) */
|
||||
turn(EN_SELECT, 1); frames(32);
|
||||
ok &= str_eq(cur_page()->title, "PATTERN") && seq_roll_view(cur_page()) && lz_tab_lit(1) && lz_count_is("2/16") &&
|
||||
ok &= str_eq(cur_page()->title, "PATTERN") && seq_roll_view(cur_page()) && lz_tab_lit(1) && lz_count_is("2/17") &&
|
||||
lz_crumb_is("SEQ \xB7 PATTERN \xB7 LENGTH"); /* (PATTERN, named LENGTH; codex/coherence:
|
||||
* its group PATTERN) */
|
||||
turn(EN_SELECT, 1); frames(32);
|
||||
ok &= str_eq(cur_page()->title, "RHYTHM") && lz_tab_lit(1) && lz_count_is("3/16");
|
||||
ok &= str_eq(cur_page()->title, "RHYTHM") && lz_tab_lit(1) && lz_count_is("3/17");
|
||||
turn(EN_SELECT, 1); frames(32);
|
||||
ok &= str_eq(cur_page()->title, "TRACK") && lz_tab_lit(1) && lz_count_is("4/16") &&
|
||||
ok &= str_eq(cur_page()->title, "TRACK") && lz_tab_lit(1) && lz_count_is("4/17") &&
|
||||
lz_crumb_is("SEQ \xB7 PATTERN \xB7 TRACK"); /* (TRACK under the PAT tab) */
|
||||
turn(EN_SELECT, 4); frames(32);
|
||||
ok &= str_eq(cur_page()->title, "COMP") && seq_roll_view(cur_page()) && lz_tab_lit(4) && lz_count_is("8/16") &&
|
||||
turn(EN_SELECT, 5); frames(32);
|
||||
ok &= str_eq(cur_page()->title, "COMP") && seq_roll_view(cur_page()) && lz_tab_lit(4) && lz_count_is("9/17") &&
|
||||
lz_crumb_is("SEQ \xB7 STEP FX \xB7 STEP FX");
|
||||
turn(EN_SELECT, 1); frames(32);
|
||||
ok &= str_eq(cur_page()->title, "COMP 2") && lz_tab_lit(4) && lz_count_is("9/16");
|
||||
ok &= str_eq(cur_page()->title, "COMP 2") && lz_tab_lit(4) && lz_count_is("10/17");
|
||||
bad += check("seq2 SEQ: enters at STEP (1/16, eight tabs: V10.8.21 DRONE CLAY); LENGTH the roll (seq2b), RHYTHM, TRACK under its tab, COMP the roll, COMP 2 after it", ok);
|
||||
bad += check("seq2 SEQ: one chain of 16 by SELECT (no wrap); a SEQ tap the next tab's first, round",
|
||||
chain_walk(B_SEQ, CH, 16, TP, 7));
|
||||
bad += check("seq2 SEQ: one chain of 17 by SELECT (no wrap); a SEQ tap the next tab's first, round",
|
||||
chain_walk(B_SEQ, CH, 17, TP, 7));
|
||||
{ /* (0.9.9-seq2b) every page of the chain the same picture: the bars' strip, the roll with its keys */
|
||||
static const char *const TI[10] = {"STEP", "PATTERN", "TRACK", "EUCLID", "MODES", "PLAYHEADS",
|
||||
"COMP", "COMP 2", "AUTOMATION", "AUTO LIST"};
|
||||
@@ -7866,7 +7896,7 @@ static int test_lente(void)
|
||||
go_title("BAR"); frames(32);
|
||||
turn(EN_K1, 1);
|
||||
ok &= ui.bank == 1u;
|
||||
turn(EN_SELECT, 6); frames(32); /* (from BAR, LENGTH's place: COMP; V10.8.20: MUTATE, STRETCH gone;
|
||||
turn(EN_SELECT, 7); frames(32); /* (from BAR, LENGTH's place: COMP; V10.8.35: past MUTATE again;
|
||||
* 2463a3b: past RHYTHM) */
|
||||
ok &= seq_roll_view(cur_page()) && lens_level() == LV_STEP;
|
||||
bad += check(" DRUM: STEP is the grid (its keys); LENGTH the grid (seq2b), BAR (by code) KNOB 1 the bar; COMP the grid", ok);
|
||||
@@ -10907,7 +10937,7 @@ static int test_bpm_lock(void)
|
||||
turn(EN_SELECT, -5);
|
||||
ok &= str_eq(cur_page()->title, "EDIT 1"); /* (no wrap: the lens's first level) */
|
||||
go_title("ENV DEST"); frame(); turn(EN_SELECT, 2);
|
||||
ok &= str_eq(cur_page()->title, "STAGE") && !ui.home; /* (0.8.5 LENTE: ENV -> STAGE; codex/coherence: TRACKS
|
||||
ok &= str_eq(cur_page()->title, "ENV 2") && !ui.home; /* (0.8.5 LENTE: ENV -> STAGE; codex/coherence: TRACKS
|
||||
* after it, the last; no LFO) */
|
||||
bad += check("0.6.69: SELECT alone scrolls the section's pages (no wrap, never out of it); HOME: DICE ALL; never the tempo", ok);
|
||||
go_home(); frame();
|
||||
@@ -12155,37 +12185,28 @@ static int test_lz_env(void)
|
||||
ui_power_on(); frame();
|
||||
press(B_ENV); frame();
|
||||
ok = pd_on() && lz_fam() == LZ_ENV && pd_level() == 1u && str_eq(cur_page()->title, "ENV") && lz_tab_lit(0) &&
|
||||
lz_crumb_is("ENV \xB7 ENV \xB7 ENV") && lz_count_is("1/4");
|
||||
lz_crumb_is("ENV \xB7 ENV \xB7 ENV") && lz_count_is("1/3");
|
||||
turn(EN_SELECT, 1); frame();
|
||||
ok &= str_eq(cur_page()->title, "ENV DEST") && lz_crumb_is("ENV \xB7 ENV \xB7 ENV DEST") && lz_count_is("2/4");
|
||||
ok &= str_eq(cur_page()->title, "ENV DEST") && lz_crumb_is("ENV \xB7 ENV \xB7 ENV DEST") && lz_count_is("2/3");
|
||||
turn(EN_SELECT, 1); frame();
|
||||
ok &= str_eq(cur_page()->title, "ENV 2") && lz_crumb_is("ENV \xB7 ENV \xB7 ENV 2") && lz_count_is("3/4"); /* (V10.22) */
|
||||
turn(EN_SELECT, 1); frame();
|
||||
ok &= pd_level() == 2u && str_eq(cur_page()->title, "STAGE") && lz_tab_lit(1) && lz_count_is("4/4");
|
||||
turn(EN_SELECT, 1); frame(); /* (the end: V10.8.16, TRACKS gone) */
|
||||
ok &= pd_level() == 2u && str_eq(cur_page()->title, "STAGE") && lz_count_is("4/4");
|
||||
ok &= str_eq(cur_page()->title, "ENV 2") && lz_crumb_is("ENV \xB7 ENV \xB7 ENV 2") && lz_count_is("3/3"); /* (V10.22) */
|
||||
turn(EN_SELECT, 1); frame(); /* (the end: V10.8.35, STAGE gone) */
|
||||
ok &= pd_level() == 1u && str_eq(cur_page()->title, "ENV 2") && lz_count_is("3/3");
|
||||
frames(320); press(B_ENV); frame();
|
||||
ok &= pd_level() == 1u && str_eq(cur_page()->title, "ENV"); /* (round) */
|
||||
frames(320); press(B_ENV); frame();
|
||||
ok &= pd_level() == 2u && str_eq(cur_page()->title, "STAGE") && lz_tab_lit(1);
|
||||
bad += check("0.9.2 ENV: opens on ENV; ENV (ENV, ENV DEST, ENV 2) . STAGE (V10.8.16: TRACKS gone), SELECT and the taps", ok);
|
||||
go_title("STAGE"); frame();
|
||||
ui.stage = 0;
|
||||
turn(EN_K1, 1); frame();
|
||||
ok = ui.stage == 1u && !strncmp(ui.col[1], "DEC|", 4);
|
||||
v = TSEL->p[P_DEC];
|
||||
turn(EN_K2, 3); frame();
|
||||
ok &= TSEL->p[P_DEC] > v;
|
||||
turn(EN_K1, 1); frame();
|
||||
ok &= ui.stage == 2u;
|
||||
v = TSEL->p[P_ELOOP];
|
||||
turn(EN_K3, 1); frame();
|
||||
ok &= TSEL->p[P_ELOOP] == v; /* (codex/coherence: LOOP on ENV DEST alone) */
|
||||
turn(EN_K1, 5); frame();
|
||||
ok &= ui.stage == 3u; /* (no wrap) */
|
||||
turn(EN_PRESET, 1); frame();
|
||||
ok &= ui.stage == 3u && str_eq(cur_page()->title, "STAGE"); /* (PRESETS: a sound, not the stage) */
|
||||
bad += check("0.9.2 ENV > STAGE: KNOB 1 the stage, 2 its value (3 nothing: LOOP on ENV DEST); PRESETS a sound (was the stage)", ok);
|
||||
ok &= pd_level() == 1u && str_eq(cur_page()->title, "ENV"); /* (round: its one tab's first) */
|
||||
bad += check("0.9.2 ENV: opens on ENV; ENV, ENV DEST, ENV 2 (V10.8.16: TRACKS, V10.8.35: STAGE gone), SELECT and the taps", ok);
|
||||
{ /* (V10.8.35, the owner) ENV > STAGE gone (kept in the table: its index); LOOP and the destinations on ENV DEST */
|
||||
uint32_t i2, vis = 0;
|
||||
int16_t *vp;
|
||||
for (i2 = 0; i2 < NPAGES; i2++) if (PAGES[i2].graph == GR_STAGE) vis |= (uint32_t)page_visible(i2);
|
||||
go_title("ENV DEST"); frame();
|
||||
ok = !vis && page_desc(cur_page(), 3, &vp) && vp == &TSEL->p[P_ELOOP];
|
||||
v = TSEL->p[P_ELOOP];
|
||||
turn(EN_K4, 1); frame();
|
||||
ok &= TSEL->p[P_ELOOP] != v;
|
||||
TSEL->p[P_ELOOP] = v;
|
||||
bad += check("V10.8.35 ENV > STAGE gone; ENV DEST keeps FILTER PITCH SHAPE and LOOP (KNOB 4)", ok);
|
||||
}
|
||||
ui_power_on();
|
||||
return bad;
|
||||
}
|
||||
@@ -12771,7 +12792,7 @@ static const old_lv_t OLD_LV[] = {
|
||||
{FAM_EDIT, 2, 1, {"OPERATOR", "OP ENV", "OPERATOR 2"}},
|
||||
{FAM_EDIT, 0, 2, {"EDIT 1", "EDIT 2"}}, {FAM_EDIT, 1, 2, {"X-MOD", "FILTER"}}, /* (V10.7.63: STEREO LEVELS BUS PLAY gone) */
|
||||
{FAM_EDIT, 2, 2, {"SOUND", "SOUND 2", "SOUND 3", "SOUND 4"}},
|
||||
/* (V10.8.16: ENV's TRACKS, level 0, gone) */ {FAM_ENV, 1, 9, {"ENV", "ENV DEST"}}, {FAM_ENV, 2, 9, {"STAGE"}},
|
||||
/* (V10.8.16: ENV's TRACKS, level 0, gone) */ {FAM_ENV, 1, 9, {"ENV", "ENV DEST"}}, /* (V10.8.35: STAGE, level 2, gone) */
|
||||
{FAM_LFO, 0, 9, {"MOD"}}, {FAM_LFO, 1, 9, {"LFO", "LFO 2", "LFO DEST"}}, {FAM_LFO, 2, 9, {"MSEQ", "MSEQ 2"}},
|
||||
{FAM_SCL, 0, 9, {"SCL"}}, {FAM_SCL, 1, 9, {"CHORD"}}, {FAM_ARP, 2, 9, {"ARP", "ARP 2"}},
|
||||
{FAM_GLO, 0, 9, {"MIXER", "SENDS"}}, {FAM_GLO, 1, 9, {"GLOBAL"}}, {FAM_GLO, 2, 9, {"SYSTEM", "SYSTEM 2"}},
|
||||
@@ -13017,7 +13038,7 @@ static void tk_start(uint32_t from) /* 0 home, 1 seq, 2 fxdl
|
||||
}
|
||||
static int test_nav_tasks(void)
|
||||
{
|
||||
static const uint8_t WANT[14] = {4, 3, 5, 6, 4, 9, 9, 2, 3, 1, 4, 7, 17, 4}; /* (V10.8.21: task 14 a GLO tap less) */ /* (V10.8.20: task 13 two detents less) */ /* (V10.8: task 5 by PRESETS, two fast turns) */ /* (V10.7.63: task 11 a detent less) */ /* (V10.7.63: task 5 a SAVE tap less) */ /* (2463a3b, 2026-11-04: SEQ > LENGTH >
|
||||
static const uint8_t WANT[14] = {4, 3, 5, 6, 4, 9, 9, 2, 3, 1, 4, 7, 18, 4}; /* (V10.8.35: task 13 a detent more, MUTATE back) */ /* (V10.8.21: task 14 a GLO tap less) */ /* (V10.8.20: task 13 two detents less) */ /* (V10.8: task 5 by PRESETS, two fast turns) */ /* (V10.7.63: task 11 a detent less) */ /* (V10.7.63: task 5 a SAVE tap less) */ /* (2463a3b, 2026-11-04: SEQ > LENGTH >
|
||||
* RHYTHM between LENGTH and TRACK: tasks 11 and 13 a detent more) */ /* (V10.37: COMPS before GLOBAL, SYSTEM a tap further) */ /* (V10.1: SAVE composes first, 106 -> 108) */ /* (seq2: task 5 by STEP's KNOB 1, no BAR;
|
||||
* task 11 TRACK under LEN's tab; task 13 eight detents (seq2c:
|
||||
* MUTATE 2); was 73) */
|
||||
@@ -13089,7 +13110,7 @@ static int test_nav_tasks(void)
|
||||
ok = song.sel == 3u && str_eq(cur_page()->title, "SOUND") && c == 1u && dv[DXP_DECAY] != d0; }
|
||||
break;
|
||||
case 12: /* COMP 2 of step 9 */
|
||||
tk_start(1); tk_go(EN_PRESET, 8); tk_go(EN_SELECT, 8); tk_val(EN_K1, 1); /* (2463a3b: RHYTHM, ten; V10.8.20: MUTATE, STRETCH gone, eight) */ /* (seq2c: eight detents to COMP 2, V10.16 nine;
|
||||
tk_start(1); tk_go(EN_PRESET, 8); tk_go(EN_SELECT, 9); tk_val(EN_K1, 1); /* (2463a3b: RHYTHM, ten; V10.8.20: MUTATE, STRETCH gone, eight) */ /* (seq2c: eight detents to COMP 2, V10.16 nine;
|
||||
* seq2d: the step picked on STEP, KNOB 1 its ACTION) */
|
||||
ok = str_eq(cur_page()->title, "COMP 2") && ui.cursor == 8u && TSEL->step[8].comp2 != 0u;
|
||||
break;
|
||||
@@ -13108,7 +13129,7 @@ static int test_nav_tasks(void)
|
||||
}
|
||||
printf("ui: the race: %u %u %u %u %u %u %u %u %u %u %u %u %u %u = %u actions (0.9.1: 75)\n", got[0], got[1], got[2], got[3],
|
||||
got[4], got[5], got[6], got[7], got[8], got[9], got[10], got[11], got[12], got[13], tot);
|
||||
bad += check("0.9.2 the mock-up's 14 tasks on the panel: each goal reached in its PROPOSED actions (seq2c: 106, was 73)", okall && tot == 78u); /* (V10.8.21: G.COMP gone, GLO a tap less) */ /* (V10.8.20: MUTATE, STRETCH out of SEQ's chain: -2) */ /* (V10.8: task 5 by PRESETS, 34 -> 4) */ /* (2463a3b RHYTHM: +2) */ /* (V10.8: an accent past VEL 127: +1; V10.16 MUTATE in SEQ's chain: +1) */
|
||||
bad += check("0.9.2 the mock-up's 14 tasks on the panel: each goal reached in its PROPOSED actions (seq2c: 106, was 73)", okall && tot == 79u); /* (V10.8.21: G.COMP gone, GLO a tap less) */ /* (V10.8.20: MUTATE, STRETCH out of SEQ's chain: -2) */ /* (V10.8: task 5 by PRESETS, 34 -> 4) */ /* (2463a3b RHYTHM: +2) */ /* (V10.8: an accent past VEL 127: +1; V10.16 MUTATE in SEQ's chain: +1) */
|
||||
ui_power_on();
|
||||
return bad;
|
||||
}
|
||||
|
||||
+2263
-2264
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user