Skip to content

FM4: modulator waves on a new OPS page; KICK's TAP turns past 9 - #314

Merged
Devko merged 3 commits into
mainfrom
claude/project-thread-2fkf7b
Nov 30, 2026
Merged

Devko merged 3 commits into
mainfrom
claude/project-thread-2fkf7b

Conversation

@Devko

@Devko Devko commented Nov 30, 2026

Copy link
Copy Markdown
Owner

What

Synthesis review item 11, and a fix found on the way.

FM4: modulator waves on a ninth EDIT page, OPS. One knob, WAV, gives the modulator pair (operators 2 and 4) the sine or one of three variants of it: SIN2 (odd harmonics, hollow), HALF (even harmonics, nasal) and DBL (the first three harmonics about level, glassy). The carriers stay sines. Three new sounds: REED, HORN, TINE.

KICK's TAP turns all the way up. The TAPS page's TAP knob stopped at 9 of 127 (7% on the screen, a ghost about 49 dB under the hit): it shares slot 40 with the WAVE pair's scan mode, which has ten modes, and the limit was by slot alone. The limit now takes the machine. Its own commit.

How

  • dsp/fmloops.ti.c: both loops read operators 2 and 4 through a second table pointer. Nothing else in the loop changes, and SIN is bit-exact (the golden renders stand).
  • dsp/fm.cpp: four tables of 1,025 floats (16 KiB of BSS), none with DC. A table is not band-limited, so the index cap counts a waved modulator as 3, 4 or 8 times its frequency wide, and a note whose modulators would pass half the rate reads the sine.
  • Fold-over, measured on eleven presets with each wave, C2 to C7: 42 dB or more under the loudest partial, where the sine's own worst is 41.5.
  • File format: no byte added. KIT.BIN's generation byte (on the end of LFO SLOW's section) goes from 1 to 2, and a kit below 2 opens its FM4 tracks on SIN. A kit cannot hold a KICK TAP above 9, so every kit plays as it was saved.
  • kit_param_max(machine, index): slot 40 stops at 9 on the WAVE pair, at 3 on FM4 and at 127 elsewhere.

Checks

  • Host suite: 5,110,697 checks, 0 failures. make -C host warn clean. tools/check_rules.sh and the other repo checks pass.
  • New host tests for the tables, the spectra of each wave, the fall-back to the sine, the cap, the kit generation, the knob limits by machine, the OPS screen, the help and the presets.
  • New tests/scenario_fmwave.sh (scenario_fm with WAV on DBL). Not run: the emulator and cl6x are on Roland's PC. No cost is expected (same loop, one more pointer), but docs/BUDGET.md says "not measured yet" until it is.
  • Unit checklist W122. docs/screens is not redrawn.

Listening renders: /mnt/project-files/synthesis-review/renders/fm-waves/ (README there).


Generated by Claude Code

Slot 40 is SCN's MOD on WAVE MONO and WAVE POLY, a number 0-9, and TAP on KICK, a level. Its
limit was by index alone (kit_param_max), so the engine, the knob, a lock, a user sound and the
kit's reader all held KICK's TAP at 9 of 127: 7% on the screen and a ghost about 49 dB under
the hit. kit_param_max(machine, index) keeps the limit on the machines that scan; where the
machine is not known (scenes, random ranges) the slot takes 127 and the WAVE voice reads a MOD
past its last mode as the last, as it always did. No kit can hold a TAP above 9, so every kit
plays as it was saved.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tw2EaFHmBTuHT9xVLai85a
WAV, the SCN page's first slot on FM4, gives operators 2 and 4 the sine or one of three
variants of it read from a table of the same size: SIN2 (sin x |sin|, odd harmonics), HALF (the
upper half, even harmonics) and DBL (one cycle at double speed, then nothing). The carrier
pair stays sine. The loop takes a second table pointer and is otherwise unchanged; SIN is
bit-exact, so the golden renders stand.

The tables carry no DC (operators 2 and 4 are heard on A6-A8). A table is not band-limited, so
fm_index_cap counts a waved modulator as 3, 4 or 8 times its frequency wide, and a note whose
modulators times that would pass half the rate reads the sine, chosen at the note's start or
when WAV moves. Fold-over under 5 kHz stays 42 dB or more under the loudest partial on eleven
presets, C2 to C7, where the sine's own worst is 41.5.

WAV is a number, 0-3 (kit_param_max by machine). KIT.BIN's generation byte goes to 2: an FM4
track from before WAV opens on SIN, whatever the slot held. Presets REED, HORN, TINE; every
other FM4 preset writes SIN. New scenario_fmwave (scenario_fm with WAV on DBL), W122. cl6x not
measured: the emulator runs on Roland's PC.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Tw2EaFHmBTuHT9xVLai85a
@Devko
Devko merged commit d1674fa into main Nov 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants