V10.8.68: GEN from JIANT BYTE's generator; VISUAL idle off its page

Ported from JIANT BYTE 09ec6b57, 77f2b602 and 12b70fd0 (c68c3aac, 41fbf469
and 66868370 were already in FM):
- the mix: kits shorter and a third as driven, the heavy kits' DIST halved,
  CLIP lower, five genres' GMIX; MOOD DANCE's drums down, CALM's attacks,
  tails and sends longer (FM keeps its GTRIM headroom: BYTE's melodic lift
  and sends trimmed to stay under gen_peak's -1 dBFS)
- CALM: longer sections, slower RADIO, held chords
- EXPLORE: its field, voices, scales and engines widened
- the build's DJ FILTER is now a swept low-pass
- NEO CLASSIC never has drums
Kept FM's own: MINIMAL TECHNO's sub over the drums. TRIBAL and EBM basses
trimmed under the lighter kits.
Not ported: HARMONY EXTENS and the jazz progressions (no flash). The WAVE
items and the RL_N fix don't apply to FM.

VISUAL: nothing of it runs off its page. On coming back, the hits are taken
as they are and the pictures are kept whole.

Tests: GEN expectations recorded again (gen_entry MID, gen_test mix, RMS
and REGGAETON DIST). cpu_lines has three new GEN scenes: 106, 107 and 108.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
Claude committed 2026-11-27 22:08:39 +00:00
1 parent bdbc38fae7
commit 6dc63ba325
10 files changed
+1282 -1230

No files matched your search

+1 -1
View File
@@ -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.67" /* (2026-11-27) V10.8.67 (the owner: "tratemos de darle onda a las nuestras con poco. Usaría las gráficas de FX, ENVELOPE, LFO, las de HOME, ANIMAL haciendo el morph, pero deformadas, repetidas, rotas"): HOME > VISUAL and the saver draw the system's own pictures (DELAY REVERB CHORUS DIST MASTER, ENV, the LFO, ECO, a being, ANIMAL morphing) through one map: deformed (warp, twist, polar, fold), repeated (kaleidoscope, stutter, trail, tiles), broken (strips, gaps, tears, blocks), each segment swimming, still at rest; a fixed budget of points a frame, drawn less often and simpler while the sound is busy; V10.8.66 (the owner: "aplicá lo de BYTE"): MATH's LOOP with WAVE SYNC in the song's divisions (4 BAR 2 BAR 1 BAR 1/2 1/4 1/8 1/16 1/32, JIANT BYTE 68b546c9's loopq), the note's t from 0 at each window, aligned to the transport; V10.8.65 (the owner: "cuánto se puede agrandar el nombre de lo que hace la página"; "LIFE tiene PAN y no se ve que dice LIFE"): a page with no picture of its own its name large (GLOBAL, KEY SPLIT 1/2, LEVEL, PUNCH IN, the four CLAY pages), LIFE / MACROS' beings under their name, a knob turned said on the footer with its page ("LIFE FILTER 40", "LFO RATE ..."); V10.8.64 (the owner: "la página de macros en HOME con DICE"; "LIFE: PUMP por STEREO"; "todo en 100 mucho más extremo"; "LIFE en grande"): HOME > MACROS back (ECO's third page, M1..M4 the FX layer's own; HOME + SELECT DICE MACROS, one UNDO); LIFE STEREO (each track pushed across the field by its neighbours, two playing apart; was PUMP) and every LIFE depth curved past 60 (at 100 about 2.5 times); LIFE and MACROS named large; V10.8.63 V10.8.63 (the owner: "dale implementalo"; a user's report: the late-2026 units' panel washed out): MENU > DISPLAY > PANEL AUTO / A / B: A today's ST7789 set-up as it was, B the datasheet's power, VCOM and gamma registers and INVOFF after it (untested on that panel), AUTO B on flash 0xB36014; applied at once ("PANEL B"); OCT- + SAVE held at power-on: A for that start; V10.8.62 (a user: "the bpm is not the same from a note to another"): MATH WAVE SYNC (the time locked): BYTE's rhythm (the formula's slow bits) from the tempo, its pitch (the fast bits) the note's, every key the same pattern in time (120 BPM: C4's as before), chosen on WAVE, a new preset BYTE SYNC (BYTEBEAT with it; the factory presets and GEN's picks as they were); V10.8.61 (the owner: "están mucho mejor las visuales"): VISUAL from the system's own beings (the song's tracks' creatures, huge, fused and morphing through one field: WHEEL's worms' wave, a twist, breathing lobes, a melt, a fold; the scope's thread; kick, snare, hats and notes), VOICE's tract or ANIMAL's morph fused in one scene in three whatever the engines; V10.8.60 (the owner: "dale", JIANT BYTE's CPU technique: the FM-1's time a block goes by the flash's 32-byte lines the sound reads): the USB resampler's table halved (its history kept newest first too), its 7.5 KiB the RAM code's: a voice's block, the matrix, the FILTER, the split and the drums' sides in RAM; core 1's parts from the RAM copy; the expression keys' pass not run for a kit; the lines model (tests/cpu_lines_test.py, tools/audio_map.txt); V10.8.59 (the owner: "una visual por canción, muy audio reactiva, todas deformadas y fusionadas"; SCL simplified and PER1/PER2 settings no longer read for the room): VISUAL from the song (GEN seed, genre, mood, energy; else the project), hits (kick jump and thump, snare glitch, note lobes), one field bends every layer; V10.8.58 (the owner: "veamos qué se puede hacer con menos espacio"): VISUAL composed in the same room: the data a few boxes apart with their callouts, a head with crown, temples, cheekbones, jaw and neck (no egg), WHEEL's worms in some scenes on the other third, the core and the ground placed and sized by the seed, the mesh or its rows alone (topographic), the skull's spokes with square tips, PALETTE every layer (MIXED: one of three duos a scene); V10.8.57 (the owner: "podría ser mucho mejor", references "anatomía cibernética y data", "una mezcla de todo eso", the whole screen, no shape at several sizes): HOME > VISUAL the whole screen (a knob a line at the foot), a composition from a seed: a ground (an isometric mesh of the output's history with digits, stars out of a vanishing point, a rain of glyphs), WHEEL's worms, a core on a third (a radial skull diagram, a scanned head with its thermal scan lines, or a creature), the data (tracking boxes joined, live numbers); KNOB 1 DENSITY, 3 PALETTE MIXED THERMAL ORG/BLUE GRN/RED AMBER MONO; the saver another every 30 s; V10.8.56 (the owner: "visuales random en HOME", both): HOME > VISUAL, BEING's second page (ROUTES' place), a figure from a seed of the creatures' pieces (OCT+ a new one, "VISUAL #n"; KNOB 1 COMPLEX, 2 WOBBLE, 3 PALETTE, 4 REACT), moving with the sound; MENU > DISPLAY > SAVER (OFF 1 3 5 10 MIN, 3 the default): the figure the whole screen after that long withLine truncated
#define FELUCCA_VERSION "V10.8.68" /* (2026-11-27) V10.8.68 (the owner: "BYTE tiene un mejor generador de canciones"): GEN as JIANT BYTE 09ec6b57 / 77f2b602 / 12b70fd0: the mix rebalanced (MOOD in the levels, DANCE's drums under the rest, softer kit drive, five genres' GMIX), CALM longer sections, slower RADIO, longer tails and sends, held chords, EXPLORE's field, voices and scales widened, the build's DJ FILTER a swept low-pass, NEO CLASSIC without drums; VISUAL back on its page whole (its hits taken as they are, nothing of it run away); V10.8.67 (the owner: "tratemos de darle onda a las nuestras con poco. Usaría las gráficas de FX, ENVELOPE, LFO, las de HOME, ANIMAL haciendo el morph, pero deformadas, repetidas, rotas"): HOME > VISUAL and the saver draw the system's own pictures (DELAY REVERB CHORUS DIST MASTER, ENV, the LFO, ECO, a being, ANIMAL morphing) through one map: deformed (warp, twist, polar, fold), repeated (kaleidoscope, stutter, trail, tiles), broken (strips, gaps, tears, blocks), each segment swimming, still at rest; a fixed budget of points a frame, drawn less often and simpler while the sound is busy; V10.8.66 (the owner: "aplicá lo de BYTE"): MATH's LOOP with WAVE SYNC in the song's divisions (4 BAR 2 BAR 1 BAR 1/2 1/4 1/8 1/16 1/32, JIANT BYTE 68b546c9's loopq), the note's t from 0 at each window, aligned to the transport; V10.8.65 (the owner: "cuánto se puede agrandar el nombre de lo que hace la página"; "LIFE tiene PAN y no se ve que dice LIFE"): a page with no picture of its own its name large (GLOBAL, KEY SPLIT 1/2, LEVEL, PUNCH IN, the four CLAY pages), LIFE / MACROS' beings under their name, a knob turned said on the footer with its page ("LIFE FILTER 40", "LFO RATE ..."); V10.8.64 (the owner: "la página de macros en HOME con DICE"; "LIFE: PUMP por STEREO"; "todo en 100 mucho más extremo"; "LIFE en grande"): HOME > MACROS back (ECO's third page, M1..M4 the FX layer's own; HOME + SELECT DICE MACROS, one UNDO); LIFE STEREO (each track pushed across the field by its neighbours, two playing apart; was PUMP) and every LIFE depth curved past 60 (at 100 about 2.5 times); LIFE and MACROS named large; V10.8.63 V10.8.63 (the owner: "dale implementalo"; a user's report: the late-2026 units' panel washed out): MENU > DISPLAY > PANEL AUTO / A / B: A today's ST7789 set-up as it was, B the datasheet's power, VCOM and gamma registers and INVOFF after it (untested on that panel), AUTO B on flash 0xB36014; applied at once ("PANEL B"); OCT- + SAVE held at power-on: A for that start; V10.8.62 (a user: "the bpm is not the same from a note to another"): MATH WAVE SYNC (the time locked): BYTE's rhythm (the formula's slow bits) from the tempo, its pitch (the fast bits) the note's, every key the same pattern in time (120 BPM: C4's as before), chosen on WAVE, a new preset BYTE SYNC (BYTEBEAT with it; the factory presets and GEN's picks as they were); V10.8.61 (the owner: "están mucho mejor las visuales"): VISUAL from the system's own beings (the song's tracks' creatures, huge, fused and morphing through one field: WHEEL's worms' wave, a twist, breathing lobes, a melt, a fold; the scope's thread; kick, snare, hats and notes), VOICE's tract or ANIMAL's morph fused in one scene in three whatever the engines; V10.8.60 (the owner: "dale", JIANT BYTE's CPU technique: the FM-1's time a block goes by the flash's 32-byte lines the sound reads): the USB resampler's table halved (its history kept newest first too), its 7.5 KiB the RAM code's: a voice's block, the matrix, the FILTER, the split and the drums' sides in RAM; core 1's parts from the RAM copy; the expression keys' pass not run for a kit; the lines model (tests/cpu_lines_test.py, tools/audio_map.txt); V10.8.59 (the owner: "una visual por canción, muy audio reactiva, todas deformadas y fusionadas"; SCL simplified and PER1/PER2 settings no longer read for the room): VISUAL from the song (GEN seed, genre, mood, energy; else the project), hits (kick jump and thump, snare glitch, note lobes), one field bends every layer; V10.8.58 (the owner: "veamos qué se puede hacer con menos espacio"): VISUAL composed in the same room: the data a few boxes apart with their callouts, a head with crown, temples, cheekbones, jaw and neck (no egg), WHEEL's worms in some scenes on the other third, the core and the ground placed and sized by the seed, the mesh or its rows alone (topographic), the skull's spokes with square tips, PALETTE every layer (MIXED: one of three duos a scene); V10.8.57 (the owner: "podría ser mucho mejor", references "anatomía cibernética y data", "una mezcla de todo eso", the whole screen, no shape at several sizes): HOME > VISUAL the whole screen (a knob a line at the foot), a composition from a seed: a ground (an isometric mesh of the output's history with digits, stars out of a vanishing point, a rain of glyphs), WHEEL's worms, a core on a third (a radial skull diagram, a scanned head with its thermal scan lines, or a creature), the data (trLine truncated
#endif
#if FELUCCA_OTA && !FELUCCA_FLASH
#error "FELUCCA_OTA needs FELUCCA_FLASH"
+63 -22
View File
@@ -1932,9 +1932,9 @@ static __attribute__((noinline)) void gen_kit(track_t *t)
}
t->p[P_E0] = (int16_t)grr(40, 88); /* MORPH */
t->p[P_E2] = (int16_t)clamp(70 + k->tone, 0, 127);
t->p[P_E3] = (int16_t)clamp(64 + k->decy, 0, 127);
t->p[P_E3] = (int16_t)clamp(54 + k->decy, 0, 127); /* (V10.8.68, BYTE 77f2b602, the owner: "too long": 10 shorter) */
t->p[P_E4] = (int16_t)clamp(64 + k->nois, 0, 127);
t->p[P_E7] = (int16_t)clamp(k->drv * 2 / 3 + (gs.g->spec & GSP_HEAVY ? grr(24, 40) : 0), 0, 127); /* (gen2: the kit's
t->p[P_E7] = (int16_t)clamp(k->drv / 3 + (gs.g->spec & GSP_HEAVY ? grr(10, 20) : 0), 0, 127); /* (V10.8.68, BYTE's: "too much distortion": a third) */ /* (gen2: the kit's
* DRIVE two thirds; V10.6p: a heavy genre's driven harder) */
t->p[P_FTYPE] = 0;
t->p[P_FCUT] = (int16_t)grr(gs.g->human >= 40u ? 122 : 114, 127); /* (V10.6w, the owner: the drums' brightness
@@ -1966,16 +1966,15 @@ static __attribute__((noinline)) void gen_kit(track_t *t)
* snare, the clap and the hats up, longer, driven (0: untouched) */
int32_t m = grd.mood, l, c = m / 2 + (m < -25 ? (m + 25) * 5 : 0), e = c < -50 ? -50 : c; /* (V10.8.41: to -25 a light
* hand, ~6 dB and a little shorter and darker; the kit gone only near -50) */
t->p[P_E3] = (int16_t)clamp(t->p[P_E3] + (m < 0 ? e : -m / 5), 0, 127); /* (V10.8.45, the owner: "DANCE's decays too long,
t->p[P_E3] = (int16_t)clamp(t->p[P_E3] + (m < 0 ? e : -m / 4), 0, 127); /* (V10.8.45, the owner: "DANCE's decays too long,
* they cover the other layers": a little shorter, was longer) */
if (m < 0) {
t->p[P_FCUT] = (int16_t)(t->p[P_FCUT] + e);
for (l = 0; l < 8; l++)
t->p[P_LN0 + l] = (int16_t)clamp(t->p[P_LN0 + l] + (l == DV_HATC ? m : c + (l ? 0 : m / 2)), 0, 127);
} else {
t->p[P_LN0] = 127;
} else { /* (V10.8.68, BYTE 77f2b602: DANCE's kit no extra drive) */
for (l = 1; l < 5; l++) t->p[P_LN0 + l] = (int16_t)clamp(t->p[P_LN0 + l] + m / 5, 0, 127);
t->p[P_E7] = (int16_t)clamp(t->p[P_E7] + m / 2, 0, 127);
t->p[P_E7] = (int16_t)clamp(t->p[P_E7] - m / 2, 0, 127);
}
}
if (gs.g->drum == DM_JAZZ) /* (V10.8.47, the owner: "jazz's hats at 50 % or less") whatever the mood */
@@ -1995,6 +1994,30 @@ static __attribute__((noinline)) void gen_drums_m(track_t *t, uint32_t len)
* a break's: the bar's one, its kick and drive whole: gen_kit) */
for (i = 0; i < len; i += ghalf() ? 16u : grd.mood >= 40 ? 4u : 8u) gdrum_hit(t, i, DV_KICK, 118, 1);
}
#define GI_NEOCL 18u /* (gen_tables.c GENRE: NEO CLASSIC's) */
/* (V10.8.68, BYTE 09ec6b57) gen_mix's last word on a melodic part. EXPLORE: the chords and the texture swelling (a slow
* attack, a long release) most pieces; the lines' delay, the chords' and the texture's reverb up. MOOD CALM: attacks and
* releases longer (a pad's, a texture's most, an arp's least, a bass a little), the filter's envelope softer, the same
* sends wetter */
BTAPP_FN static void gmix_more(track_t *t, uint32_t r) /* (the Bluetooth segment: room) */
{
static const uint8_t CA[RL_TEX + 1][2] BTAPP_RO = {{0, 0}, {18, 51}, {92, 143}, {51, 113}, {28, 90}, {82, 141}};
int32_t m = grd.mood < 0 ? -grd.mood : 0;
int16_t *x = &t->p[r == RL_PAD || r == RL_TEX ? P_REV : P_DLY];
if (r == RL_DRUM || r > RL_TEX) return;
if (gx.on && (r == RL_PAD || r == RL_TEX) && gch(70)) {
t->p[P_ATK] = (int16_t)grr(50, 96); t->p[P_REL] = (int16_t)grr(60, 88);
if (t->p[P_SUS] < 90) t->p[P_SUS] = 90;
}
if (r >= RL_PAD) {
if (gx.on && *x < 56) *x = 56;
*x = (int16_t)clamp(*x + m / 3, 0, 127);
}
if (!m) return;
if (t->p[P_ATK] < (CA[r][0] * m >> 6)) t->p[P_ATK] = (int16_t)(CA[r][0] * m >> 6);
if (t->p[P_REL] < (CA[r][1] * m >> 6)) t->p[P_REL] = (int16_t)(CA[r][1] * m >> 6);
t->p[P_ED_FLT] = (int16_t)(t->p[P_ED_FLT] * (64 - m) >> 6);
}
/* the mix and the humanity of a role */
/* (V10.8.51, JIANT Studio's analysis: an EXPLORE piece's drums +1.5 dBFS, its mix +3.1, thousands of samples clipped) every
* part of a genre's piece down by its genre's trim (LEVEL steps, 0.5 dB), the mix's balance as it was: measured before the
@@ -2018,7 +2041,10 @@ static __attribute__((noinline)) void gen_mix(track_t *t, uint32_t r)
/* (p3, the owner: "the leads eat the drums and everything else; the drums always in front, the rest accompanies")
* the drums up, the bass under them, the chords and the arp back, the lead ~6 dB under gen3's; the genre's lift at
* half and on the bass and the chords only */
lv = ((r == RL_DRUM ? 110 + (grd.mood < -25 ? grd.mood * 2 / 3 + 12 : grd.mood / 5) : r == RL_BASS ? 114 : r == RL_LEAD ? (g->lead == LD_RIFF ? 108 : 92) : r == RL_ARP ? 96 :
lv = (grd.mood > 0 && r == RL_DRUM ? -grd.mood / 3 : 0) + /* (V10.8.68, BYTE 77f2b602: DANCE's drums down; its
* melodic parts' lift left out: FM's GTRIM headroom already, a
* BREAKBEAT's arp and pad past gen_peak's -1 dBFS with it) */
((r == RL_DRUM ? 110 + (grd.mood < -25 ? grd.mood * 2 / 3 + 12 : grd.mood / 5) : r == RL_BASS ? 110 : r == RL_LEAD ? (g->lead == LD_RIFF ? 108 : 92) : r == RL_ARP ? 96 :
r == RL_TEX ? (g->tex == SR_NOISE ? 56 : 66) : 100) +
(r == RL_BASS || r == RL_PAD ? GG_LIFT(GGR) / 2 : 0) + /* (the genre's own: GGRAM) */
(gs.gi < NGENRE ? (r == RL_TEX ? 8 : 3) * ((int8_t)(GMIX[gs.gi][r >> 1] << (r & 1u ? 0 : 4)) >> 4) : 0) +
@@ -2082,7 +2108,8 @@ static __attribute__((noinline)) void gen_mix(track_t *t, uint32_t r)
* colour: dark, as it was, or brighter, the three parts together) */
if (r == RL_DRUM && (g->spec & GSP_HEAVY)) /* (p4b, the owner: EBM's drums industrial, distorted, simple;
* V10.6p: phonk's and baile funk's too) */
t->p[P_DIST] = (int16_t)grr(40, 60);
t->p[P_DIST] = (int16_t)grr(16, 30); /* (V10.8.68, BYTE's: "too much distortion": half) */
gmix_more(t, r);
}
/* (V10.7.63, the owner: "the effects, the distortion, used far better") the genre's FX STYLE (gen_tables.c FXS_, its
@@ -2224,6 +2251,7 @@ static uint32_t gform(void)
return gp.form == 0u ? FM_LOOP : gp.form >= 2u ? (f == FM_ARC ? FM_ARC : FM_CLUB) : f == FM_LOOP ? FM_PARTS : f; /* (FROM LOOP:
* SONG's, gen_loop.c) */
}
static const int8_t GDJF[16] = {-14, -12, -10, -8, -6, -4, -2, 0, -2, -4, -6, -8, -8, -6, -4, -2}; /* (V10.8.68, BYTE's: the opening, the dip) */
/* (V10.6m) an automation record (a new one: the last), a ramp from the one before (motion.c: MOTION_RAMP) */
static void gmot(track_t *t, uint32_t step, uint32_t id, int32_t v, int ramp)
{
@@ -2371,7 +2399,9 @@ static void gen_parts(void)
if (plan && k == 2u) /* .. the master's high-pass opening over its last bar (V10.8.45, the
* owner: "the DJ FILTER's automations too long and abrupt": was
* two bars to 48 in quarter steps; a bar to 30 in eighths) */
for (i = 0; i < 16u; i++) gmot(t, 48u + i, MOT_DJF, (int32_t)((i + 1u) * (i + 1u) * 3u / 32u), 0); /* (V10.8.46: "smooth": a
if (!((gp.seed % 9u) % 3u) && grd.mood >= -10) /* (V10.8.68, BYTE 77f2b602, the owner: the DJ FILTER "kills the
* mood": a third of the pieces, never CALM; a third of those a dip) */
for (i = 0; i < 8u; i++) (void)motion_set_event(t, 48u + 2u * i, MOT_DJF, GDJF[i + (gp.seed % 9u ? 0u : 8u)]); /* (V10.8.46: "smooth": a
* sixteenth a step of 3 at most, to 24; was eighths to 30) */
}
/* (0.8.3) the section's harmony: the break and the apex on the predominant (not the modal loops: theirs keep
@@ -2505,7 +2535,11 @@ static void gen_parts(void)
if (t == GT_DROP && gch(50)) bars *= 2u; /* (a drop of 16 or 32) */
if (gls.on && t == GT_DROP) m &= gls.add; /* (FROM LOOP: the drop the loop as it is, its own parts all in) */
}
while (!gls.on && bars > 4u && bars * 10u > (uint32_t)song.g[G_BPM]) bars /= 2u; /* (.. and none over ~24 s: a slow tempo's shorter) */
while (!gls.on && bars > 4u && bars * 10u > (uint32_t)song.g[G_BPM]) bars /= 2u;
if (grd.mood < 0 && !(t == GT_BUILD && grd.mood > -25)) { /* (V10.8.68, BYTE 09ec6b57) MOOD CALM: a row down to ~41 % at -50 */
bars = ((bars * (uint32_t)(128 + grd.mood + grd.mood / 2) >> 7) + 1u) & ~1u;
if (bars < 4u) bars = 4u;
} /* (.. and none over ~24 s: a slow tempo's shorter) */
m |= gls.mute;
fill = dr < NTRK && gs.act[RL_DRUM] && nt != t && !gm && !((m >> dr) & 1u) && (((base | dense) >> s) & 1u);
if (t == GT_DROP && plan && !gls.on && dr < NTRK && gs.act[RL_DRUM] && bars > lb) { rows = grow(rows, 1, lb, m, gm, 0, 0); bars -= lb; } /* (the
@@ -2551,9 +2585,10 @@ static const gxf_t GX_FIELD[] = { /* (p3, the owner: "90 % of EXPLORE's pieces
GXF(bass[2], 0, BA_N - 1, 0), GXF(bass_lo, 29, 40, 0), GXF(kick_mode, 0, KM_INTERLOCK, 0), GXF(bass_gate, 40, 115, 0),
GXF(cbars, 1, 2, 0), GXF(pads, 0, CS_TRANCE, 0), GXF(voicing, VM_PAD, VM_SUS, 0), GXF(arp[0], 0, AP_N - 1, 0),
GXF(arp[1], 0, AP_N - 1, 0), GXF(lead, 0, LD_NONE - 1, 0), /* (never NONE: LEAD OFF is the knob's) */
GXF(amt[GP_DRUMS], 35, 70, 12), GXF(amt[GP_BASS], 35, 75, 0), GXF(amt[GP_CHORDS], 25, 70, 25),
GXF(amt[GP_ARP], 15, 60, 45), GXF(amt[GP_LEAD], 20, 55, 40), GXF(rtype, 0, 4, 0), GXF(dtime, 0, 7, 0),
GXF(wet, 10, 95, 0), GXF(dtype, 0, 3, 0), GXF(human, 0, 45, 0), /* (the form the arc's: gx_genre) */
GXF(amt[GP_DRUMS], 35, 70, 12), GXF(amt[GP_BASS], 35, 75, 0), GXF(amt[GP_CHORDS], 35, 70, 0),
GXF(amt[GP_ARP], 20, 55, 20), GXF(amt[GP_LEAD], 20, 50, 20), GXF(rtype, 0, 4, 0), GXF(dtime, 0, 7, 0),
GXF(wet, 35, 95, 0), GXF(dtype, 2, 3, 0), GXF(human, 0, 45, 0), /* (V10.8.68, BYTE 09ec6b57: the chords always, the arp and the
* lead four in five, wetter, the delay ping-pong) */ /* (the form the arc's: gx_genre) */
};
/* (V10.6n) the drums by the tempo (the study's 6.2): slow (half time, broken), the middle (four on the floor, breaks,
* electro), fast (drum & bass, the Amen, hard) */
@@ -2567,7 +2602,7 @@ static void gx_genre(ggenre_t *m)
* exotic mode, an odd timbre on one role, an extreme tempo, the drums edited, a floating harmony, one track's
* components or playhead), everything else coherent: the tempo's drums, a common mode, the recipes' engines */
uint32_t odd = 1u << (gr() % 6u), lo, k;
if (gch(45)) odd |= 1u << (gr() % 6u);
if (gch(20)) odd |= 1u << (gr() % 6u); /* (V10.8.68, BYTE's: a second oddity a piece in five) */
gx.odd = (uint8_t)odd;
lo = (uint32_t)(odd & GXO_TEMPO ? (gch(50) ? grr(60, 76) : grr(168, 180)) : grr(76, 154)); /* (76 .. 160 BPM; was
* 92 .. 134: every piece the same pulse) */
@@ -2598,7 +2633,7 @@ static void gx_genre(ggenre_t *m)
m->tex = GX_TEX[gr() % NELEM(GX_TEX)];
if (m->snd[GP_LEAD] == SR_VOXLEAD && m->tex == SR_CHOIR) m->tex = SR_DRONE; /* (one VOICE at most) */
m->hx = (uint8_t)((gr() % (HF_JAZZ + 1u)) | (gch(50) ? HX_RAISE : 0u) | (gch(60) ? HX_SEC : 0u) | (gch(60) ? HX_BOR : 0u) |
(gch(35) ? HX_LIFT : 0u) | (gch(50) ? HX_APPR : 0u));
(gch(35) ? HX_LIFT : 0u) | (gch(25) ? HX_APPR : 0u));
}
/* the progression: (V10.6n) one to three chords, each sharing a tone with the one before (a third or a fourth away;
* a step now and then: the bass moving by step), each a major or minor triad of the mode, now and then coloured (the
@@ -2648,7 +2683,7 @@ static int8_t gx_engine(uint32_t r)
{
static const uint8_t E[7] = {ENGI_ANIMAL, EG_WH, EG_LO, ENGI_ADD, EG_FM, EG_PH, EG_VO};
uint32_t e;
if (((gx.odd & GXO_TIMBRE) == 0u || r != gx.orole) && !gch(r == RL_BASS ? 30 : 60)) return -1; /* (V10.8.41: 20 / 40) */
if (((gx.odd & GXO_TIMBRE) == 0u || r != gx.orole) && !gch(r == RL_BASS ? 15 : 30)) return -1; /* (V10.8.41: 20 / 40; V10.8.68, BYTE's: fewer random engines) */
e = E[gr() % (r == RL_LEAD || r == RL_TEX ? 7u : 6u)];
return (int8_t)(e == EG_FM && gs.fm6 + gcpu_lite >= 2u ? EG_WH : e); /* (V10.7.39: once or never for the CPU,
* gcpu_fit) */
@@ -3253,7 +3288,13 @@ static __attribute__((noinline)) void gen_make(void)
uint8_t pri[5];
uint32_t np = 0;
drums = gs.amt[GP_DRUMS] && g->drum != DM_NONE && (gp.amt[GP_DRUMS] != GA_AUTO || gch(g->drum_pct));
if (grd.mood >= 25 && !drums) { /* (V10.8.40) DANCE: never without its drums (a genre with
if (GSTAB(g->pads) && grd.mood <= -25) { /* (V10.8.68, BYTE 09ec6b57) CALM, EXPLORE: the chords held or
* swelling, never stabbed */
if (g != &gmut) { gmut = *g; g = gs.g = &gmut; }
gmut.pads = (uint8_t)(CS_HOLD + (gp.seed & 1u));
}
if (gs.gi == GI_NEOCL) drums = 0; /* (V10.8.68, BYTE's: NEO CLASSIC never its drums, DANCE either) */
if (grd.mood >= 25 && !drums && gs.gi != GI_NEOCL) { /* (V10.8.40) DANCE: never without its drums (a genre with
* none: the first map's, the kick gen_drums_m's) */
if (g->drum == DM_NONE) { gmut = *g; gmut.drum = 0; g = gs.g = &gmut; }
drums = 1;
@@ -3326,7 +3367,7 @@ static __attribute__((noinline)) void gen_make(void)
* at 1/16 or (where its period still divides the cycle) 1/8 */
if (r > RL_BASS && gs.pn == 1u && !gch(GX_KEEP[r])) len >>= 1u + (len > 32u && gch(40));
t->p[P_SDIV] = (int16_t)(r > RL_BASS && len * 2u <= gs.len && gch(20) ? 1 : 2);
if (r >= RL_LEAD && gch(50)) { len = GX_LEN[gr() % NELEM(GX_LEN)]; t->p[P_SDIV] = 2; } /* (the
if (r >= RL_LEAD && gch(30)) { len = GX_LEN[gr() % NELEM(GX_LEN)]; t->p[P_SDIV] = 2; } /* (the
* lead, the arp, the texture off the bar half the time: a
* polymeter over the drums' and the bass's cycle) */
} else {
@@ -3402,10 +3443,10 @@ static __attribute__((noinline)) void gen_make(void)
* CHORUS MIX towards the vibrato: SHOEGAZE's wobble, a little on DUBSTEP) */
song.g[G_DUCK] = (int16_t)(gs.act[RL_DRUM] ? (g->spec & GSP_PUMP ? grr(60, 80) : g->kick_mode == KM_SUSTAIN || gclub() ? grr(30, 50) : g->human < 40u ? grr(32, 46) : grr(14, 30)) : 0); /* (V10.8.41, the owner: "the bass should have sidechain": a machine genre's 3.5 .. 6 dB) */ /* (V10.6n:
* hard bass pumped) */
if (grd.mood > 0 && gs.act[RL_DRUM]) song.g[G_DUCK] += grd.mood / 2; /* (V10.8.41) DANCE: the kick's pump deeper */
if (grd.mood > 0 && gs.act[RL_DRUM]) song.g[G_DUCK] = (int16_t)clamp(song.g[G_DUCK] + grd.mood / 3, 40, 60); /* (V10.8.41) DANCE: the kick's pump deeper (V10.8.68, BYTE's: 40 .. 60) */
if (g->snd[GP_BASS] == SR_WOW && gs.act[RL_BASS] && gs.trk_of[RL_BASS] < NTRK) gwobble(&trk[gs.trk_of[RL_BASS]]);
song.g[G_DREL] = (int16_t)(g->drum == DM_TECHNO || g->drum == DM_HARD || g->drum == DM_HBASS ? grr(15, 30) : grr(25, 45));
song.g[G_CLIP] = (int16_t)(gs.act[RL_DRUM] ? (g->spec & GSP_HEAVY ? grr(60, 85) : grr(35, 65)) : grr(10, 30)); /* (gen3: a
song.g[G_CLIP] = (int16_t)(gs.act[RL_DRUM] ? (g->spec & GSP_HEAVY ? grr(40, 60) : grr(25, 45)) : grr(10, 30)); /* (V10.8.68, BYTE's: lower) */ /* (gen3: a
* little more: the peaks rounded; V10.6p: a heavy genre's driven) */
song.g[G_PUNCH] = (int16_t)(gs.act[RL_DRUM] ? grr(45, 85) : 0);
if (gx.on) { /* (0.8.6) EXPLORE: the grain delay's pitch and spray, a ping-pong,
@@ -3413,7 +3454,7 @@ static __attribute__((noinline)) void gen_make(void)
song.g[G_DPIT] = (int16_t)(gch(10) ? (gch(50) ? 12 : -12) : 0); /* (V10.8: seldom, octaves only, spray
* short: a pitched delay's cascade read as discord) */
song.g[G_DSPRY] = (int16_t)(gch(15) ? grr(10, 40) : 0);
song.g[G_DPING] = (int16_t)(gr() % 2u);
song.g[G_DPING] = (int16_t)(gr() % 4u != 0u); /* (V10.8.68, BYTE's: three pieces in four) */
song.g[G_DFDBK] = (int16_t)clamp(song.g[G_DFDBK], 0, 85);
}
song.g[G_CSTER] = (int16_t)grr(20, 50); /* (the GENE mix pass) the chorus wide, the delay's right echo */
@@ -3555,7 +3596,7 @@ static __attribute__((noinline)) void gen_tick(void) /* (every UI frame) */
* (V10.8.43, BYTE's) a STOP in that bar stops: only the bar played to its end, or the song to its own END
* (chain.fin), brings the next piece (it was asked for when the bar began, and a STOP made it and played it) */
{
uint32_t a = grd.arm, lb = song.g[G_BPM] > 110 ? 15u : song.g[G_BPM] > 74 ? 7u : 3u; /* (V10.8.45: half) */
uint32_t a = grd.arm, lb = (song.g[G_BPM] > 110 ? 15u : song.g[G_BPM] > 74 ? 7u : 3u) >> (grd.mood < -10); /* (V10.8.45: half) */
grd.arm = 0;
if (grd.on && song_draft && !gen_wait && gp.form < 3u) { /* (a draft: GEN's own piece, never a saved song) */
if (song.playing && (chain.running ? chain.row + 1u >= chain.config.count && chain.remaining <= 1u : (bar_n & lb) == lb))
+11 -11
View File
@@ -972,13 +972,13 @@ static const uint8_t GC_LEN[3][3] = {{0, 48, 40}, {0, 24, 20}, {40, 28, 22}};
* up (tests/gen_test.c: the mix pass) */
#define GMX(d, b, p, l, a, t) {(uint8_t)(((d) & 15) | ((b) & 15) << 4), (uint8_t)(((p) & 15) | ((l) & 15) << 4), (uint8_t)(((a) & 15) | ((t) & 15) << 4)}
static const uint8_t GMIX[][3] = {
GMX(2, 7, -2, 0, 6, 0), /* MINIMAL TECHNO (V10.8.41: the drums 3 dB up, the line that turns over them heard) */
GMX(2, 7, -2, 0, 6, 0), /* MINIMAL TECHNO (V10.8.68: kept, not BYTE's 15 dB down: the owner's minimal its sub over the drums) (V10.8.41: the drums 3 dB up, the line that turns over them heard) */
GMX(-3, 0, 0, 0, 7, 6), /* HARD TECHNO (V10.7.2: the bass +1.5 dB, V10.6z10's basses ~1.8 under) */
GMX(-3, 7, 3, 7, 4, 6), /* HARD BASS (V10.8.36: the arp +6 dB, 22 under the drums) */
GMX(-3, 3, 3, 7, 4, 6), /* HARD BASS (V10.8.68: its bass 6 dB down) (V10.8.36: the arp +6 dB, 22 under the drums) */
GMX(-1, 2, 1, 0, 7, 0), /* HOUSE */
GMX(-2, 4, 2, 0, 7, 0), /* DEEP HOUSE (V10.7.2: the bass +1.5, z10's ~1.2 under) */
GMX(-3, 1, -1, 0, 7, 0), /* TECH HOUSE (V10.7.2: the bass +1.5, z10's ~1.6 under) */
GMX(-3, 4, 1, 0, 7, 5), /* TRIBAL */
GMX(-3, 0, 1, 0, 7, 5), /* TRIBAL (V10.8.68: the bass down, over the lighter kit by 7.6 dB; its level was at the top) */
GMX(0, -3, 0, 6, 3, -2), /* CUMBIA (the bass under the drums) (V10.8.41: the keyboard up front) (V10.8.36: the arp +4.5 dB, 21 under) */
GMX(-1, 2, -5, 7, 6, 4), /* REGGAETON (V10.8.41: the 808, the arp and the hook up) (V10.8.36: the hook +6 dB, 19 under the drums) (V10.7.8, the owner's reference: the drums up front, the 808 up, the pad, the hook
* and the arp under them, the pad under the arp) */
@@ -990,14 +990,14 @@ static const uint8_t GMIX[][3] = {
GMX(-3, 0, 0, 3, 3, 4), /* IDM AMBIENT */
GMX(4, -3, 0, 2, 5, 3), /* IDM WEIRD (V10.8.41: the drums 6 dB up) */
GMX(-3, -1, 5, 7, 7, 5), /* KRAUT */
GMX(-3, 7, 0, 7, 7, 0), /* EBM (the owner's dark techno / industrial reference: its sub's rumble up; the
GMX(-3, -3, 0, 7, 7, 0), /* EBM (V10.8.68: its sub 15 dB down, the lighter kit; its level at the top) (the owner's dark techno / industrial reference: its sub's rumble up; the
* other throws' FAT BASS as it was, at the level's top already) */
GMX(0, 0, 4, 3, 2, 3), /* NEO CLASSIC */
GMX(0, -5, -2, 4, -2, 1), /* ELECTRO METAL (V10.8.36: the arp +4.5 dB, 21 under; V10.8.48: the bass down, its peak at the limit: its level was at the top) */
GMX(0, -3, 0, 3, 0, 1), /* TECHNO ROCK */
GMX(-1, 1, -3, 2, 2, 3), /* DREAM POP (V10.8.41: the bass under the drums) (V10.8.36: the voice +4.5 dB, 23 under the drums) */
GMX(-4, 0, -2, 7, 7, 4), /* PHONK (V10.7.2: the drums -1.5, z10's DNA ~2 dB over the parts) */
GMX(-3, 2, -3, 7, 7, 4), /* BAILE FUNK (V10.8.36: the arp +4.5 dB) (V10.7.8: the 808 4.5 dB up, the chops under) */
GMX(-4, -2, -2, 7, 7, 4), /* PHONK (V10.8.68: its 808 3 dB down) (V10.7.2: the drums -1.5, z10's DNA ~2 dB over the parts) */
GMX(-3, 0, -3, 7, 7, 4), /* BAILE FUNK (V10.8.68: its 808 3 dB down) (V10.8.36: the arp +4.5 dB) (V10.7.8: the 808 4.5 dB up, the chops under) */
GMX(0, -4, 0, 1, 0, -2), /* JAZZ (V10.8.41: the bass 2 dB down; V10.8.48: its decay longer, another 3 down) */
GMX(-3, -5, -1, 7, 5, 4), /* HIP HOP */
GMX(2, 5, -3, 6, 4, 3), /* (V10.7.63) DUBSTEP (V10.8.41: its drums clean now, 6 dB up): the wobble up front (V10.8.36: the lead and the arp +6 dB) */
@@ -1131,17 +1131,17 @@ static const uint8_t GSUB_TR[] = {
/* its keys: the SCALE page's modes of seven, the exotic ones likeliest (LOC too: its tonic chord a diminished one the
* plan never takes, the other six degrees do) */
static const uint8_t GX_SCALE[9] = {SC_MAJ, SC_MIN, SC_DOR, SC_MIX, SC_HARM, SC_PHRY, SC_LYD, 10u /* LOC */, SC_MEL};
static const uint8_t GX_SCALE_W[9] = {2, 16, 10, 3, 16, 18, 8, 9, 14}; /* (V10.8.41, the owner: "EXPLORE darker": the minor modes) */
static const uint8_t GX_SCALE_W[9] = {2, 16, 12, 3, 16, 18, 8, 2, 14}; /* (V10.8.68, BYTE's: LOC seldom; V10.8.41, the owner: "EXPLORE darker": the minor modes) */
/* the lead's degrees over the mode: all seven, the pentatonics, hexatonics, a gapped one, an odd five */
static const uint8_t GX_PAL[8] = {0x7Fu, 0x5Du, 0x37u, 0x6Fu, 0x3Bu, 0x77u, 0x2Du, 0x5Bu};
/* the recipes a role may take (beyond its usual ones: a plucked bass, a bell lead, an organ texture ..) */
static const uint8_t GX_BASS[14] = {SR_SUB, SR_ACID, SR_REESE, SR_FMBASS, SR_ROCKBASS, SR_HOOK, SR_WOW, SR_EBMBASS, SR_PLUCK, SR_CHIP, SR_GTR,
SR_808, SR_UPRIGHT, SR_TECHBASS};
static const uint8_t GX_PADS[13] = {SR_PAD, SR_STRINGS, SR_PIANO, SR_ORGAN, SR_EP, SR_STAB, SR_DUBCHORD, SR_HOOVER, SR_WALL, SR_GTR, SR_KEYS, SR_BELL, SR_DRONE}; /* (V10.6n:
static const uint8_t GX_PADS[13] = {SR_PAD, SR_STRINGS, SR_PIANO, SR_ORGAN, SR_EP, SR_PAD, SR_DUBCHORD, SR_STRINGS, SR_WALL, SR_DRONE, SR_KEYS, SR_BELL, SR_DRONE}; /* (V10.8.68, BYTE's: more pads, STAB HOOVER out; V10.6n:
* no VOICE on the chords) */
static const uint8_t GX_ARPS[8] = {SR_PLUCK, SR_BELL, SR_CHIP, SR_KEYS, SR_SINEKEY, SR_EP, SR_GTR, SR_STAB};
static const uint8_t GX_LEADS[8] = {SR_LEAD, SR_VOXLEAD, SR_CHIP, SR_HOOVER, SR_BELL, SR_PLUCK, SR_WOW, SR_ORGAN};
static const uint8_t GX_TEX[8] = {SR_NOISE, SR_TEXTURE, SR_DRONE, SR_CHOIR, SR_PAD, SR_ORGAN, SR_BELL, SR_STRINGS};
static const uint8_t GX_LEADS[8] = {SR_LEAD, SR_VOXLEAD, SR_LEAD, SR_EP, SR_BELL, SR_PLUCK, SR_WOW, SR_ORGAN}; /* (V10.8.68, BYTE's) */
static const uint8_t GX_TEX[8] = {SR_DRONE, SR_TEXTURE, SR_DRONE, SR_CHOIR, SR_PAD, SR_ORGAN, SR_BELL, SR_STRINGS}; /* (V10.8.68, BYTE's) */
/* how often a role keeps the cycle (V10.6n: else half of it or a quarter, over one chord: gen.c gen_make) */
static const uint8_t GX_KEEP[RL_N] = {60, 70, 80, 45, 45, 50};
/* (the fix of V10.6n's: every loop on the bar) the lead's, the arp's, the texture's loop off the bar half the time:
@@ -1150,7 +1150,7 @@ static const uint8_t GX_LEN[10] = {12, 20, 24, 28, 36, 40, 44, 52, 56, 60};
/* the step components it scatters (gen.c gx_comps): their weights on a melodic track */
static const uint8_t GX_COMP[10] = {CP_RAND, CP_OCT, CP_BEND, CP_ECHO, CP_PULSE, CP_WALK, CP_CLIMB, CP_ARPQ, CP_ARPN,
CP_TONAL};
static const uint8_t GX_COMP_W[10] = {6, 14, 8, 14, 8, 6, 4, 10, 8, 8}; /* (V10.6l, the owner: no JUMP, no REV: steps
static const uint8_t GX_COMP_W[10] = {2, 12, 3, 16, 6, 4, 4, 18, 16, 8}; /* (V10.8.68, BYTE's: RAND BEND seldom, arpeggios and echoes first) */ /* (V10.6l, the owner: no JUMP, no REV: steps
* thrown about are not music, V10.6v: gone; less RAND and WALK) */
/* a DRUM-X sound's own way on a step (LM_X2 .. LM_FLAM) */
static const uint8_t GX_LM_W[LM_N] = {0, 30, 14, 4, 20, 22, 10};
+4 -2
View File
@@ -393,17 +393,19 @@ static VX_SEG void vis_mp(int32_t *p, uint16_t *c)
/* (once a frame) the level, the hits, the time, the next picture */
static void vis_tick(void)
{
uint32_t k;
uint32_t k, cold = anim_fr - vq.fr > 8u; /* (V10.8.68) back on the page (VISUAL or the saver): nothing of it ran
* while away; its hits taken as they are, the pictures kept, whole */
if (vq.fr == anim_fr)
return;
vq.lv = bg_energy() * vis_v[3] >> 7;
vq.fr = anim_fr;
if (cold) { vq.ms = fm1_ms | 1u; vq.fi = 100; }
vq.t += 2u + (uint32_t)vq.lv / 24u;
for (k = 0; k < NTRK; k++) { /* the hits: a track's new note (the sequencer, the keys, MIDI) */
const track_t *tr = &trk[k];
uint32_t n = tr->seq_n ? tr->seq_notes[0] : tr->nheld ? tr->held[0] : 0u, r;
uint16_t g = (uint16_t)(tr->seq_idx * 16u + tr->nheld + tr->rat_left);
if (n && g != vq.sg[k]) {
if (n && g != vq.sg[k] && !cold) {
r = tr->engine != ENGI_DRUM ? 3u : n < 37u ? 0u : n < 41u ? 1u : 2u; /* (GM's keys) a kick, a snare, hats; a note */
vq.e[r] = 255 * vis_v[3] / 60;
if (r < 2u) vq.bs = vr(); /* (a kick, a snare: the breaks elsewhere) */
+5 -4
View File
@@ -5,7 +5,7 @@
* than its instructions. Run under valgrind's lackey: each block of the scene between two stores to cl_mark, core 1's
* work (mc_job) between two to cl_c1, each part (fx.c mix_part_t) between two to cl_part[k].
* cpu_lines_test SCENE NBLK (SCENE hex: 101 GEN EXPLORE s123 ENERGY 85 with CLOUD, the delay and the chorus;
* 102 .. 105 other GEN songs; 0c SAVE > TOOLS 6 CPU TEST's song (TRACKS 4))
* 102 .. 108 other GEN songs; 0c SAVE > TOOLS 6 CPU TEST's song (TRACKS 4))
* CL_COST="c0,..,c5,fx" (us): each part's cost as the FM-1 measures it (mc_tk, mc_fx_tk), for the device's split */
#include <stdint.h>
#define UI_TEST_NO_MAIN 1
@@ -49,9 +49,10 @@ static uint32_t scene(uint32_t mask, uint32_t nblk)
blk = 0;
ui_power_on(); go_home(); frames(4);
if (mask >= 0x100u) { /* GEN songs, TRACKS 6 */
static const struct { uint8_t g; uint16_t s; uint8_t e; int8_t m; } GS[6] = {
{0, 123, 85, 0}, {0, 123, 85, 0}, {0, 7, 90, 50}, {7, 42, 85, 0}, {12, 2024, 85, 50}, {0, 999, 100, 0}};
uint32_t k, gi = (mask & 0xFFu) < 6u ? mask & 0xFFu : 0u;
static const struct { uint8_t g; uint16_t s; uint8_t e; int8_t m; } GS[9] = {
{0, 123, 85, 0}, {0, 123, 85, 0}, {0, 7, 90, 50}, {7, 42, 85, 0}, {12, 2024, 85, 50}, {0, 999, 100, 0},
{0, 321, 80, -50}, {3, 77, 95, 60}, {19, 5, 60, -40}}; /* (V10.8.68) 106 EXPLORE CALM, 107 DANCE, 108 NEO CLASSIC CALM */
uint32_t k, gi = (mask & 0xFFu) < 9u ? mask & 0xFFu : 0u;
ui_rec_prefs |= PREF_SIX >> 8; rp_apply();
gp.genre = GS[gi].g ? GS[gi].g : GEN_EXPLORE; gp.seed = GS[gi].s; gp.energy = GS[gi].e; gp.form = 1;
grd.mood = GS[gi].m;
+2 -1
View File
@@ -25,7 +25,8 @@ ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
RAMDATA = {"SINE_Q", "DIV_DEN"}
HOSTMAP = {"mix_part": "mix_part_m0", "mix_part_m": "mix_part_m", "fx_run": "fx_run0"}
NAMES = {"101": "GEN EXPLORE s123 + CLOUD, delay, chorus", "102": "GEN EXPLORE s7 DANCE", "103": "GEN genre 7 s42",
"104": "GEN genre 12 s2024 DANCE", "105": "GEN EXPLORE s999", "0c": "CPU TEST's song, TRACKS 4"}
"104": "GEN genre 12 s2024 DANCE", "105": "GEN EXPLORE s999", "106": "GEN EXPLORE s321 CALM", "107": "GEN genre 3 s77 DANCE",
"108": "GEN NEO CLASSIC s5 CALM", "0c": "CPU TEST's song, TRACKS 4"}
def sh(*a, **k):
+6 -3
View File
@@ -31,7 +31,7 @@ int main(void)
ui_power_on();
{ /* (V10.8.40) MOOD MID: the pieces V10.8.39's, byte for byte (from power-on: the tracks' values and steps, the
* song's, the kit; a checksum of 8 seeds in EXPLORE, RANDOM and HOUSE; V10.8.39's own, the same tool) */
static const uint32_t MID[3] = {0xee6fe401u, 0x8fd7e736u, 0x5a231927u}; /* (V10.8.51: a genre's headroom, GTRIM; V10.8.48: the envelopes by role, the filter types; V10.8.47: JAZZ's hats; V10.8.46 recorded again: a part never still; V10.8.45: the envelopes' rules; V10.8.42 too; V10.8.41: the generator rewritten genre by genre:
static const uint32_t MID[3] = {0xc0d93e12u, 0xcbe5be06u, 0x3c5eb14fu}; /* (V10.8.68 recorded again: JIANT BYTE 09ec6b57 / 77f2b602's generator, the kits shorter and less driven, EXPLORE's field and voices; V10.8.51: a genre's headroom, GTRIM; V10.8.48: the envelopes by role, the filter types; V10.8.47: JAZZ's hats; V10.8.46 recorded again: a part never still; V10.8.45: the envelopes' rules; V10.8.42 too; V10.8.41: the generator rewritten genre by genre:
* this version's own pieces, recorded with GEN_MID=1; a change to the generator records them again) */
uint32_t md, hs = 0, r, i;
for (r = 1; r <= NGENRE; r++) if (str_eq(GENRE[r - 1u].name, "HOUSE")) hs = r;
@@ -235,7 +235,10 @@ int main(void)
grd.mood = 50; gen_make(); t = &trk[gs.trk_of[RL_DRUM]];
len = (uint32_t)clamp(t->p[P_SLEN], 1, NSTEP);
for (i = 0, k1 = 0; i < len; i += 4u) { kb += t->step[i].time == ST_NOTE && (t->step[i].hit & 1u); if (!(i & 15u)) k1 += t->step[i].time == ST_NOTE && (t->step[i].hit & 1u); }
okd &= gs.act[RL_DRUM] && (ghalf() ? k1 == (len + 15u) / 16u : kb == (len + 3u) / 4u) && t->p[P_LN0] == 127 && (md == 1u || t->p[P_LEVEL] > lv0);
okd &= gs.act[RL_DRUM] && (ghalf() ? k1 == (len + 15u) / 16u : kb == (len + 3u) / 4u) && t->p[P_LN0] > 0; /* (V10.8.68, BYTE 77f2b602:
* DANCE's drums under the rest: no longer its kick at 127, the drum
* track over MID's) */
(void)lv0;
grd.mood = 25; gen_make(); t = &trk[gs.trk_of[RL_DRUM]];
len = (uint32_t)clamp(t->p[P_SLEN], 1, NSTEP);
for (i = 0, k1 = 0; i < len; i += 8u) { k2 += t->step[i].time == ST_NOTE && (t->step[i].hit & 1u); if (!(i & 15u)) k1 += t->step[i].time == ST_NOTE && (t->step[i].hit & 1u); }
@@ -247,7 +250,7 @@ int main(void)
bad += check("MOOD CALM -25: the kick, the snare, the kit's decay and filter under MID's, still there", okq);
bad += check("MOOD CALM -50: every piece's kit silent but a low, short, dark closed hat (EXPLORE, RANDOM, HOUSE)", okc);
bad += check("MOOD DANCE +25: every piece its drums, the kick on the bar's first and third beats (a half-time's, a break's: its one)", okh);
bad += check("MOOD DANCE +50: a kick on every beat (a half-time's, a break's: the bar's one), its level whole, the drums over MID's", okd);
bad += check("MOOD DANCE +50: a kick on every beat (a half-time's, a break's: the bar's one), heard", okd);
}
}
printf(bad ? "gen-entry: %d FAILED\n" : "gen-entry: all ok\n", bad);
+6 -3
View File
@@ -1323,7 +1323,8 @@ int main(void)
printf("gen: the drums' share at most %.1f %% (%s); the mix %.1f dBFS RMS on average, the leveler's gain off its range %u times\n",
100 * worst, wn, rms_db / n, lev_bad);
bad += gcheck("(0.9.9-gen3) every genre x 2: the drums in front, 97 % of the parts' energy at most (p3), the leveler in its range, the mix loud",
!over && !lev_bad && rms_db / n >= -21.0); /* (V10.8.51: a genre's headroom, GTRIM: no piece over
!over && !lev_bad && rms_db / n >= -22.5); /* (V10.8.68, BYTE 77f2b602: the kits shorter and a third as
* driven: -22.0 measured, -22.5 asked, was -21.0) */ /* (V10.8.51: a genre's headroom, GTRIM: no piece over
* -1 dBFS before the master, the limiter no longer squashing it: the
* mix -20.5 measured, -21.0 asked, was -16.0 asked) */ /* (V10.8.41, the owner: the basses under the drums in ten
* genres, jazz's cymbals down: -15.6 on average, was -15.5 asked;
@@ -1404,7 +1405,8 @@ int main(void)
printf("gen: the mix pass: %u electronic pieces, the bass over 10 dB under the drums %u, a melodic part over 25 dB under %u, a part 3 dB over the drums %u, lists moved %u, MINIMAL's sub under 6 dB over %u\n",
n, bass_bad, mel_bad, front_bad, list_bad, sub_bad);
bad += gcheck("(the GENE mix pass) the electronic genres x 3: the bass and the melodic parts heard, the drums in front (MINIMAL's sub over them), the presets' lists kept",
n >= 30u && bass_bad <= 2u && mel_bad <= 2u && front_bad <= 4u && !list_bad && !sub_bad); /* (V10.7.56: 3, was 2: no voice taken from a pad any more, IDM GLITCH's +3.3 dB;
n >= 30u && bass_bad <= 2u && mel_bad <= 2u && front_bad <= 8u && !list_bad && !sub_bad); /* (V10.8.68, BYTE 77f2b602's lighter kits: 8 parts 3 dB
* over them, was 4: 4 asked, now 8) */ /* (V10.7.56: 3, was 2: no voice taken from a pad any more, IDM GLITCH's +3.3 dB;
* V10.8.48: the envelopes by role, a bass's sustain 68 % at most: two
* basses ~11 dB under (WEST's, DEEP HOUSE's), EBM's sequenced bass over:
* 2 and 4, were 1 and 3) */
@@ -1648,7 +1650,8 @@ int main(void)
}
}
} else if (gi == 1u) {
heavy += !rom && d->p[P_DIST] >= 40 && b->p[P_DIST] >= 30;
heavy += !rom && d->p[P_DIST] >= 16 && b->p[P_DIST] >= 30; /* (V10.8.68, BYTE's "too much distortion": the
* heavy kits' DIST 16 .. 30, was 40 .. 60) */
if (gs.act[RL_ARP]) {
const track_t *ar = &trk[gs.trk_of[RL_ARP]];
for (p = 0; p < (uint32_t)ar->p[P_SLEN] && ar->step[p].time != ST_NOTE; p++) {}
+1177 -1177
View File
File diff suppressed because it is too large. Load diff
+7 -6
View File
@@ -483,7 +483,7 @@ fm1_irq_off 4 text
fm1_irq_on 6 text
fm1_lcd_wait 48 text
fm1_led_dim_level 40 text
fm1_main 9442 text ! autosave_poll autosave_sig bg_energy boot_splash bt_get bt_hw_seg bt_prox_tick bt_set bt_start chain_defaults chain_valid cpu_clock cpu_lost cv_begin cv_blit cv_text dbg_boot dlg_on draw_confirm draw_text_box ed_service fav_rows_new favorite_set fl_far fm1__sr_bits fm1_adc_read fm1_delay_ms fm1_enter_uboot fm1_guard_enable fm1_guard_lock_top fm1_led_dim_level fm1_mc_hold fm1_wdt_feed fm6_init fvb_boot fxg_chorus fxg_delay fxg_dist fxg_master fxg_reverb graph_adsr graph_eco graph_lfo home_param home_vis irq_save jam_load lcd_init lcd_panel_apply lcd_panel_is_b lcd_power lcd_sync ly_word macro_dice master_lvl master_poll memcpy memset mx_defaults name_on og_cos og_sin ota_crc16 ota_erase ota_fread ota_jl_enc ota_memeq ota_prog ota_rd16 ota_rd32 ota_read ota_reply_identity ota_show ota_take ota_unstage ota_wr16 ota_wr32 palette_to_stored panel_init panel_setup param_format power_sound_of proj_bound proj_fetch proj_import project_restore_runtime scr_fill scr_get scr_holes scr_wake scr_wake_now seg_missing seq_counting settings_import settings_init settings_poll settings_save song_index_load song_mode_restore song_poll splash_at split_cut split_track st_load steps_sig str_cpy str_len sy_entry track_defaults track_defaults_steps uh_task ui_draw_body ui_input ui_leds ui_message up_bank_check up_used upf_empty upf_valid usb_detach usb_serial_apply usb_start vc_io vis_new vis_pick vr vx_animal vx_draw
fm1_main 9474 text ! autosave_poll autosave_sig bg_energy boot_splash bt_get bt_hw_seg bt_prox_tick bt_set bt_start chain_defaults chain_valid cpu_clock cpu_lost cv_begin cv_blit cv_text dbg_boot dlg_on draw_confirm draw_text_box ed_service fav_rows_new favorite_set fl_far fm1__sr_bits fm1_adc_read fm1_delay_ms fm1_enter_uboot fm1_guard_enable fm1_guard_lock_top fm1_led_dim_level fm1_mc_hold fm1_wdt_feed fm6_init fvb_boot fxg_chorus fxg_delay fxg_dist fxg_master fxg_reverb graph_adsr graph_eco graph_lfo home_param home_vis irq_save jam_load lcd_init lcd_panel_apply lcd_panel_is_b lcd_power lcd_sync ly_word macro_dice master_lvl master_poll memcpy memset mx_defaults name_on og_cos og_sin ota_crc16 ota_erase ota_fread ota_jl_enc ota_memeq ota_prog ota_rd16 ota_rd32 ota_read ota_reply_identity ota_show ota_take ota_unstage ota_wr16 ota_wr32 palette_to_stored panel_init panel_setup param_format power_sound_of proj_bound proj_fetch proj_import project_restore_runtime scr_fill scr_get scr_holes scr_wake scr_wake_now seg_missing seq_counting settings_import settings_init settings_poll settings_save song_index_load song_mode_restore song_poll splash_at split_cut split_track st_load steps_sig str_cpy str_len sy_entry track_defaults track_defaults_steps uh_task ui_draw_body ui_input ui_leds ui_message up_bank_check up_used upf_empty upf_valid usb_detach usb_serial_apply usb_start vc_io vis_new vis_pick vr vx_animal vx_draw
fm1_mc_hold 120 text
fm1_mc_park 96 text fm1_mc_hold
fm1_p33_read 68 text fm1__p33_xfer
@@ -641,11 +641,11 @@ gen_drums_m 112 text gdrum_hit gen_drums
gen_evolve 158 text
gen_fxs 210 bt clamp gfxs_own grr
gen_genre_next 44 text
gen_kit 1826 text gch gclub gkit_math glatin grr memcpy memset
gen_kit 1824 text gch gclub gkit_math glatin grr memcpy memset
gen_knob_bt 344 bt accel clamp gen_amt_turn gen_genre_next
gen_lead 4422 bt euclid gch gchord gen_riff gl_add gl_cad gl_ct gl_near gl_pal gl_write gnd gpickw gr grr gseed
gen_make 8134 text chain_defaults dhold dlen dlevel gch gclear_all gclub gdna gdrum_clear_region gdrum_hit gen_drums_m gen_evolve gen_fxs gen_kit gen_mix gen_pick gen_post gen_role gen_scale_page gen_sound gform gkick_of glane_rat glatin gls_hash gls_prep gmot gmut_take gmute gnd gnote gplan gr grow grr gseed gtile gtriad_ok gwobble gx_engine gx_genre gx_prog gx_sound load_begin load_end macro_dice memcmp memcpy memset motion_clear motion_set_event pfx_lane_put rng section_load section_store set_engine_of steps_sig system_init
gen_mix 1236 text gclub grr
gen_make 8368 text chain_defaults dhold dlen dlevel gch gclear_all gclub gdna gdrum_clear_region gdrum_hit gen_drums_m gen_evolve gen_fxs gen_kit gen_mix gen_pick gen_post gen_role gen_scale_page gen_sound gform gkick_of glane_rat glatin gls_hash gls_prep gmot gmut_take gmute gnd gnote gplan gr grow grr gseed gtile gtriad_ok gwobble gx_engine gx_genre gx_prog gx_sound load_begin load_end macro_dice memcmp memcpy memset motion_clear motion_set_event pfx_lane_put rng section_load section_store set_engine_of steps_sig system_init
gen_mix 1316 text gclub gmix_more grr
gen_new_seed 246 text rng
gen_on 20 text
gen_pads 1710 bt clamp dhold gch gchord gchord_at gchord_root_pc gci gclub gnote gr grr gseed gvo_mode
@@ -662,7 +662,7 @@ gen_scale_page 380 text
gen_sig 124 text
gen_sound 2364 text apply_preset_to gch gnear gnever gpickw gr grg grr semi_pick set_engine_of track_desc trk_engp
gen_texture 174 text dhold gch gchord gnote gseed gtone
gen_tick 358 text gen_new_seed gen_press gst_put
gen_tick 376 text gen_new_seed gen_press gst_put
gen_value 480 text
gform 52 text
gfxs_own 96 text grr
@@ -704,6 +704,7 @@ glyph 68 text glyph_at
glyph_at 58 text
gm_level 66 text gz_get
gminor 20 text
gmix_more 216 bt clamp gch grr
gmot 50 text motion_set_event
gmut_take 38 text
gmute 26 text
@@ -1393,7 +1394,7 @@ 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 156 text * sc_track scene_follow_off
scene_follow 156 text sc_track scene_follow_off
scene_follow_off 82 text input_off mo_koff
scene_key 322 text input_off kb_map midi_local_held mo_koff sc_track
scn_notes 280 text chord_build_mode