Files
JIANT/tests/gen_evo.c
T
Claude f973de3203 V10.8.46: GEN: a part never still, the rows an arc, the envelopes by role, the build's high-pass smooth, phonk the drift one; ABOUT's LAST CRASH back (the owner)
(the owner: "every part its timbre, and modulations, parameters that evolve, a story in the sound: it is not only
placing notes"; "the envelopes"; "the DJ FILTER's automations abrupt"; "yes" to phonk without the Brazilian one;
only ABOUT's CPU lines were to go)
- gen.c gen_evolve (after the mix, every form, a LOOP too): a melodic part's LFO, where no vibrato has it, slow and
  free of the notes (LPHASE FREE: it restarted at each phrase, so a slow one never moved a short note's part), 5 ..
  20 s, a part its own period and no bar's, on the filter where nothing moved it and on the shape with it (the bass:
  its filter alone, its weight kept); the part across the stereo over four bars or two (the bass in the middle); a
  lead's and an arp's note its envelope on the shape. tests/gen_evo.c (a study): movers a melodic part 0.7 -> 2.6,
  parts with none 20 .. 70 % -> 0
- the rows' macros an arc (a row a step of a dozen from the one before; were leaps of up to 70): M1 opens, closes
  and ends a little open, the others their own turns
- the envelopes (gen_tables.c ENV_RULE): a lead soft in (8..31, was 0..23), an arp shorter (DEC 32..71, SUS 0..31;
  were 32..79, 0..39), a held chord slower in and longer out (48, 88; were 32, 80), a bass firm in (0..7) with a middle
  release (16..47); a wet genre's chords (wet >= 70) held too; a chord's filter opened by its envelope (6) where it
  had none
- the build's high-pass: its last bar in sixteenths, a step of 3 at most, to 24 (was eighths to 30)
- PHONK: the drift map every throw (the Brazilian one in four gone)
- MENU > ABOUT: LAST CRASH (kept across power-off) back under the audio's load; the crash since power-on's hex lines
  not (the room)
- tests: gen_entry_test's MID reference recorded again (GEN_MID=1). The pinned layout as recorded.
Image 583984 B of 584336 (352 B free), RAM 96832, RAM code 32688 of 34816, pool spare 8480 B, BT segment 73556 of
73728. audio.c as V23's.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-11-25 17:01:13 +00:00

39 lines
2.1 KiB
C

// Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant). All rights reserved.
/* (V10.8.46, the owner: "every part its timbre and modulations, parameters that evolve; the envelopes") a study's tool
* (host): a genre a line, LOOP form, 6 seeds: the movers a melodic part (its LFO's destinations with an amount, its AUTO
* PAN, its envelope on the filter or the shape), the parts with none, then the envelopes a role (ATK DEC SUS REL, the
* envelope's share of the filter).
* cc -O1 -w -Ibuild/gen -Ifirmware/src tests/gen_evo.c -lm -o build/host/gen_evo */
#define UI_TEST_NO_MAIN 1
#include "ui_test.c"
int main(void)
{
uint32_t g, r, k;
ui_power_on();
printf("%-15s %4s %4s | %-15s %-15s %-15s %-15s\n", "genre", "mov", "none", "BASS a/d/s/r>f", "PAD", "LEAD", "ARP");
for (g = 0; g <= NGENRE; g++) {
double mv = 0, env[6][5] = {{0}}; uint32_t n = 0, none = 0, en[6] = {0};
for (r = 0; r < 6u; r++) {
gp.genre = (uint8_t)(g == NGENRE ? GEN_EXPLORE : g + 1u);
gp.form = 0; gp.seed = (uint16_t)(300u + r * 91u);
grd.on = 0; grd.mood = 0;
gen_make();
for (k = 0; k < NTRK; k++) {
const track_t *t = &trk[k];
uint32_t role = gs.role[k], m;
if (k >= trk_live || role > 5u || role == RL_DRUM || !gs.act[role]) continue;
m = (t->p[P_LD_FLT] != 0) + (t->p[P_LD_SHP] != 0) + (t->p[P_LD_AMP] != 0) + (t->p[P_LD_PIT] != 0) + (t->p[P_APDEP] != 0);
mv += m; n++; none += !m;
env[role][0] += t->p[P_ATK]; env[role][1] += t->p[P_DEC]; env[role][2] += t->p[P_SUS]; env[role][3] += t->p[P_REL];
env[role][4] += t->p[P_ED_FLT]; en[role]++;
}
}
printf("%-15s %4.1f %3.0f%% |", g == NGENRE ? "EXPLORE" : GENRE[g].name, n ? mv / n : 0, n ? 100.0 * none / n : 0);
for (r = 1; r < 5u; r++)
if (en[r]) printf(" %2.0f/%2.0f/%3.0f/%3.0f>%2.0f", env[r][0] / en[r], env[r][1] / en[r], env[r][2] / en[r], env[r][3] / en[r], env[r][4] / en[r]);
else printf(" %-15s", "-");
printf("\n");
}
return 0;
}