iOS core: Morph Pad, Wavetable and Grain Cloud ported, bit-exact with Kotlin

Ported by parallel agents against reference renders. The export now records
Kotlin's global voice-seed counters and every factory wavetable's data, and adds
Sampler/SF2 scenarios (not ported yet).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Reactorcoremeltdown
2026-11-15 21:56:33 +01:00
co-authored by Claude Opus 5.5
parent bf5f2b53af
commit 8d85b14a67
23 changed files with 3539 additions and 2 deletions
+12
View File
@@ -29,6 +29,15 @@ struct TestVoiceSetup {
int sampleRate;
float tempoBpm;
double clock0; // FrasilClock.seconds when the scenario started
// kind "SAMPLE": the test sample (mono), its rate and loop points (-1 = none)
const float *sample = nullptr;
int sampleLength = 0;
int sampleRate2 = 0;
int loopStart = -1, loopEnd = -1;
// Kotlin's global seed counters right before the scenario built its voices
// (FrasilVoice, GrainCloud): a SynthVoice's Morph Pad voice takes the next
// Frasil seed, then the FRASIL kind's voice, then the GrainCloud the next grain one.
uint32_t frasilSeeds = 0, grainSeeds = 0;
};
/** kind "SYNTH": SynthVoice with the engine's patch for [setup.type]. */
@@ -39,6 +48,9 @@ std::unique_ptr<TestVoice> makeFrasilTestVoice(const TestVoiceSetup &setup);
std::unique_ptr<TestVoice> makeWaveTestVoice(const TestVoiceSetup &setup);
/** kind "GRAIN": GrainCloud (Grain Cloud), notes owned by live input. */
std::unique_ptr<TestVoice> makeGrainTestVoice(const TestVoiceSetup &setup);
/** kind "SAMPLE": SampleVoice with the engine's voiceSample() settings for
* [setup.type] (SAMPLER: pads by note; SOUNDFONT: sfRoot, envelope, loop). */
std::unique_ptr<TestVoice> makeSampleTestVoice(const TestVoiceSetup &setup);
std::unique_ptr<TestVoice> makeTestVoice(const char *kind, const TestVoiceSetup &setup);