mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-05 12:24:42 +01:00
V10.26: SCENE starts all KEEP; OCT+ dices the roles, never two tracks alike
Each role (CHORD ARP BASS LEAD) one track at most, so two tracks never play the same thing nor two chords at once (the polyphony). OCT- sets all KEEP; ON with no role set dices; a role picked by hand takes it from the track that had it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
7 files changed
+1944
-1894
No files matched your search
@@ -41,7 +41,7 @@
|
||||
#define FELUCCA_ID "FM-1_900" /* package identity (build.py: the .fwsc marker string) */
|
||||
#endif
|
||||
#ifndef FELUCCA_VERSION
|
||||
#define FELUCCA_VERSION "V10.25" /* (2026-11-02) V10.25: SEQ > STRETCH's NUDGE in two modes: OCT- the whole sequence a step (blue, as before), OCT+ the cursor step's MICRO timing (red, 64ths of a step; PRESETS moves the cursor), MICRO back on a knob (a tester's ask). (2026-11-02) V10.24: the user's picks from the redesign mock: SEQ > EUCLID the lanes as concentric rings (heat colours, VARY's turns under the ring); SEQ > MUTATE the anchor above, the pattern playing below (changed steps lit), an arc to the next mutation; SAVE > PRESETS two columns (the engines, their presets), OCT+ keeps the sound browsed to, OCT- brings back the one before; SAVE > TOOLS by scope (KNOB 1 TRACK SOUND SONG SYSTEM, KNOB 2 the action), OCT+ held a second does it (no dialog); SCL > SCENE, the multitimbral mode: one key plays every track given a role (KEEP CHORD ARP BASS LEAD; the kit keeps its sequence), REC records each into its own steps. (2026-11-01) V10.23: STRING FDBK heard (its BLOOM level was applied twice, -15 dB); EXCITE into / out of FDBK keeps each side's EDIT 2 knobs (GAIN no longer starts at STRETCH's 0), FDBK's defaults audible. (2026-11-01) V10.22: testers' asks: ENV > ENV 2 (a second ADSR, MOD SRC ENV2, any DEST), FILTER TYPE LP24 (4 poles), ANALOG WAVE PLS3 (three pulses, SHAPE the width). (2026-11-01) V10.21: EUCLID's lane rows named right (they were one off: ALL's name on BD's row); the ring shows one cycle (the lane's, ALL's, the melody's) and the turn playing, its playhead going round; PROX's page says the phone, not the hand. (2026-11-01) V10.20: PROX smooth: the RSSI reading fixed on word 0 as the level (V10.18's widest range picked a noisy byte: a random sample and hold), the median of nine and ~0.3 s; FAR and NEAR too close (under 4 levels) refused. (2026-10-31) V10.19: the PROX page redraws when a reading arrives (all-zero words left it on NOT CONNECTED) and shows the link as seen: L (link), the RSSI hook's packets / the good packets. (2026-10-31) V10.18: PROX finds the RSSI reading that moves (the four RSSI words of each packet, twelve readings, the widest range on the link; kept once FAR / NEAR is stored), the page shows the four words. (2026-10-31) V10.17: SAVE > SECTIONS KNOB 2 ERASE (the section empty again, RAM and flash; the music stays). (2026-10-31) V10.16: SEQ > EUCLID's VARY in four turns (A A' A'' B, each moved anew, the motif answered); SEQ > MUTATE (EVERY 1..16 bars, AMOUNT, MODE ORBIT / DRIFT / PULSE, WHAT GROOVE / RHYTHM / FEEL / ALL; OCT+ a mutation now, OCT- back to the anchor). (2026-10-31) V10.15: VOICE's English dictionary in the Bluetooth segment (without it: the letter rules). (2026-10-31) V10.14: PROX, a modulation source from the Bluetooth signal (a hand near the antenna), calibrated on MENU > SYSTEM > BLUETOOTH ON + OCT+ (OCT- FAR, OCT+ NEAR). (2026-10-31) V10.13: BLE-MIDI in and out (what a central sends plays as USB-MIDI, MIDI OUT goes to it too); ABOUT's credits in the Bluetooth segment (the app slot had 128 B free). (2026-10-31) V10.12: MENU > SYSTEM > BLUETOOTH OFF / ON: a BLE-MIDI peripheral "JIANT FM-1" (advertising, connectable; MIDI not routed yet), Optimist's stack in the Bluetooth segment at 0xEA000 (written by the update loader from the package's bt.bin), live RF calibration, a boot guard. (2026-10-31) V10.11: the supplies set up as stock V15 does (the DC-DC on, hal/fm1_power.h from Melodee), the radio's prerequisite; 0xEA000..0xFBFFF reserved for the Bluetooth segment. (2026-10-31) V10.10: the radio's calibration kept: the update loader keeps the stock VM sector (0xE8000: RF trims, BT address) but its record's 256 B; VM_READ (editor 80) reads that area for web/btcheck. (2026-10-31) V10.9: MENU > LARGE shows the animations (HOME: the six tracks' creatures in the strip; EDIT: the engine's). (2026-10-31) V10.8: testers' fixes: GEN parts set OFF stay off; GEN keeps its GENRE between visits; SEQ > STEP KNOB 4 VEL (1..127, then ACC SLD A+S); delay 1/4D 1/8D 1/16D; less pitch wobble from the generators (no macro on PITCH, pitched delay seldom, octaves); STOP TO EDIT says SONG PLAYS. (2026-10-31) V10.7: SEQ > EUCLID on a kit: LANE ALL first (DENSITY: a whole usable kit), a lane picked writes that lane alone; EDIT + PRESETS jumps between engines; the kit's SEQ dice plays in every genre; EUCLID's HITS exact (VARY moved them only); REC held alone and let go: UNDO (again: REDO). (2026-10-31) V10.6: SEQ > EUCLID and MODES (a euclidean pattern generator, melodies in the key) in MUTATE's place; MUTATE and SEQ TOOLS' RANDOM COOK BEAT gone. (2026-10-31) V10.5: automation thinned (a recording at the stop, the 64 when full) into holds and RAMPs. (2026-10-31) V10.4: ARRANGE / TIMELINE: OCT- deletes the row picked (DELETE ROW?). (2026-10-31) V10.3: TIMELINE: the lines between lanes soft (the block's colour, darker), the rows' edges stronger. (2026-10-31) V10.2: TIMELINE keeps the black line between lanes (only the rows touch); SAVE composes first: TIMELINE SECTIONS PROJECTS ARRANGE TOOLLine truncated
|
||||
#define FELUCCA_VERSION "V10.26" /* (2026-11-02) V10.26: SCENE starts with every track KEEP (OFF, as before); OCT+ on SCENE dices the roles (each role one track at most: never two doing the same, never two playing chords), OCT- all KEEP; turned ON with none set, it dices; a role picked by hand that another track has sends that one to KEEP. (2026-11-02) V10.25: SEQ > STRETCH's NUDGE in two modes: OCT- the whole sequence a step (blue, as before), OCT+ the cursor step's MICRO timing (red, 64ths of a step; PRESETS moves the cursor), MICRO back on a knob (a tester's ask). (2026-11-02) V10.24: the user's picks from the redesign mock: SEQ > EUCLID the lanes as concentric rings (heat colours, VARY's turns under the ring); SEQ > MUTATE the anchor above, the pattern playing below (changed steps lit), an arc to the next mutation; SAVE > PRESETS two columns (the engines, their presets), OCT+ keeps the sound browsed to, OCT- brings back the one before; SAVE > TOOLS by scope (KNOB 1 TRACK SOUND SONG SYSTEM, KNOB 2 the action), OCT+ held a second does it (no dialog); SCL > SCENE, the multitimbral mode: one key plays every track given a role (KEEP CHORD ARP BASS LEAD; the kit keeps its sequence), REC records each into its own steps. (2026-11-01) V10.23: STRING FDBK heard (its BLOOM level was applied twice, -15 dB); EXCITE into / out of FDBK keeps each side's EDIT 2 knobs (GAIN no longer starts at STRETCH's 0), FDBK's defaults audible. (2026-11-01) V10.22: testers' asks: ENV > ENV 2 (a second ADSR, MOD SRC ENV2, any DEST), FILTER TYPE LP24 (4 poles), ANALOG WAVE PLS3 (three pulses, SHAPE the width). (2026-11-01) V10.21: EUCLID's lane rows named right (they were one off: ALL's name on BD's row); the ring shows one cycle (the lane's, ALL's, the melody's) and the turn playing, its playhead going round; PROX's page says the phone, not the hand. (2026-11-01) V10.20: PROX smooth: the RSSI reading fixed on word 0 as the level (V10.18's widest range picked a noisy byte: a random sample and hold), the median of nine and ~0.3 s; FAR and NEAR too close (under 4 levels) refused. (2026-10-31) V10.19: the PROX page redraws when a reading arrives (all-zero words left it on NOT CONNECTED) and shows the link as seen: L (link), the RSSI hook's packets / the good packets. (2026-10-31) V10.18: PROX finds the RSSI reading that moves (the four RSSI words of each packet, twelve readings, the widest range on the link; kept once FAR / NEAR is stored), the page shows the four words. (2026-10-31) V10.17: SAVE > SECTIONS KNOB 2 ERASE (the section empty again, RAM and flash; the music stays). (2026-10-31) V10.16: SEQ > EUCLID's VARY in four turns (A A' A'' B, each moved anew, the motif answered); SEQ > MUTATE (EVERY 1..16 bars, AMOUNT, MODE ORBIT / DRIFT / PULSE, WHAT GROOVE / RHYTHM / FEEL / ALL; OCT+ a mutation now, OCT- back to the anchor). (2026-10-31) V10.15: VOICE's English dictionary in the Bluetooth segment (without it: the letter rules). (2026-10-31) V10.14: PROX, a modulation source from the Bluetooth signal (a hand near the antenna), calibrated on MENU > SYSTEM > BLUETOOTH ON + OCT+ (OCT- FAR, OCT+ NEAR). (2026-10-31) V10.13: BLE-MIDI in and out (what a central sends plays as USB-MIDI, MIDI OUT goes to it too); ABOUT's credits in the Bluetooth segment (the app slot had 128 B free). (2026-10-31) V10.12: MENU > SYSTEM > BLUETOOTH OFF / ON: a BLE-MIDI peripheral "JIANT FM-1" (advertising, connectable; MIDI not routed yet), Optimist's stack in the Bluetooth segment at 0xEA000 (written by the update loader from the package's bt.bin), live RF calibration, a boot guard. (2026-10-31) V10.11: the supplies set up as stock V15 does (the DC-DC on, hal/fm1_power.h from Melodee), the radio's prerequisite; 0xEA000..0xFBFFF reserved for the Bluetooth segment. (2026-10-31) V10.10: the radio's calibration kept: the update loader keeps the stock VM sector (0xE8000: RF trims, BT address) but its record's 256 B; VM_READ (editor 80) reads that area for web/btcheck. (2026-10-31) V10.9: MENU > LARGE shows the animations (HOME: the six tracks' creatures in the strip; EDIT: the engine's). (2026-10-31) V10.8: testers' fixes: GEN parts set OFF stay off; GEN keeps its GENRE between visits; SEQ > STEP KNOB 4 VEL (1..127, then ACC SLD A+S); delay 1/4D 1/8D 1/16D; less pitch wobble from the generators (no macro on PITCH, pitched delay seldom, octaves); STOP TO EDIT says SONG PLAYS. (2026-10-31) V10.7: SEQ > EUCLID on a kit: LANE ALL first (DENSITY: a whole usable kit), a lane picked writes that lane alone; EDIT + PRESETS jumps between engines; the kit's SEQ dice plays in every genre; EUCLID's HITS exact (VARY moved them only); REC held alone and let go: UNDO (again: REDO). (2026-10-31) V10.6: SEQ > EUCLID and MODES (a euclidean pattern generator, melodies in the key) in MUTATE's place; MUTATE and SEQ TOOLS' RANDOM COOK BEAT gone. (2026-10-31) V10.5: automation thinned (a recording at the stop, the 64 when full) into holds and RAMPs. (2026-10-31) V10.4: ARRANGE / TIMELINE:Line truncated
|
||||
#endif
|
||||
#if FELUCCA_OTA && !FELUCCA_FLASH
|
||||
#error "FELUCCA_OTA needs FELUCCA_FLASH"
|
||||
|
||||
+1
-1
@@ -373,7 +373,7 @@ static void rec_release(track_t *t, uint32_t note);
|
||||
* down, LEAD an octave up; KEEP: the track as it is (its sequence plays on, the keys do not reach it). Armed, REC
|
||||
* records every track with a role into its own steps. The roles are the session's (RAM) */
|
||||
enum { SC_KEEP, SC_CHORD, SC_ARP, SC_BASS, SC_LEAD, SC_N };
|
||||
static uint8_t scn_on, scn_role[NTRK] = {SC_KEEP, SC_LEAD, SC_KEEP, SC_ARP, SC_BASS, SC_CHORD};
|
||||
static uint8_t scn_on, scn_role[NTRK]; /* (V10.26: all KEEP until set or diced) */
|
||||
static uint32_t scn_keys; /* the keys down that play the scene (their key-up too) */
|
||||
static int rec_on(const track_t *t)
|
||||
{
|
||||
|
||||
@@ -2670,6 +2670,13 @@ static void ui_input_frame(void)
|
||||
br_armed = 0;
|
||||
break;
|
||||
}
|
||||
if (!ui.home && !ui.menu && !ui.confirm && cur_page()->graph == GR_SCENE) { /* (V10.26) SCENE: OCT+ dices
|
||||
* the roles (each one track's), OCT- all KEEP */
|
||||
if (b == B_OCTUP) sc_dice(); else memset(scn_role, 0, sizeof scn_role);
|
||||
ui_message(b == B_OCTUP ? "SCENE DICED" : "ALL TRACKS KEEP");
|
||||
ui.force = 1;
|
||||
break;
|
||||
}
|
||||
if (!ui.home && !ui.menu && !ui.confirm && cur_page()->graph == GR_SHAPE) { /* (V10.25) STRETCH: NUDGE's */
|
||||
ndg_step = b == B_OCTUP; /* mode, OCT- the sequence (blue), OCT+ the step (red) */
|
||||
ui_message(ndg_step ? "NUDGE: THE STEP'S MICRO TIMING" : "NUDGE: THE WHOLE SEQUENCE");
|
||||
|
||||
+25
-1
@@ -35,11 +35,28 @@ static void sc_setup(uint32_t i) /* track i set up for it
|
||||
else t->p[P_AMODE] = AM_OFF;
|
||||
if (r == SC_CHORD) t->p[P_VOICE] = V_POLY;
|
||||
}
|
||||
/* (V10.26) the roles diced: one track for each of CHORD ARP BASS LEAD at most (never two doing the same, never two
|
||||
* playing chords: the polyphony), the melodic tracks awake only, the rest KEEP; at least two roles */
|
||||
static void sc_dice(void)
|
||||
{
|
||||
uint32_t i, j, m[NTRK], nm = 0, r[4] = {SC_CHORD, SC_ARP, SC_BASS, SC_LEAD};
|
||||
for (i = 0; i < NTRK; i++) {
|
||||
scn_role[i] = SC_KEEP;
|
||||
if (i < trk_live && !drum_track(&trk[i])) m[nm++] = i;
|
||||
}
|
||||
for (i = nm; i > 1u; i--) { j = rng() % i; uint32_t x = m[i - 1u]; m[i - 1u] = m[j]; m[j] = x; } /* (the tracks shuffled) */
|
||||
for (i = 4u; i > 1u; i--) { j = rng() % i; uint32_t x = r[i - 1u]; r[i - 1u] = r[j]; r[j] = x; } /* (the roles too) */
|
||||
j = nm < 4u ? nm : 2u + rng() % 3u; /* (2 .. 4 roles, as many tracks as there are) */
|
||||
for (i = 0; i < j && i < nm; i++) { scn_role[m[i]] = (uint8_t)r[i]; sc_setup(m[i]); }
|
||||
}
|
||||
static void sc_put(uint32_t k, int32_t v)
|
||||
{
|
||||
uint32_t i, need = 0;
|
||||
if (k == 0u) {
|
||||
scn_on = (uint8_t)(v != 0);
|
||||
for (i = 0, need = 0; i < NTRK; i++) need |= scn_role[i];
|
||||
if (scn_on && !need) sc_dice(); /* (all KEEP: a scene diced, so ON plays something) */
|
||||
need = 0;
|
||||
for (i = 0; scn_on && i < NTRK; i++) {
|
||||
sc_setup(i);
|
||||
need |= (uint32_t)(i >= trk_live && scn_role[i] && !drum_track(&trk[i]));
|
||||
@@ -49,6 +66,13 @@ static void sc_put(uint32_t k, int32_t v)
|
||||
sc_trk = (uint8_t)clamp(v, 0, NTRK - 1);
|
||||
else if (k == 2u && !drum_track(&trk[sc_trk % NTRK])) {
|
||||
scn_role[sc_trk % NTRK] = (uint8_t)clamp(v, 0, SC_N - 1);
|
||||
for (i = 0; v != SC_KEEP && i < NTRK; i++) /* (V10.26) a role is one track's: another with it goes KEEP */
|
||||
if (i != sc_trk && scn_role[i] == (uint8_t)v) {
|
||||
char b[16] = "T ROLE TO KEEP";
|
||||
b[1] = (char)('1' + i);
|
||||
scn_role[i] = SC_KEEP;
|
||||
ui_message(b);
|
||||
}
|
||||
sc_setup(sc_trk);
|
||||
}
|
||||
ui.force = 1;
|
||||
@@ -79,6 +103,6 @@ static void graph_scene(void)
|
||||
cv_rect(x + 2 + (r == SC_ARP ? (int32_t)j * 7 : 0), y, r == SC_ARP ? 6 : cw - 10, 3, c);
|
||||
}
|
||||
}
|
||||
cv_text_in(4, (int32_t)h - 11, 232, &AF_X, scn_on ? "SCENE ON: A KEY PLAYS EVERY ROLE" : "SCENE OFF: KNOB 1 TURNS IT ON",
|
||||
cv_text_in(4, (int32_t)h - 11, 232, &AF_X, scn_on ? "OCT+ DICE OCT- ALL KEEP" : "SCENE OFF: KNOB 1 TURNS IT ON",
|
||||
scn_on ? T_ACCENT : T_DIM, T_SURF);
|
||||
}
|
||||
+2
-1
@@ -586,7 +586,7 @@ static void state(void) /* a playing song with steps on
|
||||
{
|
||||
uint32_t i;
|
||||
ui_power_on();
|
||||
ndg_step = 0; scn_on = 0; /* (V10.25: the session's NUDGE and SCENE modes off) */
|
||||
ndg_step = 0; scn_on = 0; memset(scn_role, 0, sizeof scn_role); /* (V10.25: the session's NUDGE and SCENE off) */
|
||||
dx_mute_set(0);
|
||||
memset(macro_v, 0, sizeof macro_v);
|
||||
if (large_on) ui_prefs |= PREF_LARGE;
|
||||
@@ -1140,6 +1140,7 @@ static void setup(int s)
|
||||
break;
|
||||
case S_SCENE: /* (V10.25) SCL > SCENE on: the six tracks' roles, a C4 played */
|
||||
song.sel = 0; scn_on = 1; sc_trk = 5; last_note = 60;
|
||||
{ static const uint8_t R0[NTRK] = {SC_KEEP, SC_LEAD, SC_KEEP, SC_ARP, SC_BASS, SC_CHORD}; memcpy(scn_role, R0, sizeof R0); }
|
||||
go_title("SCENE");
|
||||
break;
|
||||
case S_CHANCE: go_page(GR_CHANCE); step_set_chance(&TSEL->step[0], 65); break;
|
||||
|
||||
+18
-1
@@ -181,7 +181,7 @@ static void ui_power_on(void)
|
||||
scn_on = 0; scn_keys = 0; /* (V10.25: SCENE off at power-on, its roles the defaults) */
|
||||
memset(eu, 0, sizeof eu); /* (EUCLID / MUTATE: the session's, none at power-on) */
|
||||
ndg_step = 0;
|
||||
{ static const uint8_t R0[NTRK] = {SC_KEEP, SC_LEAD, SC_KEEP, SC_ARP, SC_BASS, SC_CHORD}; memcpy(scn_role, R0, sizeof R0); sc_trk = 5; }
|
||||
memset(scn_role, 0, sizeof scn_role); sc_trk = 5;
|
||||
memset(&chain, 0, sizeof chain);
|
||||
chain_defaults(&chain_config);
|
||||
live.mode = 0; /* (0.6.81: PLAY the loop, as at power-on; a DICE ALL leaves SONG) */
|
||||
@@ -13066,6 +13066,21 @@ static int test_scene(void)
|
||||
set_engine_of(&trk[0], ENGI_DRUM);
|
||||
for (i = 1; i < NTRK; i++) set_engine_of(&trk[i], ENGI_ANALOG);
|
||||
for (i = 0; i < 60u; i++) events_block(CTL); /* (the engines faded in) */
|
||||
{ /* (V10.26) the dice: every role one track's at most, one CHORD at most, the kit KEEP; many throws */
|
||||
uint32_t n, c, r, bad2 = 0;
|
||||
for (n = 0; n < 200u; n++) {
|
||||
sc_dice();
|
||||
for (r = SC_CHORD; r < SC_N; r++) {
|
||||
for (c = 0, i = 0; i < NTRK; i++) c += scn_role[i] == r;
|
||||
bad2 += c > 1u;
|
||||
}
|
||||
bad2 += scn_role[0] != SC_KEEP;
|
||||
for (c = 0, i = 0; i < NTRK; i++) c += scn_role[i] != SC_KEEP;
|
||||
bad2 += c < 2u;
|
||||
}
|
||||
bad += check("SCENE DICE: never two tracks with one role (one CHORD at most), the kit KEEP, two roles at least", !bad2);
|
||||
}
|
||||
{ static const uint8_t R0[NTRK] = {SC_KEEP, SC_LEAD, SC_KEEP, SC_ARP, SC_BASS, SC_CHORD}; memcpy(scn_role, R0, sizeof R0); }
|
||||
turn(EN_K1, 1);
|
||||
ok = scn_on == 1u;
|
||||
turn(EN_K2, -1); /* (T6 -> T5: BASS) */
|
||||
@@ -13078,6 +13093,8 @@ static int test_scene(void)
|
||||
key_up(white(7));
|
||||
for (i = 0; i < 4u; i++) events_block(CTL);
|
||||
bad += check("SCENE: the key up ends every role", trk_gates(5) == 0u && trk_gates(4) == 0u && trk_gates(1) == 0u && !trk[3].arp_phys);
|
||||
turn(EN_K3, -1); /* (T5 BASS -> ARP: T4's ARP goes KEEP) */
|
||||
bad += check("SCENE: a role another track has: that track KEEP (no two alike)", scn_role[4] == SC_ARP && scn_role[3] == SC_KEEP);
|
||||
turn(EN_K1, -1);
|
||||
bad += check("SCENE OFF: a key plays the selected track again", !scn_on);
|
||||
trks_put(0);
|
||||
|
||||
+1890
-1889
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user