FM6 BELL, BELL CLOUD, GLASS RAIN: REL 5 (was 25 / 30 / 20 since V10.6i): voices free in ~10 s, held sound unchanged

The three play factory patch F2 (GLASS BELL: carriers R4 35/40/45, L3 0, R3 25). FM6's REL slows the
carriers' R4 by REL x 90 / 127 (fm6_sync), so REL 25 put OP1's R4 at 18 (qrate 11, ~1.7 dB/s): a
released bell rang far longer than a held one (held 1 s: -15 dB; released: -1 dB after 1 s), audible
~10 s, and its voice stayed until the carriers fell under the done threshold: 38-45 s for one note
(regress: 'voices not free 12 s after the note-offs'), an FM6 voice of the 8 kept busy per note.
The 'DC left at the end' was not DC: regress measured the tail's midpoint while those voices still
rang (BELL CLOUD -91 with a 1036 peak); with the voices free the tail is 0 / DC 0.
REL 5: R4 31 -> free 8.3-8.6 s after the regress phrase, 9.9-10 s after a short note at 127; -20 dB
at 1.2-1.3 s (was 2.4-5.6 s). REL changes only R4, so the sound while held is bit for bit the same.
Web editor mock synced. fm6_test 9: every factory preset's note is free within 12 s; the three held
as at their V10.6i REL, bit for bit. 0 B.

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-09 13:06:38 +00:00
1 parent eee26c9504
commit 2b5861fd35
3 files changed
+63 -7

No files matched your search

