Play loads a patch per channel before a note is played: an oboe for the
melody, strings under it, a square wave for the bass and a kalimba for
the arpeggio. It reads a count and that many parameter and value pairs -
the format SoundPatch writes - and understands nothing else about them,
which keeps SoundPatch the only thing that knows what soundThing's JSON
means.
FOUR PATCHES CAN BE UP AT ONCE, and that is the whole rung. It is the
first use of d361ea1: before it the LFOs belonged to the whole device, so
whichever patch loaded last owned them for every voice. Kalimba has LFO 0
switched off and the other three have it on, so on the old device this
piece would have played all four parts with the arpeggio's setting -
which is exactly the fault that stopped Lunar Porter's low fuel warning
trilling after the first landing of a run.
The eight patches are the user's, brought over from soundThing; four are
used here and the rest are a palette for the next piece.
The test now asks BOTH VOICES FOR NOTE 60 and gets an octave, because
their patches differ in one parameter and the lower is loaded first. A
device where a patch was global would have the second overwrite the first
and the two would answer in unison. Verified with break.sh: loading both
patches onto one channel flips the octave onto the wrong voice and the
ratio inverts to 0.499.
The test patches carry a release, and that was measured rather than
assumed: without one the first voice's note was still fading into the
second voice's window, which read 634 hertz - not a note, not an octave,
and a reminder that a crossing counter given two notes answers with
neither.
Play.sbx went 379 -> 740 bytes, which is four patches of 47 pairs each,
and is why ten recordings moved. makedisks.sh needed the Sounds include
path that Lander's line already had.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E2JrLzFvuFX9fgi1LDRjrW
51 lines
1.3 KiB
JSON
51 lines
1.3 KiB
JSON
{
|
|
"osc0_waveform": 4,
|
|
"osc0_dutyCycle": 0.700000,
|
|
"osc0_detune": 0.000000,
|
|
"osc0_gain": 3.500000,
|
|
"osc0_active": 1,
|
|
"osc0_octave": 0,
|
|
"osc0_modRouting0": 0,
|
|
"osc0_modRouting1": 0,
|
|
"osc0_modRouting2": 0,
|
|
"osc0_modDepth0": 0.000000,
|
|
"osc0_modDepth1": 0.000000,
|
|
"osc0_modDepth2": 0.000000,
|
|
"osc1_waveform": 4,
|
|
"osc1_dutyCycle": 0.700000,
|
|
"osc1_detune": 3.000000,
|
|
"osc1_gain": 1.500000,
|
|
"osc1_active": 1,
|
|
"osc1_octave": 1,
|
|
"osc1_modRouting0": 0,
|
|
"osc1_modRouting1": 0,
|
|
"osc1_modRouting2": 2,
|
|
"osc1_modDepth0": 0.000000,
|
|
"osc1_modDepth1": 0.000000,
|
|
"osc1_modDepth2": 1.000000,
|
|
"ampEnv_attack": 0.001000,
|
|
"ampEnv_decay": 0.700000,
|
|
"ampEnv_sustain": 0.000000,
|
|
"ampEnv_release": 0.060000,
|
|
"modEnv_attack": 0.000000,
|
|
"modEnv_decay": 0.060000,
|
|
"modEnv_sustain": 0.000000,
|
|
"modEnv_release": 0.030000,
|
|
"lfo0_rate": 1.000000,
|
|
"lfo0_waveform": 0,
|
|
"lfo0_active": 0,
|
|
"lfo1_rate": 1.000000,
|
|
"lfo1_waveform": 0,
|
|
"lfo1_active": 0,
|
|
"filter_cutoff": 9000.000000,
|
|
"filter_resonance": 0.120000,
|
|
"filter_type": 0,
|
|
"filter_active": 1,
|
|
"filter_modRouting": 2,
|
|
"filter_modDepth": 5000.000000,
|
|
"filter_resModRouting": 0,
|
|
"filter_resModDepth": 0.000000,
|
|
"master_volume": 0.750000,
|
|
"master_pitchBendRange": 0.000000
|
|
}
|