A RANDOM button in the preset bar of the Synth, Morph Pad, Grain Cloud,
Wavetable and Ambience Reverb editors: it rolls a playable patch and names it.
The rules live in core/src/model/Randomizer.cpp and are shared, so a seed gives
the same patch on both platforms. Android reaches it over JNI as preset text and
imports it; iOS writes the Params into the slot. Neither touches the slot's own
files — a loaded sample or an imported wavetable survives a roll, because the
dice are for the settings, not for the sounds.
Scattering values over the parameter ranges produces silence and the occasional
scream, so the rules encode three things instead: something always sounds (a
layer is always up, an envelope that decays to nothing gets a body, a filter is
never shut, a reverb is never fully dry); levels share a budget and resonance,
drive and saturation stay out of the range where a patch screams; and tunings
come from consonant intervals rather than a uniform draw.
core/tests/randomizer_test.cpp is the specification: it renders every device over
hundreds of seeds through the real voice and fails on anything out of range,
silent, clipping or non-finite. Every bound that looks arbitrary was put there by
a seed it caught — a band-pass parked above the note (peak 0.010 against a 0.3
median), a Vel -> Cutoff mod slot closing the filter (0.41 -> 0.02), a choir-only
Morph Pad through its own band-pass, and MORPH TO, which a roll now leaves alone
because MORPH TIME carries a held note all the way onto a factory drone at a
level the randomizer never chose (1.33 with every layer of its own at zero).
--dump <TYPE> <seed> [key=value ...] re-renders one roll with overrides, which is
how each of those was found.
Also fixes the shared engine not compiling outside Apple's toolchain: a missing
<cstdint> in core/include/sizzle/Model.hpp. No change to the apps, but the
engine's tests and benchmark now build with GCC too — which is how the rules
above were iterated while the Mac was unreachable.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Nothing user-visible changes, except that the Android app is half the size and
both are lighter on the battery.
R8 is on for release builds (21.5 MB -> 10.1 MB); only the two JNI classes are
pinned by name, since the app reflects over nothing of its own, and `make dist`
keeps the mapping beside the APK. The Kotlin DSP that core/ replaced in 0.37.0
was still compiled into every APK with nothing calling it — it moves to the test
source set, where it belongs as the reference the C++ is checked against — and
the golden tests' TestVoice wrappers leave core/src for core/tests/voices, so
neither app compiles them either.
Speed: channel gain, mute/solo and the FX chain are read once per audio block
instead of once per frame in Engine::fillBlock (both platforms, bit-identical —
all 61 reference scenarios still match); the transport pollers idle at 100 ms
(Android) and 10 Hz (iOS) instead of polling flat out while a song is stopped,
woken by any transport call; ProjectIo.save builds into one pre-sized buffer and
a burst of edits is coalesced into one engine sync; the Kotlin grain sources and
factory wavetables are built when their editor opens rather than at launch, where
they duplicated ~6 MB the engine already renders in core/; and Xcode builds the
DSP core at -O2, the level the golden tests measure, not -Os.
Fix: `make lint` failed on a manifest asking for ACCESS_FINE_LOCATION without
ACCESS_COARSE_LOCATION (the BLE MIDI scan on Android 8-11), so `make check`
passes again.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The Mix record bar, the Sampler waveform page, the LFO target picker and the
audition keyboards read the session but had no changing inputs, so SwiftUI
skipped redrawing them until something else (rotation) forced it. They now
observe MixSongWatch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings › Interface: Android sets FLAG_KEEP_SCREEN_ON on the window, iOS turns
the idle timer off; persisted (and in iOS backups).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Sampler parameter oneShot (Off/On): note-offs don't release its pads; they
play their whole slice. Transport stop/pause still releases (SampleVoice::
release), panic kills
- Engine in core/ and the Kotlin reference both implement it; the golden
Sampler "high" scenario covers it; oneshot_test checks MIDI, song, stop, panic
- ONE-SHOT toggle in both apps' Sampler editors; specs and layouts regenerated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
iOS couldn't import Android's Sampler preset bundle (a ZIP with the .szp and
its WAVs) and shared sample presets as bare text naming iOS sample ids.
- core/src/io/PresetBundle: import/export in Android's bundle layout
(padNFile / sfFile), used by iOS IMPORT and SHARE
- bundle_test imports a bundle written by Android's PresetLibrary
(IosGoldenPresetBundle); PresetBundleInteropTest imports the iOS-written
fixture with Android's importZip
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- SIZZLE-MIDIMAP 1 format: TYPE, NAME, one parameter=CC line each
- core/src/io/MidiMapIo (iOS) and io/MidiMapIo.kt (Android), tested on one
shared fixture (midimap_test, MidiMapIoTest)
- EXPORT / IMPORT in each device's MIDI learn panel on both platforms
- Params::remove; iOS clears a mapping by removing it
- ios/Makefile regenerates the Xcode project when source folders change
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Android: BleMidi scans for the BLE MIDI service, connects through
MidiManager.openBluetoothDevice, remembers and reconnects controllers;
Settings › MIDI inputs › Bluetooth MIDI (Scan / Connect / Disconnect / Forget)
- iOS: the system Bluetooth MIDI panel from Setup › MIDI Sync, connected
controllers remembered and reconnected at launch via CoreBluetooth
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Master recording (MasterSink ring + writer thread) and the sample recorder
- CoreMIDI in/out: sound module, clock send/follow, virtual "Sizzle" ports;
platform-free parser/module/clock in core (midi_test)
- Hardware keyboard and gamepads via GameController; rebindable keyboard,
gamepad and MIDI CC actions; per-parameter MIDI learn
- Colour themes (.szt), project bundles (.szgz), backup & restore;
ZIP in core with zlib (zip_test against jar and unzip)
- Persistent app settings; audio pauses in the background unless sound module
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Effect visualisation through the C++ effect, engine and AU; custom wavetables and
grain sources load and persist with the song; the app's slot editor hosts the
file picker for bespoke views.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ported from the Android tabs by parallel agents (each screen with its own
SizzleSession category); slot editors use the card editor with a preset
library; songs load/save in the Android project format.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SizzleSession owns the song, engine (192-frame chunks, try-lock on the audio
thread), samples and audio output; AppModel/RootView give the four tabs;
DeviceModel now works on toolbox slots too; make screen-snapshots renders the
app's tabs on the Mac.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>