mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 04:44:33 +01:00
V10.8.90 LIFE: extrema en 100 y evolutiva (memoria lenta, anillo que muta cada 4 compases)
Juan: "la modulacion cruzada en 100 sea extrema", "una mezcla de todo eso". - Hasta ~60 como antes. Pasado 80 cada perilla lleva su destino por todo el rango (FILTER cierra/abre de punta a punta, TIMBRE al maximo, STEREO a fondo L/R, FX envios completos), con slew; pasado 90 TIMBRE tambien desafina (hasta 15/16 de semitono en 100). - Memoria lenta por pista (integrador con fuga de ~3 compases, sigue el tempo) sumada al seguidor rapido: el mismo compas no se mueve igual dos veces. - El anillo muta cada 4 compases en la linea del compas (primeros 4 tras PLAY: el orden original; parado, sobre el tempo), barajado determinista por el numero de bloque de 4 compases, el cambio fundido en ~1.5 s. - LIFE 0 bit-identico (life_block solo prende/apaga; el trabajo en life_evo/life_ext, fuera del codigo de sonido fijado; life_block encogio y su hueco lo llenan tablas de la UI). - Flash: size_fns compila para tamano ui_pads, seq_pads, editor_wt, eng_wave; C2_FN/C2_IN reconocidos; life_*, genv_mod, wave_note_on, wv_span, perf_q, perf_grid por evento; gls_snare y grg al segundo segmento. Slot: 8224 B libres (base 8208). - tests/life_test.c: LIFE 0 identico, FILTER 100 llega a 0..127, memoria, anillo determinista en las lineas de 4 compases y parado. cpu_lines_test: CL_LIFE. - MANUAL / MANUAL.es: LIFE en HOME. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
10 files changed
+371
-87
No files matched your search
+13
-1
@@ -419,7 +419,7 @@ la misma de la 0.9.1, con sus perillas y su dibujo (los que dibujaban las lentes
|
||||
|
||||
| Sección | Grupos (el botón) · páginas (SELECT) | Páginas |
|
||||
| --- | --- | --- |
|
||||
| **HOME** | **ECO**: ECO · MACROS — **BEING**: BEING · ROUTES — **GENE**: GENE 1 · GENE 2 · GENE 3 | 7 |
|
||||
| **HOME** | **ECO**: ECO · LIFE · MACROS — **BEING**: BEING · ROUTES — **GENE**: GENE 1 · GENE 2 · GENE 3 | 8 |
|
||||
| **EDIT** (un sinte) | **SOUND**: EDIT 1 · EDIT 2 — **TONE**: FILTER · MORPH · RETRIG · ROTOR · WORDS · SWARM · SWARM 2 (las que tengan el motor y la pista) — **FOCUS**: FOCUS — **PLAY**: PLAY · PLAY 2 (codex/coherence: era VOICE; el IMAGE de STEREO pasó a PLAY 2) | hasta 11 |
|
||||
| **EDIT** (FM6) | **SOUND**: EDIT 1 (ALGO) · EDIT 2 (PATCH) — **TONE**: FILTER — **OPERATOR**: OPERATOR · OP ENV · OPERATOR 2 — **PLAY**: PLAY · PLAY 2 | 8 |
|
||||
| **EDIT** (DRUM) | **KIT**: KIT · KIT 2 · KIT 3 · KIT 4 — **SOUND**: SOUND · SOUND 2 · SOUND 3 · SOUND 4 — **LEVELS**: LEVELS · LEVELS 2 — **TONE**: X-MOD · FILTER · STEREO · PLAY | 14 |
|
||||
@@ -447,6 +447,18 @@ nivel PROJECT) y **PROJECTS** (el nivel LIBRARY); EDIT 1 / EDIT 2 del kit DRUM s
|
||||
mirada para arriba y el anillo se fueron con MUTATE.) Detrás derivan los gránulos del citoplasma (los dibuja solo la pantalla: nada del
|
||||
tiempo del sonido). **MACROS**: KNOB 1–4 son **M1–M4** (las macros, como LFO
|
||||
mantenido), las rutas contadas arriba a la izquierda, LATCH a la derecha.
|
||||
- **LIFE** (entre ECO y MACROS; desde V10.8.90 evoluciona): las pistas se modulan entre sí. El nivel de cada pista
|
||||
(un seguidor rápido) empuja a su vecina en un **anillo** (un golpe de DRUM empuja para el otro lado), y una **memoria**
|
||||
lenta (unos tres compases, sigue el tempo) suma lo que viene haciendo, así que el mismo compás no se mueve dos veces
|
||||
igual. El **anillo muta cada 4 compases**, en la línea del compás: un orden nuevo, pero el mismo para la misma canción
|
||||
(los primeros 4 compases después de PLAY conservan el orden original; parado, igual gira cada 4 compases del tempo),
|
||||
con el cambio suavizado. KNOB 1–4 son **FILTER**, **TIMBRE**, **STEREO** y **FX** (cuánto se mueve cada destino).
|
||||
**0** es apagado (el sonido exactamente como sin LIFE, nada calculado). Hasta **60**, más o menos, es como antes: una
|
||||
respiración suave. En **50** los filtros y el timbre se mueven un poco, las pistas se mecen alrededor del centro y los
|
||||
envíos respiran. Pasado **80** la perilla lleva el destino por **todo su rango**: en **100** FILTER cierra y abre el
|
||||
filtro de una pista de punta a punta, TIMBRE lleva el timbre del motor (profundidad de FM, forma) al máximo, STEREO
|
||||
tira las pistas a fondo a izquierda y derecha y FX abre del todo los envíos de reverb y delay, todo con slew (sin
|
||||
clicks). Pasado **90** TIMBRE además **desafina**, hasta casi un semitono en 100.
|
||||
- **BEING**: el ser de la pista grande, sus cuatro perillas de HOME como órganos en las esquinas (un medidor cada una,
|
||||
su valor, una vena hasta el cuerpo), el nombre del sonido debajo. (0.9.4) Una pista VOICE muestra ahí su **cabeza**, una ANIMAL su
|
||||
**criatura**, una DRUM-X su **batería de bichitos** (ver [sus dibujos](#tres-motores-dibujan-su-propia-criatura-094)); (0.9.6) los otros
|
||||
|
||||
+13
-1
@@ -399,7 +399,7 @@ it was in 0.9.1, with its knobs and its picture (the ones 0.8.5's lenses drew).
|
||||
|
||||
| Section | Groups (the button) · pages (SELECT) | Pages |
|
||||
| --- | --- | --- |
|
||||
| **HOME** | **ECO**: ECO · MACROS — **BEING**: BEING · ROUTES — **GENE**: GENE 1 · GENE 2 · GENE 3 | 7 |
|
||||
| **HOME** | **ECO**: ECO · LIFE · MACROS — **BEING**: BEING · ROUTES — **GENE**: GENE 1 · GENE 2 · GENE 3 | 8 |
|
||||
| **EDIT** (a synth) | **SOUND**: EDIT 1 · EDIT 2 — **TONE**: FILTER · MORPH · RETRIG · ROTOR · WORDS · SWARM · SWARM 2 (those the engine and the track have) — **FOCUS**: FOCUS — **PLAY**: PLAY · PLAY 2 (codex/coherence: was VOICE; STEREO's IMAGE on PLAY 2) | up to 11 |
|
||||
| **EDIT** (FM6) | **SOUND**: EDIT 1 (ALGO) · EDIT 2 (PATCH) — **TONE**: FILTER — **OPERATOR**: OPERATOR · OP ENV · OPERATOR 2 — **PLAY**: PLAY · PLAY 2 | 8 |
|
||||
| **EDIT** (DRUM) | **KIT**: KIT · KIT 2 · KIT 3 · KIT 4 — **SOUND**: SOUND · SOUND 2 · SOUND 3 · SOUND 4 — **LEVELS**: LEVELS · LEVELS 2 — **TONE**: X-MOD · FILTER · STEREO · PLAY | 14 |
|
||||
@@ -427,6 +427,18 @@ the bars with KNOB 1 the bar and KNOB 2 LEN.
|
||||
went with MUTATE.) The cytoplasm's
|
||||
granules drift behind them (drawn by the screen alone: nothing of the sound's time). **MACROS**:
|
||||
KNOB 1–4 are **M1–M4** (the macros, as LFO held), the routes counted at the top left, LATCH at the right.
|
||||
- **LIFE** (between ECO and MACROS; V10.8.90 made it evolve): the tracks modulate each other. Each track's level
|
||||
(a fast follower) pushes its neighbour on a **ring** (a DRUM hit pushes the other way), and a slow **memory** (about
|
||||
three bars, following the tempo) adds what it has been doing lately, so the same bar does not move the same way twice.
|
||||
The **ring mutates every 4 bars**, on the bar line, its order new but the same for the same song (the first 4 bars
|
||||
after PLAY keep the original order; stopped, it still turns every 4 bars of the tempo), changed smoothly.
|
||||
KNOB 1–4 are **FILTER**, **TIMBRE**, **STEREO** and **FX** (how much each destination moves). **0** is off (the sound
|
||||
exactly as without LIFE, nothing computed). Up to about **60** it is as before: a gentle breathing. **50**: the
|
||||
filters and the timbre move a little, the tracks sway around the centre, the sends breathe. Past **80** the knob takes
|
||||
the destination over its **whole range**: at **100** FILTER closes and opens a track's filter from end to end,
|
||||
TIMBRE drives the engine's timbre (FM depth, shape) to the top, STEREO throws the tracks hard left and right, FX
|
||||
opens the reverb and delay sends fully, every move slewed (no clicks). Past **90** TIMBRE also **detunes** the
|
||||
pitch, up to about a semitone at 100.
|
||||
- **BEING**: the track's being large, its four HOME knobs as organs at the corners (a gauge each, its value, a vein to
|
||||
the body), the sound's name under it. (0.9.4) A VOICE track shows its **head**, an ANIMAL track its **creature**, a DRUM-X track
|
||||
its **kit of little beings** there (see [their pictures](#three-engines-draw-their-own-creature-094)); (0.9.6) the other six
|
||||
|
||||
+2
-2
@@ -1661,7 +1661,7 @@ static int gnever(const char *s)
|
||||
return 0;
|
||||
}
|
||||
/* (0.9.9-gen1) a value from a packed range (gen_tables.c GR, GR4) */
|
||||
static int16_t grg(uint32_t b, uint32_t u) { return (int16_t)grr((int32_t)(b >> 4) * (int32_t)u, (int32_t)(b & 15u) * (int32_t)u + (int32_t)u - 1); }
|
||||
C2_IN static __attribute__((noinline)) int16_t grg(uint32_t b, uint32_t u) { return (int16_t)grr((int32_t)(b >> 4) * (int32_t)u, (int32_t)(b & 15u) * (int32_t)u + (int32_t)u - 1); }
|
||||
|
||||
#define GVIB_RLO 88 /* (0.9.9-gen2) a vibrato's RATE: 5.1 .. 6.3 Hz (params.c F_LFOHZ) */
|
||||
#define GVIB_RHI 92
|
||||
@@ -2420,7 +2420,7 @@ static __attribute__((noinline)) void gtile(track_t *t)
|
||||
for (i = l0; i < NSTEP; i++) t->step[i] = t->step[i % l0];
|
||||
t->p[P_SLEN] = NSTEP;
|
||||
}
|
||||
static uint32_t gls_snare(const track_t *t);
|
||||
C2_IN static uint32_t gls_snare(const track_t *t);
|
||||
/* (V10.8.69, JIANT BYTE's: its song plans and its sections' automation, locks and components) */
|
||||
/* (V10.7.26, the owner: "SONG always gives the same structure") FORM SONG's own plans: templates by the genre's family,
|
||||
* a seed's one of them, its rows thrown. A row's kind (GT_*), its lengths (SL: 4|8, 8|16, 16|32 bars, the build's 4),
|
||||
|
||||
@@ -173,7 +173,7 @@ BTAPP_FN static void gls_counter(track_t *t, const track_t *src, uint32_t len)
|
||||
}
|
||||
}
|
||||
/* the build's roll (FROM LOOP): on the lane the loop's backbeat plays (its snare, clap or rim; else its busiest) */
|
||||
static uint32_t gls_snare(const track_t *t)
|
||||
C2_IN static __attribute__((noinline)) uint32_t gls_snare(const track_t *t) /* (V10.8.90: gen_make's only, in the second segment) */
|
||||
{
|
||||
uint32_t i, l, n, best = 1, bn = 0;
|
||||
for (l = 1; l < NLANE; l++) {
|
||||
|
||||
+125
-36
@@ -94,8 +94,18 @@ static volatile int8_t pkr_a; /* .. its amount (AMT: 64 the whole range) */
|
||||
static int16_t life_x[NTRK] __attribute__((section(".bss.tape"))), life_p[NTRK] __attribute__((section(".bss.tape")));
|
||||
static uint8_t life_on __attribute__((section(".bss.tape")));
|
||||
static uint16_t life_ph[NTRK] __attribute__((section(".bss.tape"))); /* (V10.8.64) STEREO's swing */
|
||||
static uint32_t life_rk; /* (its place in the ring: every other one the other way) */
|
||||
static uint8_t life_fol __attribute__((section(".bss.tape")));
|
||||
/* (V10.8.90, the owner: "la modulacion cruzada en 100 sea extrema", evolving) life_evo's: each track's slow memory (m,
|
||||
* Q23: its neighbours' sound gathered and let go over ~3 bars), its FILTER / TIMBRE / FX sources past 80 as
|
||||
* they act (s: life_ext; STEREO's in life_p, life_mod's), the ring (who moves whom: pv now, po the one it fades from over
|
||||
* fd), the order its 4 bars play it in (ord) and their count (ep; stopped: fq, on the tempo: fr) */
|
||||
static struct {
|
||||
int32_t m[NTRK];
|
||||
uint32_t ep, fq, fr;
|
||||
int16_t s[NTRK][3];
|
||||
uint16_t fd;
|
||||
uint8_t pv[NTRK], po[NTRK], ord[NTRK];
|
||||
} lf __attribute__((section(".bss.tape")));
|
||||
static int16_t macro_e[4]; /* (V10.8.7) M1..M4 as they act this block: the knob's value plus what the tracks' slots
|
||||
* added the block before (macro_master, once a block, first) */
|
||||
static int16_t macro_mm[4];
|
||||
@@ -410,6 +420,34 @@ static void clay_off(const track_t *t, mod_t *mp, int32_t *off, uint32_t id, int
|
||||
}
|
||||
off[j] += (x * (id == P_LRATE ? 127 : pd->max - pd->min)) >> 15;
|
||||
}
|
||||
/* (V10.8.90) LIFE's FILTER TIMBRE and FX past 80 on track t (genv_mod, after life_mod: every knob's from life_x there),
|
||||
* what each knob's own source (life_evo: lf.s) adds to it, by life_mod's amounts; TIMBRE past 90 also the pitch, up to
|
||||
* a semitone at 100 */
|
||||
static __attribute__((noinline)) void life_ext(track_t *t, int32_t *off)
|
||||
{
|
||||
static const uint8_t LD[4] = {MD_CUT, MD_SHP, MD_REV, MD_DLY};
|
||||
mod_t *const mp = &MOD;
|
||||
uint32_t q, ti = trk_slot(t), e = t->engine;
|
||||
for (q = 0; q < 4u; q++) {
|
||||
uint32_t d = LD[q], k = q < 2u ? q : 2u;
|
||||
int32_t v = life_v[q < 2u ? q : 3u], a = v * 127 / 100 + (v > 60 ? ((v - 60) * (v - 60) * 39) >> 8 : 0),
|
||||
x = lf.s[ti][k] - life_x[ti];
|
||||
if (v <= 80 || !x)
|
||||
continue;
|
||||
if (d == MD_CUT && (e == ENGI_WHEEL || e == ENGI_DRUM || e == ENGI_STRING || e == ENGI_INPUT || e == ENGI_ANALOG))
|
||||
d = MD_FCUT;
|
||||
if (d == MD_SHP && e == ENGI_ANALOG) /* (ANALOG: its DRIVE, as life_mod) */
|
||||
d = MD_E1 + 6u;
|
||||
if (d == MD_CUT)
|
||||
mp->cut += (x * a) >> 7;
|
||||
else if (d == MD_SHP)
|
||||
mp->shp += (x * a) >> 7;
|
||||
else
|
||||
clay_off(t, mp, off, d == MD_FCUT && e == ENGI_ANALOG ? P_E4 : mod_param(d), (x * a) >> 6);
|
||||
}
|
||||
if (life_v[1] > 90) /* (up to 15/16 of a semitone, as a slot's PITCH: x * a * 3 >> 15) */
|
||||
mp->pit += (lf.s[ti][1] * ((life_v[1] - 90) >> 1) * 3) >> 15;
|
||||
}
|
||||
/* (V10.8.89) GLO > GLOBAL ENVELOPE (params.c genv_v) on track t, once a part's block while a knob is off its middle: ATK
|
||||
* DEC REL each moved by its knob's steps (their times x 10000^(k/127)), SUS times that factor (GENV_F), and a kit's DECAY
|
||||
* (P_E3: its hits') moved by DECAY's steps x1.5 (the kit's 9 octaves over 127 against ENV's 13.3: the same factor), added
|
||||
@@ -418,7 +456,9 @@ static void clay_off(const track_t *t, mod_t *mp, int32_t *off, uint32_t id, int
|
||||
static __attribute__((noinline)) void genv_mod(track_t *t, int32_t *off)
|
||||
{
|
||||
uint32_t k;
|
||||
life_mod(t, off); /* (LIFE's and a punch-in key's routes; none on: nothing) */
|
||||
life_mod(t, off); /* (LIFE's STEREO and a punch-in key's routes; none on: nothing) */
|
||||
if (life_on)
|
||||
life_ext(t, off); /* (V10.8.90) LIFE's FILTER TIMBRE FX past 80 */
|
||||
if (!GENV_ON)
|
||||
return;
|
||||
for (k = 0; k < 5u; k++) {
|
||||
@@ -602,54 +642,103 @@ static __attribute__((noinline)) void wv_span(const track_t *t, int32_t base, in
|
||||
|
||||
/* (V10.7.62) LIFE (params.c life_v: HOME > LIFE): each track moved by the others' sound of the block before, their
|
||||
* followers (track_env). Who moves whom: most the track before it in the ring of the tracks (two: each the other's), the
|
||||
* rest a quarter. A kit's hits close (negative), a voice's open (positive): life_x, the FILTER, TIMBRE and FX routes'
|
||||
* source (mod_begin). PUMP: a kit's hits (no kit sounding: the ring's) duck a synth's level, life_p (a kit is not pumped).
|
||||
* Per block only: no voice or sample work of its own; every value is a matrix offset, restored after the part */
|
||||
* rest a quarter. A kit's hits close (negative), a voice's open (positive). (V10.8.90) The work: life_evo, past the
|
||||
* sound's recorded code (this one pinned, its size no larger). Per block only: no voice or sample work of its own; every
|
||||
* value is a matrix offset, restored after the part */
|
||||
static void life_evo(uint32_t n, uint32_t was);
|
||||
static __attribute__((noinline)) void life_block(void)
|
||||
{
|
||||
uint32_t i, j, r, n = trk_live < NTRK ? trk_live : NTRK, kit = 0, on = 0, prv[NTRK], last = NTRK;
|
||||
uint32_t n = trk_live < NTRK ? trk_live : NTRK, was = life_on;
|
||||
life_on = (uint8_t)((life_v[0] | life_v[1] | life_v[2] | life_v[3]) != 0 && n > 1u);
|
||||
life_fol = 0;
|
||||
if (!life_on)
|
||||
return;
|
||||
if (life_on)
|
||||
life_evo(n, was);
|
||||
}
|
||||
/* (V10.8.90) LIFE's block, once an audio block while it runs (life_block): the ring (each 4 bars of the transport, free
|
||||
* on the tempo stopped, a new order: the first 4 bars after PLAY the tracks' own, then a shuffle of the bar count, the
|
||||
* same every time; the mover faded from the old ring's to the new one's over ~1.5 s), the followers (life_x as before,
|
||||
* each track's memory of them), and each knob's source (lf.s, life_p): to 80 the followers and twice the memory; past
|
||||
* 80 centred on the memory (at 100 the followers against what it gathered: below it closes, above it opens), up to x8,
|
||||
* slewed */
|
||||
static __attribute__((noinline)) void life_evo(uint32_t n, uint32_t was)
|
||||
{
|
||||
uint32_t i, j, kit = 0, on = 0, rk = 0, ep, last = NTRK, f, bpm = (uint32_t)song.g[G_BPM];
|
||||
for (i = 0; i < n; i++) {
|
||||
prv[i] = NTRK;
|
||||
kit |= (uint32_t)(trk[i].engine == ENGI_DRUM) << i;
|
||||
on |= (uint32_t)!trk[i].p[P_MUTE] << i; /* (the ring: the tracks not muted, in order) */
|
||||
on |= (uint32_t)!trk[i].p[P_MUTE] << i; /* (the ring: the tracks not muted, in its order) */
|
||||
}
|
||||
for (r = 0; r < 2u; r++) /* (each one's before it, round the ring: the last's the first's) */
|
||||
for (i = 0; i < n; i++)
|
||||
if ((on >> i) & 1u) {
|
||||
if (last < NTRK) prv[i] = last;
|
||||
last = i;
|
||||
}
|
||||
life_rk = 0;
|
||||
for (i = 0; i < n; i++) {
|
||||
int32_t x = 0, pk = 0, pr = 0;
|
||||
if (!((on >> i) & 1u)) {
|
||||
life_x[i] = life_p[i] = 0;
|
||||
continue;
|
||||
if (song.playing)
|
||||
ep = (clk_pos == CLK_START ? 0u : clk_n >> 6) + 1u; /* (4 bars of 16 1/16s since PLAY; never 0: lf.ord set the
|
||||
* first time) */
|
||||
else {
|
||||
lf.fr += CTL * bpm; /* (4 bars on the tempo: FS * 60 * 16 samples x BPM) */
|
||||
if (lf.fr >= (uint32_t)FS * 960u) {
|
||||
lf.fr -= (uint32_t)FS * 960u;
|
||||
lf.fq++;
|
||||
}
|
||||
ep = lf.fq | 0x80000000u;
|
||||
}
|
||||
if (ep != lf.ep) { /* (a new order: from the old ring's mover to the new one's) */
|
||||
uint32_t h = ep * 2654435761u, k;
|
||||
lf.ep = ep;
|
||||
lf.fd = 0;
|
||||
for (i = 0; i < NTRK; i++) lf.ord[i] = (uint8_t)i, lf.po[i] = lf.pv[i];
|
||||
for (i = NTRK - 1u; ep != 1u && i > 0u; i--) { /* (Fisher-Yates on the count's hash; the first 4 bars: none) */
|
||||
h ^= h >> 15; h *= 2246822519u; h ^= h >> 13;
|
||||
j = ((h >> 16) * (i + 1u)) >> 16;
|
||||
k = lf.ord[i]; lf.ord[i] = lf.ord[j]; lf.ord[j] = (uint8_t)k;
|
||||
}
|
||||
}
|
||||
memset(lf.pv, NTRK, sizeof lf.pv);
|
||||
for (j = 0; j < 2u * NTRK; j++) { /* (each one's before it, round the ring: the last's the first's) */
|
||||
i = lf.ord[j < NTRK ? j : j - NTRK];
|
||||
if (i < n && ((on >> i) & 1u)) {
|
||||
if (last < NTRK) lf.pv[i] = (uint8_t)last;
|
||||
last = i;
|
||||
}
|
||||
}
|
||||
if (!was) { /* (on again: no memory, no fade: lf.po not weighed) */
|
||||
memset(lf.m, 0, sizeof lf.m);
|
||||
lf.fd = 1024;
|
||||
}
|
||||
if (lf.fd < 1024u)
|
||||
lf.fd++;
|
||||
f = lf.fd >> 2;
|
||||
for (i = 0; i < n; i++) {
|
||||
int32_t x = 0, push = 0, m, mh, q;
|
||||
life_x[i] = life_p[i] = 0;
|
||||
if (!((on >> i) & 1u))
|
||||
continue;
|
||||
for (j = 0; j < n; j++) {
|
||||
int32_t e = track_env[j], w = j == prv[i] ? 4 : 1;
|
||||
int32_t e = track_env[j] * (256 + (j == lf.pv[i] ? 3 * (int32_t)f : 0) + (j == lf.po[i] ? 768 - 3 * (int32_t)f : 0));
|
||||
if (j == i || !((on >> j) & 1u))
|
||||
continue;
|
||||
x += ((kit >> j) & 1u ? -e : e) * w;
|
||||
if ((kit >> j) & 1u)
|
||||
pk += e * w;
|
||||
else
|
||||
pr += e * w;
|
||||
x += (kit >> j) & 1u ? -e : e;
|
||||
push += e;
|
||||
}
|
||||
life_x[i] = (int16_t)clamp(x >> 1, -32767, 32767); /* (x2 over the weights' 4: a follower seldom peaks full) */
|
||||
{ /* (V10.8.64, the owner) STEREO (was PUMP): each track pushed across the stereo field by its neighbours' sound
|
||||
* (the louder they play, the further), every other one in the ring the other way (two playing apart), swinging
|
||||
* at a speed the track before it sets; quiet, back to its own PAN (the followers fall) */
|
||||
int32_t push = clamp((pk + pr) >> 1, 0, 32767), tri;
|
||||
life_ph[i] = (uint16_t)(life_ph[i] + 24u + ((uint32_t)track_env[prv[i] < NTRK ? prv[i] : i] >> 8));
|
||||
x = clamp(x >> 9, -32767, 32767); /* (x2 over the weights' 4: a follower seldom peaks full) */
|
||||
m = lf.m[i]; /* (the memory: a leak of ~3 bars, on the tempo: 2^19 / BPM blocks) */
|
||||
m += ((((x << 8) - m) >> 8) * (int32_t)bpm) >> 11;
|
||||
lf.m[i] = m;
|
||||
mh = m >> 7; /* (twice it, Q15: a memory is lower than the peaks) */
|
||||
life_x[i] = (int16_t)clamp(x + mh, -32767, 32767); /* (life_mod's, every knob's to 80) */
|
||||
{ /* (V10.8.64, the owner) STEREO: each track pushed across the stereo field by its neighbours' sound (the louder
|
||||
* they play, the further; V10.8.90: its memory too), every other one in the ring the other way, swinging at
|
||||
* a speed the track before it sets; past 80 up to x8 (hard left and right) */
|
||||
int32_t pu = clamp((push >> 9) + ((mh < 0 ? -mh : mh) >> 1), 0, 32767), tri, t = life_v[2] - 80;
|
||||
life_ph[i] = (uint16_t)(life_ph[i] + 24u + ((uint32_t)track_env[lf.pv[i] < NTRK ? lf.pv[i] : i] >> 8));
|
||||
tri = (int32_t)(life_ph[i] & 0x7FFFu) * 2 - 32767;
|
||||
tri = life_ph[i] & 0x8000u ? -tri : tri;
|
||||
life_p[i] = (int16_t)clamp((((life_rk & 1u) ? -16384 : 16384) + (tri >> 1)) * push >> 15, -32767, 32767);
|
||||
life_rk++;
|
||||
q = (((rk++ & 1u) ? -16384 : 16384) + (tri >> 1)) * pu >> 15;
|
||||
life_p[i] = (int16_t)clamp((q * (256 + (t > 0 ? t * 90 : 0))) >> 8, -32767, 32767);
|
||||
}
|
||||
for (j = 0; j < 3u; j++) { /* FILTER TIMBRE FX past 80 (life_ext): centred on the memory, at
|
||||
* 100 on -1/2 of it (its own), up to x8, slewed (no clicks) */
|
||||
int32_t t = life_v[j + (j >> 1)] - 80, c = x + mh - ((mh * t * 154) >> 11);
|
||||
if (t > 0) {
|
||||
c = clamp((c * (256 + t * 90)) >> 8, -32767, 32767);
|
||||
lf.s[i][j] = (int16_t)(lf.s[i][j] + ((c - lf.s[i][j]) >> 3));
|
||||
}
|
||||
}
|
||||
}
|
||||
life_fol = (uint8_t)(on & ~track_follow_mask); /* (the followers LIFE alone asks for: every 4th sample, fx.c) */
|
||||
|
||||
@@ -264,8 +264,8 @@ static void graph_eco(void)
|
||||
if (home_set() == 1u && life_on) { /* (V10.7.62) LIFE: who moves whom, as bright as the mover sounds */
|
||||
uint32_t n = trk_live < ECO_N ? trk_live : ECO_N, j;
|
||||
for (c = 0; c < n; c++) {
|
||||
j = (c + n - 1u) % n;
|
||||
if (j != c)
|
||||
j = lf.pv[c]; /* (V10.8.90: the ring as it plays now, mutes and its 4 bars' order) */
|
||||
if (j < n && j != c)
|
||||
og_line_a(bx[j], by[j], bx[c], by[c], trk[j].engine == ENGI_DRUM ? T_ACCENT : T_THEME,
|
||||
clamp(48 + track_env[j] / 96, 48, 256));
|
||||
}
|
||||
|
||||
@@ -128,6 +128,11 @@ static uint32_t scene(uint32_t mask, uint32_t nblk)
|
||||
for (k = 0; k < NTRK; k++)
|
||||
if (mask >= 0x100u ? gs.role[k] == RL_BASS : k == 1u) ott_v[k][OT_DEPTH] = (int16_t)atoi(getenv("CL_OTTB"));
|
||||
}
|
||||
if (getenv("CL_LIFE")) { /* (V10.8.90) HOME > LIFE's four knobs at this amount (100: the
|
||||
* extreme, its ring and memory under way) */
|
||||
uint32_t k;
|
||||
for (k = 0; k < 4u; k++) life_v[k] = (int16_t)atoi(getenv("CL_LIFE"));
|
||||
}
|
||||
if (live.mode) chain_play_ui(); else transport_req = 1;
|
||||
ui_input();
|
||||
dty = getenv("CL_DTYPE") ? atoi(getenv("CL_DTYPE")) : -1;
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
#define UI_TEST_NO_MAIN 1
|
||||
#include "ui_test.c"
|
||||
|
||||
#include <sys/mman.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
static double bright, side; /* the last render's: its slope's energy, its L - R's (over its own) */
|
||||
static double rms_song(uint32_t blocks, double *diff, const int32_t *ref)
|
||||
{
|
||||
@@ -80,6 +84,137 @@ static double kit_energy(int g) /* (V10.7.63) a kick on a kit a
|
||||
}
|
||||
return e;
|
||||
}
|
||||
/* (V10.8.90) LIFE 2: GEN's groove (TECHNO, seed 37), four tracks (5 and 6 muted), LIFE's knobs f t s x; its render's FNV
|
||||
* hash over n blocks from PLAY; each block cb (if any) after it */
|
||||
static void l2_groove(int f, int t, int s, int x)
|
||||
{
|
||||
uint32_t k;
|
||||
ui_power_on(); go_home(); frames(4);
|
||||
ui_rec_prefs |= PREF_SIX >> 8; rp_apply();
|
||||
song.master_q12 = 4096;
|
||||
gp.genre = 4; gp.seed = 37; gp.energy = 60; gp.form = 0;
|
||||
for (k = 0; k < GP_N; k++) gp.amt[k] = 60;
|
||||
gp.complex = 50; gp.swing = GA_AUTO; gp.human = 30;
|
||||
gen_go();
|
||||
for (k = 4; k < NTRK; k++) trk[k].p[P_MUTE] = 1;
|
||||
life_block(); /* (off first: the next block on again, no memory of before) */
|
||||
life_v[0] = (int16_t)f; life_v[1] = (int16_t)t; life_v[2] = (int16_t)s; life_v[3] = (int16_t)x;
|
||||
rng_state = 0x1234567u; mod_seed = 0x2545F491u;
|
||||
}
|
||||
static uint64_t l2_play(uint32_t n, void (*cb)(uint32_t))
|
||||
{
|
||||
static int32_t o[2 * CTL];
|
||||
uint64_t h = 1469598103934665603ull;
|
||||
uint32_t b, i;
|
||||
seq_start(); song.playing = 1;
|
||||
for (b = 0; b < n; b++) {
|
||||
mix_block(o, CTL);
|
||||
for (i = 0; i < 2u * CTL; i++) h = (h ^ (uint32_t)o[i]) * 1099511628211ull;
|
||||
if (cb) cb(b);
|
||||
}
|
||||
seq_stop(); song.playing = 0;
|
||||
return h;
|
||||
}
|
||||
#define L2_BAR (4u * FS * 60u / 121u / CTL) /* (the groove's bar in blocks, 121 BPM) */
|
||||
static int32_t l2_lo, l2_hi, l2_min, l2_max;
|
||||
static uint32_t l2_n;
|
||||
static uint8_t l2_ring[64][NTRK];
|
||||
static uint32_t l2_at[64];
|
||||
static double l2_bx[40];
|
||||
static void l2_reach(uint32_t b) /* T1 (a kit: its CUTOFF) as LIFE leaves it in a part's block */
|
||||
{
|
||||
track_t *t = &trk[0];
|
||||
const param_desc_t *pd = mod_track_desc(t, P_FCUT);
|
||||
(void)b;
|
||||
if (mod_begin(t)) {
|
||||
l2_lo = t->p[P_FCUT] < l2_lo ? t->p[P_FCUT] : l2_lo;
|
||||
l2_hi = t->p[P_FCUT] > l2_hi ? t->p[P_FCUT] : l2_hi;
|
||||
mod_end(t);
|
||||
}
|
||||
l2_min = pd->min; l2_max = pd->max;
|
||||
}
|
||||
static void l2_rings(uint32_t b) /* each change of the ring: the block, the ring */
|
||||
{
|
||||
if (l2_n < 64u && (!l2_n || memcmp(l2_ring[l2_n - 1u], lf.pv, NTRK))) {
|
||||
memcpy(l2_ring[l2_n], lf.pv, NTRK);
|
||||
l2_at[l2_n++] = clk_n;
|
||||
}
|
||||
(void)b;
|
||||
}
|
||||
static void l2_bars(uint32_t b) /* T3's LIFE source summed by bar */
|
||||
{
|
||||
if (b / L2_BAR < 40u) l2_bx[b / L2_BAR] += life_x[2] < 0 ? -life_x[2] : life_x[2];
|
||||
}
|
||||
/* each test of LIFE 2 from the state at the program's start (a child of its own: none of it left for the others) */
|
||||
static uint64_t *l2_h;
|
||||
static int life2(void)
|
||||
{
|
||||
int bad = 0, ok;
|
||||
static const uint64_t L0 = 0xd5e2733dd369ba43ull; /* (V10.8.89's render of this groove, LIFE off, cc -O1) */
|
||||
uint32_t i, k, mid = 0;
|
||||
double first, later;
|
||||
for (k = 0; k < 2u; k++) { /* (two children of one state: off, and on a block then off) */
|
||||
pid_t pid = (fflush(stdout), fork());
|
||||
if (pid) { int st = 0; waitpid(pid, &st, 0); continue; }
|
||||
l2_groove(k ? 100 : 0, k ? 100 : 0, k ? 100 : 0, k ? 100 : 0);
|
||||
if (k) {
|
||||
life_block();
|
||||
life_v[0] = life_v[1] = life_v[2] = life_v[3] = 0;
|
||||
}
|
||||
l2_h[k] = l2_play(4u * L2_BAR, 0);
|
||||
l2_h[2 + k] = life_on;
|
||||
_exit(0);
|
||||
}
|
||||
printf(" LIFE 0 groove hash %016llx\n", (unsigned long long)l2_h[0]);
|
||||
bad += check("LIFE 2: all 0 the groove bit for bit as V10.8.89's, also after it ran", l2_h[0] == l2_h[1] &&
|
||||
l2_h[0] == L0 && !l2_h[2] && !l2_h[3]);
|
||||
for (k = 0; k < 2u; k++) { /* FILTER 60 (as before: within the range) and 100 (both ends) */
|
||||
l2_groove(k ? 100 : 60, 0, 0, 0);
|
||||
l2_lo = 1 << 20; l2_hi = -(1 << 20);
|
||||
l2_play(8u * L2_BAR, l2_reach);
|
||||
printf(" FILTER %d: T1's CUTOFF %d..%d of %d..%d\n", k ? 100 : 60, l2_lo, l2_hi, l2_min, l2_max);
|
||||
if (k)
|
||||
bad += check("LIFE 2: FILTER 100 drives the filter fully closed and fully open", l2_lo == l2_min && l2_hi == l2_max);
|
||||
else
|
||||
mid = (uint32_t)(l2_hi - l2_lo);
|
||||
}
|
||||
bad += check("LIFE 2: FILTER 60 moves it, less than the whole range", mid > 0u && mid < (uint32_t)(l2_max - l2_min));
|
||||
l2_groove(50, 0, 0, 0); /* (the memory: the same bars, the source grows over them) */
|
||||
memset(l2_bx, 0, sizeof l2_bx);
|
||||
l2_play(4u * L2_BAR, l2_bars);
|
||||
first = l2_bx[0]; later = l2_bx[3];
|
||||
printf(" FILTER 50: T3's source bar 1 %.0f, bar 4 %.0f (x%.2f)\n", first / L2_BAR, later / L2_BAR, later / first);
|
||||
bad += check("LIFE 2: the memory: bar 4 moves the tracks more than bar 1 (the same pattern)", later > first * 1.15);
|
||||
for (k = 0; k < 2u; k++) { /* (the ring: twice the same) */
|
||||
static uint8_t r0[64][NTRK];
|
||||
static uint32_t a0[64], n0;
|
||||
if (k) { memcpy(r0, l2_ring, sizeof r0); memcpy(a0, l2_at, sizeof a0); n0 = l2_n; }
|
||||
l2_groove(50, 0, 50, 0);
|
||||
l2_n = 0;
|
||||
l2_play(17u * L2_BAR, l2_rings);
|
||||
if (k) {
|
||||
ok = n0 == l2_n && !memcmp(r0, l2_ring, sizeof r0) && !memcmp(a0, l2_at, n0 * sizeof *a0);
|
||||
bad += check("LIFE 2: the ring's changes the same on every play (its order from the bar count)", ok);
|
||||
}
|
||||
}
|
||||
for (i = 0; i < l2_n; i++)
|
||||
printf(" ring at 1/16 %3u: %u %u %u %u\n", l2_at[i], l2_ring[i][0], l2_ring[i][1], l2_ring[i][2], l2_ring[i][3]);
|
||||
ok = l2_n >= 3u && l2_ring[0][0] == 3u && l2_ring[0][1] == 0u && l2_ring[0][2] == 1u && l2_ring[0][3] == 2u;
|
||||
for (i = 1; i < l2_n; i++) ok &= (l2_at[i] & 63u) == 0u;
|
||||
bad += check("LIFE 2: the ring the tracks' own for 4 bars, then a new one only on a 4-bar line", ok);
|
||||
{ /* (stopped: free, on the tempo) */
|
||||
static int32_t o[2 * CTL];
|
||||
uint8_t r[NTRK];
|
||||
uint32_t c = 0;
|
||||
l2_groove(50, 0, 0, 0);
|
||||
for (i = 0; i < 2u; i++) mix_block(o, CTL);
|
||||
memcpy(r, lf.pv, NTRK);
|
||||
for (i = 0; i < 20u * L2_BAR && !c; i++) { mix_block(o, CTL); c = memcmp(r, lf.pv, NTRK) != 0; }
|
||||
printf(" stopped: the ring changed after %.1f bars\n", (double)i / L2_BAR);
|
||||
bad += check("LIFE 2: stopped, the ring changes on its own (4 bars on the tempo)", c && i > 3u * L2_BAR);
|
||||
}
|
||||
return bad;
|
||||
}
|
||||
int main(void)
|
||||
{
|
||||
int bad = 0, ok, q;
|
||||
@@ -87,6 +222,15 @@ int main(void)
|
||||
static const char *const NM[4] = {"FILTER", "TIMBRE", "STEREO", "FX"};
|
||||
ok = !life_on && !life_v[0] && !life_v[1] && !life_v[2] && !life_v[3];
|
||||
bad += check("LIFE: off at power-on (nothing runs)", ok);
|
||||
{ /* (V10.8.90, the owner: "la modulacion cruzada en 100 sea extrema", evolving) LIFE 2, in a child of its own */
|
||||
pid_t pid;
|
||||
int st = 0;
|
||||
l2_h = mmap(0, 4u * sizeof *l2_h, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0);
|
||||
pid = (fflush(stdout), fork());
|
||||
if (!pid) { int r = life2(); fflush(stdout); _exit(r); }
|
||||
waitpid(pid, &st, 0);
|
||||
bad += WIFEXITED(st) ? WEXITSTATUS(st) : 1;
|
||||
}
|
||||
{ /* (the yardstick: the voices' free phases move a render a few %: four runs, their spread) */
|
||||
double ea, br0 = 0, sd0 = 0, lo = 1e30, hi = 0;
|
||||
e0 = 0;
|
||||
|
||||
+53
-41
@@ -203,7 +203,7 @@ crash_log_put 138 text crash_code hex8 memcpy str_cpy str_len
|
||||
cur_page 34 text
|
||||
cursor_fix 30 text cursor_set tsel_p
|
||||
cursor_set 62 text tsel_p
|
||||
cv_alpha_hc 686 text
|
||||
cv_alpha_hc 688 text
|
||||
cv_begin 96 text lcd_sync
|
||||
cv_blit 44 text dc_touch scr_blit
|
||||
cv_blit_cells 586 text dc_cell dc_send scr_blit
|
||||
@@ -271,7 +271,7 @@ draw_countin 374 text cv_begin cv_blit cv_key_hint draw_text_box kh_ink lcd_sync
|
||||
draw_crumbs 474 text cv_text_fit cv_text_on cv_text_r fmt_frac fmt_int foot_crumbs foot_strip lz_fam lz_on nav_groups str_cat str_len text_w
|
||||
draw_foot 676 text act_cols act_ready black_held cv_begin cv_blit cv_key_row cv_text_fit draw_crumbs foot_crumbs foot_h foot_hint foot_ph foot_strip foot_y grid_on knob_line lz_hint lz_on memcpy page_title steps_hash str_cpy str_hash tsel_p
|
||||
draw_frame 158 text card_h card_y foot_y graph_h graph_y scr_fill
|
||||
draw_graph 9440 text clay_desc clay_keys clip_dash cur_page cv_begin cv_clip_text cv_frame cv_line_t cv_pset cv_rect cv_rrect cv_text cv_text_flags cv_text_in cv_text_on cv_text_r div_samples draw_tracks dx_wave_draw ed_cap ed_resp enum_rank face_has fmt_cat fmt_int focus_k focus_slot fop_ok ft_of gen_radio graph_adsr graph_being_at graph_chord graph_colony graph_eco graph_euclid graph_fx_lz graph_grid graph_h graph_harm graph_home_being graph_key graph_lfo graph_lfodest graph_lz_presets graph_lz_tools graph_morph graph_proj graph_project_used graph_roll graph_score graph_signature graph_sing graph_sound graph_sound_lz graph_system graph_tech graph_y gx_chip heat_col home_level ink_in jam_end jam_lanes jam_len lfo_cap lz_fam lz_on lz_sec memcpy mod_dst_name note_col og_node page_big page_desc page_title panel_send param_format ratio_d roll_view save_level scn_notes scope_at sec_col seq_overlay seq_roll_view sine_i str_cat str_cpy str_eq str_len str_nth strip_kind text_fit text_w toast_clear toast_on track_desc trk_eng trk_engp trk_index trk_nvoice tsel_p ux_mix vx_draw vx_fm6_page vx_fm6env vx_kit_page
|
||||
draw_graph 9444 text clay_desc clay_keys clip_dash cur_page cv_begin cv_clip_text cv_frame cv_line_t cv_pset cv_rect cv_rrect cv_text cv_text_flags cv_text_in cv_text_on cv_text_r div_samples draw_tracks dx_wave_draw ed_cap ed_resp enum_rank face_has fmt_cat fmt_int focus_k focus_slot fop_ok ft_of gen_radio graph_adsr graph_being_at graph_chord graph_colony graph_eco graph_euclid graph_fx_lz graph_grid graph_h graph_harm graph_home_being graph_key graph_lfo graph_lfodest graph_lz_presets graph_lz_tools graph_morph graph_proj graph_project_used graph_roll graph_score graph_signature graph_sing graph_sound graph_sound_lz graph_system graph_tech graph_y gx_chip heat_col home_level ink_in jam_end jam_lanes jam_len lfo_cap lz_fam lz_on lz_sec memcpy mod_dst_name note_col og_node page_big page_desc page_title panel_send param_format ratio_d roll_view save_level scn_notes scope_at sec_col seq_overlay seq_roll_view sine_i str_cat str_cpy str_eq str_len str_nth strip_kind text_fit text_w toast_clear toast_on track_desc trk_eng trk_engp trk_index trk_nvoice tsel_p ux_mix vx_draw vx_fm6_page vx_fm6env vx_kit_page
|
||||
draw_head 2190 text batt_shown cur_page cv_begin cv_blit cv_frame cv_rect cv_rrect cv_text cv_text_fit cv_text_in cv_text_r fmt_cat fmt_int graph_project_used head_load head_msg head_trk project_cur_name roll_note roll_text seq_counting sound_name str_cat str_cpy str_hash str_len text_ink text_w trk_engp tsel_p
|
||||
draw_layer 1778 text bn_on bn_set chain_busy cv_begin cv_blit cv_rect cv_rrect cv_text_in cv_text_up draw_foot draw_tabs ev_len glo_drums graph_grid graph_h graph_roll graph_y hold_banner key_black key_place layer_cards ly_fx_cells ly_keyname perf_avail pfx_rec_ok pk_fill pr_head_step preset_favorite project_recall_slot rec_clearable seq_col seq_sel steps_hash tsel_p
|
||||
draw_menu 1372 text bt_hw_rxdiag bt_hw_status bt_prox_panel card_h card_y cv_begin cv_blit cv_key_row cv_rect cv_rrect draw_foot draw_head draw_tabs fill_around fmt_frac foot_h foot_y gauge_column menu_document menu_get menu_n menu_panel menu_scroll_max menu_set menu_short menu_tab menu_val mtab_first mtab_rows text_column text_w
|
||||
@@ -366,17 +366,19 @@ ed_bk_song_obj 14 text
|
||||
ed_bk_u32 26 text ed_b
|
||||
ed_bk_write 498 text ed_bk_commit ed_bk_r32 ed_flash_stop ed_unpack7 memcpy proj_store_len
|
||||
ed_cap 26 text cv_text
|
||||
ed_command 5670 c2 apply_preset bt_hw_seg chain_busy chain_defaults chain_prepare_at chain_valid clamp desc_fmt desc_nm desc_unit ed_b ed_bk_pack ed_desc ed_flash_stop ed_fm6_handle ed_known ed_load_after ed_load_before ed_menu_save ed_rv ed_send ed_shadow ed_step_put ed_step_reply ed_step_sig ed_str ed_ui_save ed_ui_state ed_unpack7 ed_v ed_val enum_orig excite_turn favorite_has favorite_set fm4_load_preset load_begin load_end lyr_get lyr_set memcpy memset menu_get menu_n menu_put menu_vname mod_dst_name mod_dst_offer mod_dst_scope motion_base_value motion_capture motion_clear motion_clear_locks motion_count motion_delete_event motion_djf_set motion_enabled motion_param motion_set_enabled motion_set_event motion_set_lock mu_set ota_wire_send palette_set project_load project_save project_used set_engine st_read str_nth track_desc track_select trk_eng tsel_p up_grid up_load up_name_ok up_parse up_put up_rec up_set_value up_store up_used up_values
|
||||
ed_desc 72 c2 tsel_p
|
||||
ed_command 5598 c2 apply_preset bt_hw_seg chain_busy chain_defaults chain_prepare_at chain_valid clamp desc_fmt desc_nm desc_unit ed_b ed_bk_pack ed_desc ed_eng ed_flash_stop ed_fm6_handle ed_known ed_load_after ed_load_before ed_menu_save ed_ott ed_rv ed_send ed_shadow ed_step_put ed_step_reply ed_step_sig ed_str ed_tdesc ed_ui_save ed_ui_state ed_unpack7 ed_v ed_val enum_orig excite_turn favorite_has favorite_set fm4_load_preset load_begin load_end lyr_get lyr_set memcpy memset menu_get menu_n menu_put menu_vname mod_dst_name mod_dst_offer mod_dst_scope motion_base_value motion_capture motion_clear motion_clear_locks motion_count motion_delete_event motion_djf_set motion_enabled motion_param motion_set_enabled motion_set_event motion_set_lock mu_set ota_wire_send palette_set project_load project_save project_used set_engine st_read str_nth track_select tsel_p up_grid up_load up_name_ok up_parse up_put up_rec up_set_value up_store up_used up_values
|
||||
ed_desc 70 c2 tsel_p
|
||||
ed_eng 4 c2
|
||||
ed_flash_stop 90 text chain_busy fm1_wdt_feed transport_busy
|
||||
ed_fm6_handle 900 c2 ed_b ed_flash_stop ed_fm6_name ed_str fm6_adopt fm6_neutral fm6_pack fm6_set_patch fm6_unpack fvb_begin fvb_end fvb_info fvb_read fvb_write gz_get memcpy upf_fm6 upf_get upf_save upf_set
|
||||
ed_fm6_name 64 text ed_str
|
||||
ed_handle 1624 text bt_hw_seg ed_args_ok ed_b ed_begin ed_bk_object ed_bk_pack ed_bk_r32 ed_bk_u32 ed_bk_write ed_command ed_flash_stop ed_pj_copy ed_pj_name ed_send ed_str ed_wt_handle fm1_wdt_feed lib_scan memcpy proj_pack project_capture project_rename settings_export song_erase_parts st_crc32 str_len transport_busy ui_message
|
||||
ed_known 96 c2
|
||||
ed_lm_ok 24 text
|
||||
ed_load_after 88 c2 trk_eng tsel_p
|
||||
ed_load_before 108 c2 memcpy trk_eng tsel_p
|
||||
ed_load_after 88 c2 ed_eng tsel_p
|
||||
ed_load_before 108 c2 ed_eng memcpy tsel_p
|
||||
ed_menu_save 88 text memcmp memcpy settings_export settings_save
|
||||
ed_ott 42 c2
|
||||
ed_perf 530 c2 ed_b ed_begin ed_room ed_send lz_fam lz_on nav_page_name nav_sec
|
||||
ed_pj_copy 232 bt ed_bk_song_obj memcpy project_used song_index_target song_saved_index st_load st_save
|
||||
ed_pj_name 76 bt ed_bk_song_obj proj_import proj_name_pack st_load st_save
|
||||
@@ -385,20 +387,21 @@ ed_room 28 text
|
||||
ed_rv 14 text
|
||||
ed_send 28 text
|
||||
ed_service 162 text bt_hw_seg ed_handle ed_sync ota_frame_done ota_frame_get
|
||||
ed_shadow 168 c2 ed_step_sig ed_val trk_eng tsel_p
|
||||
ed_shadow 166 c2 ed_eng ed_step_sig ed_val tsel_p
|
||||
ed_step_put 174 c2 step_set_chance step_set_lmode step_set_ratchet
|
||||
ed_step_reply 122 c2 ed_b step_chance step_lmode step_ratchet
|
||||
ed_step_sig 96 c2
|
||||
ed_str 42 text ed_b
|
||||
ed_sync 722 c2 ed_b ed_begin ed_perf ed_room ed_send ed_shadow ed_step_sig ed_v ed_val trk_eng tsel_p
|
||||
ed_sync 722 c2 ed_b ed_begin ed_eng ed_perf ed_room ed_send ed_shadow ed_step_sig ed_v ed_val tsel_p
|
||||
ed_tdesc 4 c2
|
||||
ed_u28 26 c2 ed_b
|
||||
ed_ui_save 88 c2 memcmp palette_from_stored settings_save
|
||||
ed_ui_state 92 c2 ed_b ed_u28
|
||||
ed_unpack7 138 text
|
||||
ed_v 32 c2 clamp ed_b
|
||||
ed_val 30 c2 tsel_p
|
||||
ed_wt_handle 914 text ed_bk_pack ed_bk_r32 ed_bk_u32 wt_begin wt_data wt_end wt_get wt_list_dir wt_op wt_used
|
||||
edit_param 4658 text accel act_cols bt_hw_seg chain_busy comp_knob confirm_open cur_page cursor_set djf_knob dx_knob eng_rank eng_vis eu_anchor eu_every eu_gen eu_kit eu_of ev_knob excite_turn favorite_set fit_span fit_ui_edit fm6_max fm6_set_patch focus_knob fop_byte fop_field fop_ok jam_end jam_len jam_sort knob_cap lfo_fade_restart list_turn load_put memcpy memset mo_knob mod_dst_offer motion_set_enabled pads_knob page_desc param_turn preset_step rp_apply save_level save_on sc_put select_engine settings_save song_end_row song_idx_touch split_field split_value step_edit sw_ui_knob_bt take_busy take_pick track_select trackgen_knob_bt trk_slot tsel_p ui_message undo_mark user_of
|
||||
ed_wt_handle 584 text ed_b ed_bk_pack ed_bk_r32 ed_bk_u32 wt_begin wt_data wt_end wt_get wt_list_dir wt_op wt_rd32 wt_used
|
||||
edit_param 4662 text accel act_cols bt_hw_seg chain_busy comp_knob confirm_open cur_page cursor_set djf_knob dx_knob eng_rank eng_vis eu_anchor eu_every eu_gen eu_kit eu_of ev_knob excite_turn favorite_set fit_span fit_ui_edit fm6_max fm6_set_patch focus_knob fop_byte fop_field fop_ok jam_end jam_len jam_sort knob_cap lfo_fade_restart list_turn load_put memcpy memset mo_knob mod_dst_offer motion_set_enabled pads_knob page_desc param_turn preset_step rp_apply save_level save_on sc_put select_engine settings_save song_end_row song_idx_touch split_field split_value step_edit sw_ui_knob_bt take_busy take_pick track_select trackgen_knob_bt trk_slot tsel_p ui_message undo_mark user_of
|
||||
edit_recallable 12 text project_recall_slot
|
||||
empty_column 22 text
|
||||
enc_drop 18 text panel_enc
|
||||
@@ -698,7 +701,7 @@ gen_sound 2254 c2 apply_preset_to clamp gch gnear gnever gpickw gr grg grr semi_
|
||||
gen_texture 174 text dhold gch gchord gnote gseed gtone
|
||||
gen_tick 376 text gen_new_seed gen_press gst_put
|
||||
gen_value 480 text
|
||||
genv_mod 214 text * clay_off life_mod
|
||||
genv_mod 232 text * clay_off life_ext life_mod
|
||||
gform 52 text
|
||||
gfree 52 text comp_any dstarts
|
||||
gfxs_own 96 text grr
|
||||
@@ -738,7 +741,7 @@ gls_hear 1038 bt dlen drum_chrom drum_ext drum_note_lane drum_track memset
|
||||
gls_prep 1078 c2 clamp comp_migrate dlen dlevel drum_track gclear_all gen_mix gen_pick gen_role gen_sound gkick_of gls_counter gls_genre gls_hash gls_hear gls_reharm gls_role gplan gseed load_begin load_end memcpy memset motion_clear steps_sig
|
||||
gls_reharm 628 c2 giv gpc gprog_ok gr gtriad_ok
|
||||
gls_role 106 bt dlen drum_track
|
||||
gls_snare 72 text
|
||||
gls_snare 72 c2
|
||||
glyph 68 text glyph_at
|
||||
glyph_at 58 text
|
||||
gm_level 66 text gz_get
|
||||
@@ -764,7 +767,7 @@ graph_adsr 1380 text cur_page cv_line_t cv_pset cv_rect cv_text cv_text_on heat_
|
||||
graph_being_at 182 text being_lines bg_energy bg_excite bg_feat cur_page trk_eng
|
||||
graph_chord 1178 text chord_nm chord_peek cv_rect cv_text cv_text_on gx_keys memset scale_mask str_cat str_cpy str_nth text_w trk_slot
|
||||
graph_colony 558 text being_lines bg_outline cv_rect cv_text cv_text_in cv_text_r drum_kit_of drum_lane_abbr dx_lane_muted heat_col
|
||||
graph_eco 1192 text bg_energy bg_outline bg_sin cv_rect cv_text_in eco_bot eco_face eco_feat eco_genome eco_off eco_step home_set memcpy og_line_a ott_col page_big ux_mix
|
||||
graph_eco 1190 text bg_energy bg_outline bg_sin cv_rect cv_text_in eco_bot eco_face eco_feat eco_genome eco_off eco_step home_set memcpy og_line_a ott_col page_big ux_mix
|
||||
graph_euclid 604 text cv_rect cv_text eu_of graph_h og_cos og_sin step_accents_of step_lanes_of
|
||||
graph_fx_lz 1440 text bg_sin cur_page cv_rect cv_rrect cv_text_on fmt_int fx_dots fx_level fx_mod_of fx_page fx_trk_k fxg_dist fxg_en fxg_label fxg_mod gx_col heat_col lz_tile ott_col page_big page_desc page_visible param_format str_cat str_nth text_w track_desc
|
||||
graph_grid 620 text bar_cells cv_frame cv_rect cv_text_on drum_lane_abbr lens_strip lz_note motion_lock_steps pr_follow_bar pr_split seq_src step_accents_of step_lanes_of step_ratchet trk_index tsel_p
|
||||
@@ -777,9 +780,9 @@ graph_lfodest 514 text cv_line_t cv_rect cv_text_r ed_cap heat_col lfo_cap lfo_w
|
||||
graph_lz_presets 722 text cv_clip_text cv_rect cv_text_fit cv_text_in cv_text_on cv_text_r eng_vis favorite_has fmt_int graph_h heat_col lz_mini_being preset_at preset_pos str_cpy str_eq str_nth tsel_p up_name ux_mix
|
||||
graph_lz_tools 514 text cv_frame cv_rect cv_text cv_text_in cv_text_on fmt_int graph_h str_cpy str_nth
|
||||
graph_morph 704 text an_morph bt_hw_seg cv_line_t cv_rect cv_text heat_col morph_wave pd_setup pd_wave str_cat str_cpy str_nth trk_eng
|
||||
graph_pads 228 text black_held cv_text_flags graph_h page_big pd_state str_nth
|
||||
graph_pads 210 text black_held cv_text graph_h page_big pd_state str_nth
|
||||
graph_proj 920 text cv_frame cv_rect cv_text cv_text_fit cv_text_in cv_text_on cv_text_r fmt_int graph_project_used lz_sec song_bars song_len_txt str_cat
|
||||
graph_project_used 280 text as_mix project_name
|
||||
graph_project_used 276 text as_mix project_name
|
||||
graph_roll 2084 text bar_cells comp_col cur_page cv_frame cv_rect cv_text_r fmt_int lens_strip lz_comp_mark memcpy motion_lock_steps pr_bars pr_follow_bar pr_geom pr_head_col pr_head_step pr_heads pr_held pr_lit pr_row_y pr_src scale_mask st_micro step_ratchet str_cpy text_w trk_index
|
||||
graph_score 1032 text cv_frame cv_rect cv_text cv_text_in cv_text_r fmt_int gx_chip memcpy row_src row_var sec_col song_len_txt str_len ux_mix
|
||||
graph_signature 4898 text bg_energy bn_on comp_slot comp_view cur_page ev_row ev_rows fx_level fx_mod_of fx_on gen_draw_sig graph_project_used hm_now home_level home_set lens_on lib_scan list_get motion_count motion_enabled motion_lock_steps nav_lv pd_cur pd_on pfx_rec_ok pr_follow pr_follow_bar pr_head_step pr_held preset_favorite rec_on roll_view save_level save_on seq_roll_view seq_src sing_view steps_hash steps_sig str_hash strip_kind toast_on trk_eng trk_engp trk_index trk_slot tsel_p
|
||||
@@ -789,7 +792,7 @@ graph_sound_lz 208 text cv_rect cv_text_on graph_being_at scope_at vx_draw
|
||||
graph_system 478 text cur_page cv_rect cv_text_in cv_text_r ed_cap fmt_int page_desc param_format scope_at str_cat str_cpy str_eq str_len
|
||||
graph_tech 416 text cur_page cv_rect graph_pads heat_col page_desc tk ux_mix
|
||||
graph_y 32 text large_kind lz_on
|
||||
grg 28 text grr
|
||||
grg 28 c2 grr
|
||||
grich 810 c2 clamp dlen dstarts gch gchord_page gdrum_hit gform gfree gmot gseed gtr motion_set_lock step_set_chance
|
||||
grid_acc 140 text grid_hit grid_own step_accents_of step_lanes_of
|
||||
grid_hit 160 text grid_own step_clear step_lanes_of step_set_lmode
|
||||
@@ -886,7 +889,7 @@ kc_w 22 text
|
||||
kern 78 text glyph_at
|
||||
key_black 28 text
|
||||
key_next 328 text drum_oct_note dxo_on midi_local_held mo_key mo_kon trk_index
|
||||
key_off 272 text * drum_oct_note dxo_off input_off midi_local_held mo_koff rec_release trk_index trk_note_off
|
||||
key_off 272 text drum_oct_note dxo_off input_off midi_local_held mo_koff rec_release trk_index trk_note_off
|
||||
key_place 46 text key_black
|
||||
keys_mode 38 text ckeys_on grid_on name_on pads_on skeys_on
|
||||
keys_pg 56 text cur_page
|
||||
@@ -935,7 +938,9 @@ lfo_cap 184 text ed_cap param_format str_cat str_len
|
||||
lfo_fade_restart 30 text
|
||||
lfo_wave 176 text
|
||||
lib_scan 262 text proj_name_get project_name project_used st_head st_read st_sector
|
||||
life_block 522 text
|
||||
life_block 90 text life_evo
|
||||
life_evo 908 text memset
|
||||
life_ext 296 text clay_off mod_param trk_slot
|
||||
life_mod 690 text mod_param mod_track_desc mod_voice_add
|
||||
list_get 42 text
|
||||
list_turn 98 text list_get settings_save
|
||||
@@ -1247,11 +1252,11 @@ ott_get 56 text
|
||||
ott_lin 44 text
|
||||
ott_log2 38 text
|
||||
ott_put 80 text
|
||||
pads_block 1024 text * div_samples pd_tick seq_due seq_release step_samples
|
||||
pads_cards 108 text hot_gauge_column str_nth
|
||||
pads_frame 626 text black_held key_place pads_on pads_sig pd_play ui_say
|
||||
pads_knob 120 text
|
||||
pads_leds 116 text black_held key_place pd_state
|
||||
pads_block 916 text * div_samples pd_stop pd_tick seq_due step_samples
|
||||
pads_cards 92 text hot_gauge_column pd_val str_nth
|
||||
pads_frame 594 text black_held key_black key_place memset pads_on pads_sig pd_live pd_play ui_say
|
||||
pads_knob 104 text pd_val
|
||||
pads_leds 92 text black_held key_black key_place pd_state
|
||||
pads_on 54 text cur_page name_on
|
||||
pads_sig 98 text black_held pd_state
|
||||
page_big 92 text cv_text face_has text_w
|
||||
@@ -1286,12 +1291,15 @@ pb_loop 228 text
|
||||
pb_ring_f 76 text
|
||||
pc_shown 42 text
|
||||
pd_cur 26 text
|
||||
pd_live 24 text
|
||||
pd_of_fam 52 text
|
||||
pd_on 58 text pd_of_fam
|
||||
pd_play 60 text
|
||||
pd_play 44 text pd_live
|
||||
pd_setup 258 text
|
||||
pd_state 128 text pd_play
|
||||
pd_tick 306 text comp_run seq_lane_rat seq_ratchet seq_step shift_prepare_pass shift_step_pass step_rolls step_samples
|
||||
pd_state 112 text pd_live pd_play
|
||||
pd_stop 68 text seq_release
|
||||
pd_tick 274 text comp_run ev_at seq_lane_rat seq_ratchet seq_step shift_prepare_pass shift_step st_micro step_rolls step_samples
|
||||
pd_val 26 text
|
||||
pd_wave 292 text
|
||||
perf_avail 40 text beat_samples
|
||||
perf_begin 378 hot_text ! beat_samples div_samples perf_avail perf_unhush
|
||||
@@ -1486,10 +1494,10 @@ sc_track 336 text input_on midi_local_held mo_key mo_kon rec_note rec_on scn_not
|
||||
scale_mask 32 text
|
||||
scale_snap 52 text scale_mask
|
||||
scale_steps 112 text scale_mask scale_snap
|
||||
scene_drum_tick 272 text * div_samples trk_note_off trk_note_on
|
||||
scene_follow 144 text sc_track scene_follow_off trk_index
|
||||
scene_follow_off 82 text * input_off mo_koff
|
||||
scene_key 324 text * input_off kb_map midi_local_held mo_koff sc_track
|
||||
scene_drum_tick 272 text div_samples trk_note_off trk_note_on
|
||||
scene_follow 144 text * sc_track scene_follow_off trk_index
|
||||
scene_follow_off 82 text input_off mo_koff
|
||||
scene_key 324 text input_off kb_map midi_local_held mo_koff sc_track
|
||||
scn_notes 278 text chord_build_mode trk_index
|
||||
scope_at 238 text cv_rect scope_lod scope_seg
|
||||
scope_lod 110 text scope_seg
|
||||
@@ -1959,19 +1967,22 @@ west_render 2172 text * west_F west_exp2n
|
||||
wheel_block 590 text * drw_dust_pick drw_level trk_slot
|
||||
wheel_note_on 190 text * trk_slot
|
||||
wheel_render 954 text * drw_dust trk_slot
|
||||
wt_begin 340 text ed_bk_r32 ed_flash_stop fm1_mc_park st_erase wt_dir
|
||||
wt_boot 254 text st_crc32_add st_current wt_codes_crc wt_hdr_len wt_take
|
||||
wt_begin 338 text ed_bk_r32 ed_flash_stop irq_save st_erase wt_dir
|
||||
wt_boot 224 text st_crc32_add st_current wt_codes_crc wt_hdr_len wt_playable wt_rd32 wt_take
|
||||
wt_codes_crc 74 text st_crc32_add st_read
|
||||
wt_data 248 text ed_bk_r32 ed_flash_stop ed_unpack7 st_prog wt_live
|
||||
wt_dir 118 text st_load
|
||||
wt_end 440 text ed_flash_stop st_crc32_add wt_codes_crc wt_dir wt_hdr_len wt_live wt_save
|
||||
wt_get 244 text ed_bk_r32 st_read
|
||||
wt_hdr_len 120 text
|
||||
wt_data 234 text ed_bk_r32 ed_flash_stop ed_unpack7 memcpy st_prog wt_live
|
||||
wt_dir 108 text memset st_load
|
||||
wt_end 364 text ed_flash_stop memcpy st_crc32_add wt_codes_crc wt_dir wt_hdr_len wt_live wt_playable wt_rd32 wt_save
|
||||
wt_get 222 text ed_bk_r32 st_read wt_rd32
|
||||
wt_hdr_len 94 text wt_rd32
|
||||
wt_list_dir 22 text wt_dir
|
||||
wt_live 84 text
|
||||
wt_op 554 text ed_flash_stop wt_dir wt_save
|
||||
wt_save 64 text st_current st_save_to wt_take
|
||||
wt_take 184 text fm1_mc_park
|
||||
wt_op 454 text ed_flash_stop memcpy memset wt_dir wt_save wt_swap
|
||||
wt_playable 22 text
|
||||
wt_rd32 24 text
|
||||
wt_save 64 text st_current st_save wt_take
|
||||
wt_swap 38 text
|
||||
wt_take 182 text irq_save
|
||||
wt_used 56 text
|
||||
wv_bits 56 text
|
||||
wv_draw 326 text wv_upos
|
||||
@@ -1980,7 +1991,8 @@ wv_fpos 112 text mul64
|
||||
wv_read 110 text
|
||||
wv_ready 36 text
|
||||
wv_sig 46 text
|
||||
wv_span 374 text
|
||||
wv_span 298 text wv_span_add
|
||||
wv_span_add 40 text
|
||||
wv_upos 74 text
|
||||
wv_user 282 text wv_draw wv_span
|
||||
wv_whole 42 text
|
||||
+13
-3
@@ -50,7 +50,10 @@ SIZE_FILES = ["ui.c", "favorites.c", "menu_items.c", "icons.c", "ui_graph.c", "u
|
||||
# what the audio runs, an interrupt reaches: -Os, isr_reach)
|
||||
"clay.c", "clay_form.c",
|
||||
# (V10.8.75) MATH USER: its main-loop side (a formula checked and set; the machine an interrupt reaches: -Os)
|
||||
"math_user.c"]
|
||||
"math_user.c",
|
||||
# (V10.8.90) the files added since: GLO > PADS (its page and its keys' main-loop side), the editor's
|
||||
# wavetables, WAVE's main-loop side (what the interrupts reach keeps -Os, isr_reach)
|
||||
"ui_pads.c", "seq_pads.c", "editor_wt.c", "eng_wave.c"]
|
||||
ISR_ROOTS = ("fm1_alnk0_irq", "fm1_timer5_irq") # hal/fm1_isr.S: the audio ISR, the key / LED scan (+ USB poll)
|
||||
DEF = re.compile(r"^(?:static|void|int|uint\w*|int\w*|const)\b[^;=(]*?\b([A-Za-z_]\w*)\s*\(", re.M)
|
||||
IR_DEF = re.compile(r"^(define [^\n]*?@\"?([\w.]+)\"?\([^\n]*\)(?: unnamed_addr| local_unnamed_addr)?)( #\d+[^\n]*\{)$",
|
||||
@@ -62,7 +65,8 @@ def definitions(text):
|
||||
names = []
|
||||
text = re.sub(r"/\*.*?\*/|//[^\n]*", " ", text, flags=re.S) # comments (none hold code)
|
||||
text = re.sub(r"\b__attribute__\s*\(\((?:[^()]|\([^()]*\))*\)\)", " ", text) # (0.9.0) before the name too
|
||||
text = re.sub(r"^(?:BTAPP_FN|UH_SEG)[ \t]+", "", text, flags=re.M) # (V10.8.72) the Bluetooth segment's: a macro first
|
||||
text = re.sub(r"^(?:BTAPP_FN|UH_SEG|C2_FN|C2_IN)[ \t]+", "", text, flags=re.M) # (V10.8.72) the Bluetooth segment's: a macro
|
||||
# first; (V10.8.90) and the second code segment's (core.h C2_FN / C2_IN: main loop only, never an interrupt's)
|
||||
for m in DEF.finditer(text):
|
||||
i, depth = m.end() - 1, 0
|
||||
while i < len(text):
|
||||
@@ -216,7 +220,13 @@ def main(src, dst):
|
||||
# .. and two of a block's control: DRONE CLAY's composer, the punch-in lane's step
|
||||
"clay_tick", "pfx_block",
|
||||
# .. and a track's COMB filter, the kit's bus (a block each)
|
||||
"track_comb", "drum_bus"}
|
||||
"track_comb", "drum_bus",
|
||||
# (V10.8.90) LIFE's block (its ring, followers, memory and sources) and its routes past 80, GLOBAL
|
||||
# ENVELOPE's beside them: a block's control, none a sample loop, none in HOT_FNS
|
||||
"life_evo", "life_ext", "genv_mod",
|
||||
# .. and, past the sound's recorded code as these, WAVE's note and the POS its part can reach (its
|
||||
# parameters scanned once a block), a punch-in's 1/16 start and REPEAT's switch (once a press)
|
||||
"wave_note_on", "wv_span", "perf_q", "perf_grid"}
|
||||
names, hit = ((size_names() | cold_ui) - isr) | input_size | event_size, set()
|
||||
def mark(m):
|
||||
if m.group(2) not in names:
|
||||
|
||||
Reference in new issue
Block a user