0.37.0 (71): one engine, one version for Android and iOS

- Three source trees: core/ (shared C++ engine, moved from ios/core),
  app/ (Android UI), ios/app/ (iOS UI)
- Android plays through core/ via JNI (EngineHost, jni_engine.cpp): the Oboe
  callback renders natively; the Kotlin model is mirrored as project text and
  applied as a diff, so playback continues through edits
- The Kotlin engine moves to the unit tests as ReferenceEngine (golden reference)
- Shared MasterRecorder in core/src/host, used by both apps; host_test
- versions.properties: one versionName/versionCode for both platforms,
  continuing Android's numbering (iOS 0.6.0/11 -> 0.37.0/71)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Reactorcoremeltdown
2026-11-16 14:49:46 +01:00
co-authored by Claude Opus 5.5
parent 64e21e0bcc
commit 2bc5cb1cbb
107 changed files with 2921 additions and 1880 deletions
+6 -6
View File
@@ -7,9 +7,9 @@ Makefile (`make -C ios help`).
| Path | What it is |
|---|---|
| `core/` | The C++ DSP core: a port of the Android app's Kotlin DSP |
| `core/include/sizzle/DeviceSpecs.gen.hpp` | Every device's parameters, generated from `ToolboxType` (Kotlin) |
| `core/tests/golden_test.cpp` | Compares the core with audio the Kotlin code renders |
| `../core/` | The shared C++ engine (Android plays through it too): a port of the Android app's Kotlin DSP |
| `../core/include/sizzle/DeviceSpecs.gen.hpp` | Every device's parameters, generated from `ToolboxType` (Kotlin) |
| `../core/tests/golden_test.cpp` | Compares the core with audio the Kotlin code renders |
| `app/components.txt` | The plugin list (AU type, subtype, device, name) |
| `app/FX/` | The plugin extension: `SizzleDeviceAU` (shared: parameters, presets, state), `SizzleEffectAU` (aufx), `SizzleInstrumentAU` (aumu), `SizzleFXViewController` (factory + editor). The app compiles the same classes to host them itself |
| `app/Host/SizzleSession*` | The bridge to the C++ song + engine (audio output, song lock, live-note queue); one category per screen |
@@ -21,7 +21,7 @@ Makefile (`make -C ios help`).
| `tools/gen_components.py` | `components.txt` → the extension's Info.plist and `Components.gen.h` |
| `spike/` | The TrollStore AUv3 feasibility spike (see the end of this file) |
Versions: `ios.versionName` / `ios.versionCode` in `../versions.properties`
Versions: `versionName` / `versionCode` in `../versions.properties`, shared with Android
(`make -C ios bump-minor` etc.); the .ipa is named by versionCode. Changes are
listed in `CHANGELOG.md` here.
@@ -35,7 +35,7 @@ test in the Android app, skipped by the normal `make check`), which:
- renders a fixed 1.5 s test signal (decaying saw burst, noise, sine sweep,
silences for tails) through every effect at its defaults and two variants that
move every parameter (the Mix Tightener uses three of its presets instead), into
`core/golden/` (not committed; regenerate any time).
`../core/golden/` (not committed; regenerate any time).
`make core-test` renders the same scenarios through the C++ core and requires a
largest difference below 1e-4. Today all 25 pass; most are bit-exact, the rest
@@ -44,7 +44,7 @@ differ by about one float ulp. Porting rules that make this possible:
- translate line for line, keeping Kotlin's types: `Float` → `float`,
`Double` → `double`, so every expression runs in the same precision;
- `kotlin.math` on a Float goes through Java's double `Math` and rounds back:
use the helpers in `core/src/fx/KotlinMath.hpp` (`roundToInt` is floor(x+0.5),
use the helpers in `../core/src/fx/KotlinMath.hpp` (`roundToInt` is floor(x+0.5),
`toInt` truncates and saturates);
- Kotlin `Int` wraps and `ushr` is a logical shift: use `uint32_t` for the
xorshift generators;