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:
co-authored by
Claude Opus 5.5
parent
bf5f2b53af
commit
8d85b14a67
@@ -0,0 +1,30 @@
|
||||
// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#pragma once
|
||||
|
||||
// Port of audio/GrainSources.kt: the Grain Cloud's ten built-in sources,
|
||||
// synthesised in code (about six seconds each at RATE, mono, pitched on C).
|
||||
// Generated off the audio thread: prewarm() renders them on a background thread
|
||||
// (once), prewarmBlocking() renders them on the calling thread (tests). get()
|
||||
// never blocks and returns nullptr until a source is ready.
|
||||
|
||||
#include "Sample.hpp"
|
||||
|
||||
namespace sizzle::echofield::GrainSources {
|
||||
|
||||
constexpr int RATE = 24000;
|
||||
constexpr int COUNT = 10;
|
||||
|
||||
/** The source named [name] (EchofieldDefs SOURCES[0..9]) once rendered, else nullptr. */
|
||||
const Sample *get(const char *name);
|
||||
/** By index into the built-in list, or nullptr (not ready / out of range). */
|
||||
const Sample *get(int index);
|
||||
/** Index of the built-in source [name], or -1. */
|
||||
int indexOf(const char *name);
|
||||
|
||||
/** Render every source on a detached background thread (once). */
|
||||
void prewarm();
|
||||
/** Render every source not yet rendered, now, on this thread. */
|
||||
void prewarmBlocking();
|
||||
|
||||
} // namespace sizzle::echofield::GrainSources
|
||||
Reference in New Issue
Block a user