mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 04:44:33 +01:00
V10.23: STRING FDBK heard; EXCITE into FDBK brings audible amp knobs
The FDBK loop took BLOOM's level twice (-15 dB). Turning EXCITE into or out of FDBK now keeps each side's EDIT 2 knobs (GAIN no longer inherits STRETCH's 0), with FDBK defaults that sound at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
5 files changed
+1090
-1043
No files matched your search
@@ -28,8 +28,8 @@ enum { SX_NOISE, SX_PLUCK, SX_PICK, SX_HAMMER, SX_MALLET, SX_FDBK, SX_N };
|
||||
* the feedback grows while the key is held. BRIGHT stays the tone. No memory more: the speaker's tap is the line. */
|
||||
static const param_desc_t STR_AMP[5] = {
|
||||
{"MOVE", F_PCT, 0, 127, 28, 0, 0}, /* (par12) POS: the guitar swayed before the amp */
|
||||
{"GAIN", F_PCT, 0, 127, 0, 0, 0}, {"DIST", F_PCT, 0, 127, 40, 0, 0},
|
||||
{"SPEAKR", F_PCT, 0, 127, 40, 0, 0}, {"BLOOM", F_PCT, 0, 127, 0, 0, 0}};
|
||||
{"GAIN", F_PCT, 0, 127, 64, 0, 0}, {"DIST", F_PCT, 0, 127, 50, 0, 0}, /* (V10.23: heard at once, as FEEDBACK) */
|
||||
{"SPEAKR", F_PCT, 0, 127, 40, 0, 0}, {"BLOOM", F_PCT, 0, 127, 40, 0, 0}};
|
||||
static const param_desc_t *string_desc(const track_t *t, uint32_t k)
|
||||
{
|
||||
return k >= 3u && t->p[P_E0] == SX_FDBK ? &STR_AMP[k - 3u] : 0;
|
||||
@@ -227,7 +227,8 @@ static void string_render(track_t *t, voice_t *v, int32_t *out, uint32_t n, cons
|
||||
* rides at the clip: -15 dB once bloomed, beside a pluck */
|
||||
int32_t c = clamp(((s * fdo) >> 8) + fdo * 3, -32767, 32767);
|
||||
c = ((3 * c - ((((c * c) >> 15) * c) >> 15)) >> 1) - fz0; /* (less the bias's own: no step at the note) */
|
||||
s = (((c * fol) >> 15) * (32 - ((bl * 26) >> 15))) >> 5;
|
||||
s = (c * fol) >> 15; /* (V10.23, a tester: "FDBK barely heard": the bloom's
|
||||
* level was taken twice, here and in fol, -15 dB more) */
|
||||
}
|
||||
dc += ((s << 12) - dc) >> 10; /* (the output's DC blocked: ~7 Hz; Q12, what sticks under a
|
||||
* quarter of a step: rounded away) */
|
||||
|
||||
@@ -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.22" /* (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 TOOLS USER PRESETS. (2026-10-30) V10.1: TIMELINE blocks fill the lanes (no black gaps between rows or tracks). (2026-10-30) JIANT FM V10: add15-beta6 as the new base (TIMELINE, VAR, ADD, official V16 both ways); the version history before it: the git log of the add15 line (codex/add15-private) */
|
||||
#define FELUCCA_VERSION "V10.23" /* (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 TOOLS USER PRESETS. (2026-10-30) V10.1: TIMELINE blocks fill the lanes (no black gaps between rows or tracks). (2026-10-30) JIANT FM V10: add15-beta6 as the new base (TIMELINE, VAR, ADD, official V16 both ways); the version history before it: the git log of the add15 line (codex/add15-private) */
|
||||
#endif
|
||||
#if FELUCCA_OTA && !FELUCCA_FLASH
|
||||
#error "FELUCCA_OTA needs FELUCCA_FLASH"
|
||||
|
||||
+27
-2
@@ -470,6 +470,23 @@ static void knob_cap(track_t *t, uint32_t id)
|
||||
motion_capture(t, id, t->p[id]);
|
||||
ml_knob(t, id);
|
||||
}
|
||||
/* (V10.23, a tester: "the STRING modes don't take until a knob goes up") STRING's EXCITE into or out of FDBK: EDIT 2's
|
||||
* four knobs change meaning (STRETCH BODY SIZE BOW / GAIN DIST SPEAKR BLOOM), so each side keeps its own four: the
|
||||
* other side's come back as they were left (the first time, their defaults: FDBK's GAIN no longer starts at STRETCH's 0) */
|
||||
static void excite_turn(track_t *t, const int16_t *vp, int32_t old)
|
||||
{
|
||||
static int16_t side[NTRK][2][4];
|
||||
static uint8_t had[NTRK];
|
||||
uint32_t k = (uint32_t)(t - trk) % NTRK, i, was = old == 5, now = t->p[P_E0] == 5; /* (eng_string.c SX_FDBK) */
|
||||
if (vp != &t->p[P_E0] || t->eng_req % NENGINES != ENGI_STRING || was == now)
|
||||
return;
|
||||
for (i = 0; i < 4u; i++) {
|
||||
side[k][was][i] = t->p[P_E4 + i];
|
||||
t->p[P_E4 + i] = (had[k] >> now) & 1u ? side[k][now][i] : track_desc(t, P_E4 + i)->def;
|
||||
knob_cap(t, P_E4 + i);
|
||||
}
|
||||
had[k] |= (uint8_t)(1u << was);
|
||||
}
|
||||
static void tracks_edit(uint32_t slot, int32_t steps)
|
||||
{
|
||||
track_t *t = TSEL;
|
||||
@@ -1144,9 +1161,11 @@ static void focus_knob(uint32_t slot, int32_t steps)
|
||||
return;
|
||||
}
|
||||
if (slot == 1u) {
|
||||
int32_t was = TSEL->p[P_E0 + k];
|
||||
d = track_desc(TSEL, P_E0 + k);
|
||||
TSEL->p[P_E0 + k] = (int16_t)param_turn(d, TSEL->p[P_E0 + k], accel(EN_K1 + 1u, steps, d->fmt == F_ENUM ? 0 : d->max - d->min));
|
||||
TSEL->p[P_E0 + k] = (int16_t)param_turn(d, was, accel(EN_K1 + 1u, steps, d->fmt == F_ENUM ? 0 : d->max - d->min));
|
||||
knob_cap(TSEL, P_E0 + k);
|
||||
excite_turn(TSEL, &TSEL->p[P_E0 + k], was);
|
||||
return;
|
||||
}
|
||||
if (slot == 2u && j < 0) { /* (no slot aims at it: a free one, turned up) */
|
||||
@@ -1406,7 +1425,11 @@ sect:
|
||||
if (!d || !vp || d->max == d->min)
|
||||
return;
|
||||
v = param_turn(d, *vp, accel(EN_K1 + slot, steps, d->fmt == F_ENUM ? 0 : d->max - d->min));
|
||||
*vp = (int16_t)v;
|
||||
{
|
||||
int32_t was = *vp;
|
||||
*vp = (int16_t)v;
|
||||
excite_turn(TSEL, vp, was);
|
||||
}
|
||||
if (vp >= eu_v && vp < eu_v + EK_N) { /* (V10.6) EUCLID / MODES: the setting, the pattern again */
|
||||
eu_put((uint32_t)(vp - eu_v), v);
|
||||
return;
|
||||
@@ -2735,8 +2758,10 @@ static void ui_input_frame(void)
|
||||
} else if (ui.home) {
|
||||
int16_t *vp;
|
||||
const param_desc_t *d = home_param(k, &vp);
|
||||
int32_t was = *vp;
|
||||
*vp = (int16_t)param_turn(d, *vp, accel(EN_K1 + k, s, d->fmt == F_ENUM ? 0 : d->max - d->min));
|
||||
knob_cap(TSEL, (uint32_t)(vp - TSEL->p));
|
||||
excite_turn(TSEL, vp, was);
|
||||
} else {
|
||||
edit_param(k, s);
|
||||
}
|
||||
|
||||
@@ -13019,11 +13019,31 @@ static int test_comp_cards(void)
|
||||
return check("COMP / COMP 2 / COMPS: every value of the four cards whole, in the four skins and LARGE", bad == 0 && n > 1000u);
|
||||
}
|
||||
|
||||
/* (V10.23) STRING's EXCITE into FDBK: EDIT 2's four knobs become the amp's with values heard at once (GAIN was STRETCH's 0:
|
||||
* "the modes don't take until a knob goes up"), and back out STRETCH BODY SIZE BOW as they were left */
|
||||
static int test_string_excite(void)
|
||||
{
|
||||
int ok;
|
||||
ui_power_on();
|
||||
song.sel = 0;
|
||||
set_engine_of(TSEL, ENGI_STRING);
|
||||
TSEL->p[P_E0] = 4; TSEL->p[P_E4] = 0; TSEL->p[P_E5] = 33; TSEL->p[P_E6] = 44; TSEL->p[P_E7] = 0;
|
||||
go_title("EDIT 1"); frame();
|
||||
turn(EN_K1, 1);
|
||||
ok = TSEL->p[P_E0] == 5 && TSEL->p[P_E4] > 30 && TSEL->p[P_E7] > 0;
|
||||
TSEL->p[P_E4] = 99;
|
||||
turn(EN_K1, -1);
|
||||
ok &= TSEL->p[P_E0] == 4 && TSEL->p[P_E4] == 0 && TSEL->p[P_E5] == 33 && TSEL->p[P_E6] == 44 && TSEL->p[P_E7] == 0;
|
||||
turn(EN_K1, 1);
|
||||
ok &= TSEL->p[P_E4] == 99;
|
||||
return check("STRING EXCITE FDBK: GAIN heard at once, each side's EDIT 2 kept (V10.23)", ok);
|
||||
}
|
||||
int main(void)
|
||||
{
|
||||
setvbuf(stdout, NULL, _IONBF, 0);
|
||||
int bad = 0;
|
||||
bad += test_comp_cards();
|
||||
bad += test_string_excite();
|
||||
bad += test_large_face();
|
||||
bad += test_lz_home();
|
||||
bad += test_lz_edit();
|
||||
|
||||
+1038
-1037
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user