Repository navigation
FM4: modulator waves on a new OPS page; KICK's TAP turns past 9 - #314
Merged
Merged
Conversation
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
…rios) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01Tw2EaFHmBTuHT9xVLai85a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) andDBL(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, andSINis 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.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
make -C host warnclean.tools/check_rules.shand the other repo checks pass.tests/scenario_fmwave.sh(scenario_fmwith WAV onDBL). Not run: the emulator and cl6x are on Roland's PC. No cost is expected (same loop, one more pointer), butdocs/BUDGET.mdsays "not measured yet" until it is.docs/screensis not redrawn.Listening renders:
/mnt/project-files/synthesis-review/renders/fm-waves/(README there).Generated by Claude Code