+3 -3
View File
@@ -490,7 +490,7 @@ _Static_assert(NELEM(N_FM6_PATCH) == FM6_OWN + FM6_NBANK + 2u, "a SLOT name per
static const preset_t FM6_PRESETS[] = {
{"TINE EP", {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 127, 0}, 0, TAG(KEYS), FX(0, 45, 25, 35), PAT(6),
MODS(P_LRATE, 70, P_LPHASE, -1, MMOD(1, PS_LFO, PD_PAN, 12))}, /* a suitcase's slow auto-pan */
{"BELL", {0, 0, 0, 0, 0, 0, 0, 1}, {0, 0, 127, 25}, 0, TAG(BELL), FX(0, 10, 30, 70), PAT(7),
{"BELL", {0, 0, 0, 0, 0, 0, 0, 1}, {0, 0, 127, 5}, 0, TAG(BELL), FX(0, 10, 30, 70), PAT(7),
MODS(MMOD(1, PS_RAND, PD_PAN, 10), MMOD(2, PS_VEL, PD_CUT, 12))},
{"FM BASS", {0, 0, 0, 0, 0, 0, 0, 2}, {0, 0, 127, 0}, 0, 1 | TAG(BASS), FX(0, 0, 10, 10), PAT(2),
MODS(MENV2(0, 35, 0, 15), MMOD(1, PS_ENV2, PD_CUT, 16), P_GLIDE, 10)}, /* bright on the attack */
@@ -514,12 +514,12 @@ static const preset_t FM6_PRESETS[] = {
{"FM GROWL", {0, 3, 10, 0, -10, 2, 0, 2}, {0, 0, 127, 5}, 0, 1 | TAG(BASS), FX(15, 0, 10, 5), PAT(2),
MODS(MLFO(LW_SAW, -8, 0, 30), MMOD(1, PS_MODW, PD_SHP, 30))}, /* (was SLAP BASS) a wah in 1/8 */
{"INIT SINE", {0, 0, -64, 0, 0, 0, 0, 2}, {0, 0, 127, 10}, 0, TAG(KEYS), FX(0, 0, 0, 0)}, /* (was SUB BASS) bare */
{"BELL CLOUD", {0, 0, -10, 0, 0, 0, 40, 1}, {55, 0, 105, 30}, 0, TAG(PAD), FX(0, 55, 30, 80), PAT(5),
{"BELL CLOUD", {0, 0, -10, 0, 0, 0, 40, 1}, {55, 0, 105, 5}, 0, TAG(PAD), FX(0, 55, 30, 80), PAT(5),
MODS(MLFO(LW_SH, -10, 0, 18), MMOD(1, PS_RAND, PD_PAN, 28), MMOD(2, PS_RAND, PD_REV, 16),
MMOD(3, PS_KEY, PD_CUT, -20))}, /* (was BELL PAD) sparkles in 1/16, each chord elsewhere, high notes dark */
{"HARD BASS", {0, 2, 25, 0, 0, 0, 0, 2}, {0, 0, 127, 0}, 0, 1 | TAG(BASS), FX(15, 0, 10, 5), PAT(2),
MODS(MENV2(0, 30, 0, 10), MMOD(1, PS_ENV2, PD_CUT, 12))},
{"GLASS RAIN", {0, 1, 10, 0, 0, 0, 20, 1}, {0, 0, 127, 20}, 0, TAG(BELL), FX(0, 20, 45, 60), PAT(7),
{"GLASS RAIN", {0, 1, 10, 0, 0, 0, 20, 1}, {0, 0, 127, 5}, 0, TAG(BELL), FX(0, 20, 45, 60), PAT(7),
MODS(MENV2(0, 40, 0, 30), MMOD(1, PS_ENV2, PD_PITCH, 32), MMOD(2, PS_RAND, PD_PAN, 40),
MMOD(3, PS_RAND, PD_DLY, 30), MMOD(4, PS_VEL, PD_CUT, 15))}, /* (was SAW LEAD) drops falling in, each elsewhere */
};
+57 -1
View File
@@ -18,7 +18,8 @@
* (checksums) into the same patches; the patch survives a project (FUN8) round trip with the same sound.
* 7. cost: host instructions per sample and voice with six voices held (the heaviest: six carriers), and the
* device estimate (1.7 % per 100: the PHYS measurements' ratio, as drum_test); fails above FM6_COST_MAX.
* 8. demos into DEMODIR: every factory preset playing its suggested pattern. */
* 8. demos into DEMODIR: every factory preset playing its suggested pattern.
* 9. releases (V10.7.6): every factory preset's voice free within 12 s; BELL, BELL CLOUD, GLASS RAIN as held before. */
#define main hostsim_main
#include "hostsim.c"
#undef main
@@ -686,6 +687,60 @@ static void demo(const char *dir, uint32_t pi)
fclose(w);
}
/* 9. (V10.7.6) releases: every factory preset's note (C4 at 127, 0.1 s) is free within 12 s of its note-off (regress's
* FREE_CAP_S; BELL, BELL CLOUD and GLASS RAIN's REL 25 / 30 / 20 since V10.6i held voices 40 s, ~10 s of it
* audible), and the three's sound while held is the same at the old REL (REL moves only the carriers' R4) */
static void preset_at(uint32_t pi, int rel)
{
memset(trk, 0, sizeof trk);
memset(fm6_note, 0, sizeof fm6_note);
memset(fm6_eff, 0, sizeof fm6_eff);
memset(fm6_lfo, 0, sizeof fm6_lfo);
memset(fm6_trim, 0, sizeof fm6_trim);
rng_state = 0x1234567u; /* (BELL CLOUD's RAND, its S&H LFO) */
host_tracks_init();
host_preset(&trk[0], ENGI_FM6, pi);
if (rel >= 0) trk[0].p[P_REL] = (int16_t)rel;
}
static double rel_free(void) /* s from the note-off until the voices are free (-1: not in 60 s) */
{
static int32_t b[CTL];
uint32_t i, f;
trk_note_on(&trk[0], 60, 127);
for (i = 0; i < FS / 10u; i += CTL) track_render(&trk[0], b, CTL);
trk_note_off(&trk[0], 60);
for (f = 0; f < 60u * FS; f += CTL) {
for (i = 0; i < NVOICE && !trk[0].v[i].active; i++) {}
if (i == NVOICE) return (double)f / FS;
track_render(&trk[0], b, CTL);
}
return -1;
}
static void releases(void)
{
static const struct { uint8_t pi, old; } CH[3] = {{1, 25}, {12, 30}, {14, 20}};
static double y0[FS * 2], y1[FS * 2];
uint32_t pi, k, worst = 0, held = 1;
double w = 0, d;
char what[160];
for (pi = 0; pi < NELEM(FM6_PRESETS); pi++) {
preset_at(pi, -1);
d = rel_free();
if (d < 0 || d > w) { w = d < 0 ? 99 : d; worst = pi; }
}
snprintf(what, sizeof what, "releases: every factory preset's note free within 12 s of its note-off (longest %s, %.1f s)",
FM6_PRESETS[worst].name, w);
check(what, w <= 12.0);
for (k = 0; k < 3u; k++) {
preset_at(CH[k].pi, -1);
voice_render(57, 110, y0, FS * 2u, FS);
preset_at(CH[k].pi, CH[k].old);
voice_render(57, 110, y1, FS * 2u, FS);
held &= !memcmp(y0, y1, sizeof(double) * (FS - CTL)) && memcmp(y0, y1, sizeof y0); /* (the same to the note-off) */
}
check("releases: BELL, BELL CLOUD, GLASS RAIN held as at their V10.6i REL, bit for bit (only the release shorter)", held);
}
int main(int argc, char **argv)
{
uint32_t pi;
@@ -696,6 +751,7 @@ int main(int argc, char **argv)
macros();
formats();
voices();
releases();
if (!getenv("NOCOST"))
cost();
if (argc > 1) {
+3 -3
View File
@@ -1797,7 +1797,7 @@ function makeMockDevice(opt = {}) {
D("RATIO", F.INT, -16, 16, 0), D("MEG", F.BIPCT, -64, 63, 0), D("VMOD", F.INT, -7, 7, 0), D("DETUNE", F.PCT, 0, 127, 0),
D("SLOT", F.INT, 0, FM6.FACTORY_PK.length + 32, 0)], /* F1..F8, then OWN (eng_fm6.c, 1.0.3) */
presets: [P("TINE EP", [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 127, 0], 0, 6, 0, [[9, 70], [11, -1], [49, 1], [50, 5], [51, 12]]),
P("BELL", [0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 127, 25], 0, 7, 0, [[49, 5], [50, 5], [51, 10], [52, 3], [53, 2], [54, 12]]),
P("BELL", [0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 127, 5], 0, 7, 0, [[49, 5], [50, 5], [51, 10], [52, 3], [53, 2], [54, 12]]),
P("FM BASS", [0, 0, 0, 0, 0, 0, 0, 2], [0, 0, 127, 0], 1, 2, 0, [[64, 0], [66, 35], [67, 0], [69, 15], [49, 16], [50, 2], [51, 16], [38, 10]]),
P("BRASS", [0, 0, 0, 0, 0, 0, 0, 3], [8, 0, 127, 15], 0, 4, 0, [[9, 86], [12, 70], [49, 6], [50, 11], [51, 2]]),
P("PAD", [0, 0, 0, 0, 0, 0, 30, 4], [0, 0, 127, 12], 0, 5, 204, [[49, 1], [50, 5], [51, 16], [52, 6], [53, 2], [54, 24]]),
@@ -1808,9 +1808,9 @@ function makeMockDevice(opt = {}) {
P("SQR LEAD", [0, 0, 10, 1, 20, 0, 6, 7], [0, 30, 110, 25], 1, 4, 0, [[9, 90], [49, 7], [50, 11], [51, 3], [38, 20]]),
P("FM GROWL", [0, 3, 10, 0, -10, 2, 0, 2], [0, 0, 127, 5], 1, 2, 0, [[10, 2], [9, -8], [13, 0], [14, 30], [49, 6], [50, 3], [51, 30]]),
P("INIT SINE", [0, 0, -64, 0, 0, 0, 0, 2], [0, 0, 127, 10], 0, 0, 0, []),
P("BELL CLOUD", [0, 0, -10, 0, 0, 0, 40, 1], [55, 0, 105, 30], 0, 5, 0, [[10, 4], [9, -10], [13, 0], [14, 18], [49, 5], [50, 5], [51, 28], [52, 5], [53, 9], [54, 16], [55, 4], [56, 2], [57, -20]]),
P("BELL CLOUD", [0, 0, -10, 0, 0, 0, 40, 1], [55, 0, 105, 5], 0, 5, 0, [[10, 4], [9, -10], [13, 0], [14, 18], [49, 5], [50, 5], [51, 28], [52, 5], [53, 9], [54, 16], [55, 4], [56, 2], [57, -20]]),
P("HARD BASS", [0, 2, 25, 0, 0, 0, 0, 2], [0, 0, 127, 0], 1, 2, 0, [[64, 0], [66, 30], [67, 0], [69, 10], [49, 16], [50, 2], [51, 12]]),
P("GLASS RAIN", [0, 1, 10, 0, 0, 0, 20, 1], [0, 0, 127, 20], 0, 7, 0, [[64, 0], [66, 40], [67, 0], [69, 30], [49, 16], [50, 1], [51, 32], [52, 5], [53, 5], [54, 40], [55, 5], [56, 8], [57, 30], [58, 3], [59, 2], [60, 15]])] },
P("GLASS RAIN", [0, 1, 10, 0, 0, 0, 20, 1], [0, 0, 127, 5], 0, 7, 0, [[64, 0], [66, 40], [67, 0], [69, 30], [49, 16], [50, 1], [51, 32], [52, 5], [53, 5], [54, 40], [55, 5], [56, 8], [57, 30], [58, 3], [59, 2], [60, 15]])] },
/* 13: ADD (JIANT 0.9.9-snd5, src/eng_add.c; generated from it): additive, nine partials (SLICE's number, retired in JIANT) */
{ name: "ADD", titles: ["SPECTRUM", "MOTION"], edit: [E("MODE", ["HARM", "ODD", "WIDE", "BELL", "BAR", "DRUM", "PRIME", "FIFTH", "SUB", "PLATE"], 0),
D("MORPH", F.PCT, 0, 127, 0), D("BRIGHT", F.PCT, 0, 127, 70), D("PARTIAL", F.PCT, 0, 127, 127), D("SHIFT", F.INT, -64, 63, 0),