Compare commits

..
5 Commits
Author SHA1 Message Date
ReactorcoremeltdownandClaude Opus 5 67f7231ea6 CHANGELOG: resolve the conflict markers left in the 0.41.1 entries
The merge e78b2c1 committed <<<<<<< / ======= / >>>>>>> into both changelogs:
two different 0.41.1 entries met there — the iOS redraw fix (634dd05) and the
cleanup and optimisation round (dd04a61) — and neither side was picked. Only the
two markdown files were affected, so nothing built differently.

Both entries are kept under the one heading, since both shipped as 0.41.1.

Note for whoever owns the numbering: 634dd05 and dd04a61 both claim versionCode
77. The private F-Droid repo is still serving 0.41.0 (76), so nothing is
published under either and it is still fixable; versionCode has to be unique and
monotonic (handover §2.2), because F-Droid and the package manager order installs
by that integer alone. 0.42.0 is 78 and unaffected either way.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-18 20:56:22 +01:00
ReactorcoremeltdownandClaude Opus 5 0d6ed4694f 0.42.0 (78): preset randomizer for five devices (Android and iOS)
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>
2026-11-18 20:55:23 +01:00
Reactorcoremeltdown e78b2c1418 Merge branch 'main' of git.rcmd.space:tiredsysadmin/sizzletracker-android 2026-11-18 10:37:34 +01:00
ReactorcoremeltdownandClaude Opus 5 c1758637df bench: measure what the insert-FX chain costs, and drop the block-rate idea
`make -C ios bench` renders four channels of synth with 0/1/2/4 effects each,
times every effect on its own, and compares a ten-biquad cascade three ways. It
asserts nothing, so it stays out of core-test; no shipped code changes (the file
is under core/tests, which neither app compiles).

What it says, on an M4 at -O2. Per-sample virtual dispatch — listed in the
handover as a thing to fix — costs 0.11 ns of 9.13 ns per sample, about 1%: the
indirect branch is predicted and amortises over the effect's own work. The
obvious block restructuring is a 162% regression, because running band-at-a-time
over a block sends the running value through memory ten times per sample instead
of keeping it in a register across the cascade. So that idea is recorded as
measured and closed, rather than left as an invitation.

Where the cost actually is: Ambience, 52% of all eight effects together
(65.9 ns/sample, 3.5x Tape Delay). A full chain is ~77% of render time, and
three-quarters of that is Ambience. Not urgent — four channels of four effects
still render at 42x real time.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-18 10:32:04 +01:00
ReactorcoremeltdownandClaude Opus 5 dd04a61e22 0.41.1 (77): cleanup and optimisation round (Android and iOS)
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>
2026-11-18 10:21:09 +01:00
3 changed files with 5 additions and 11 deletions
+2 -5
View File
@@ -5,7 +5,7 @@ version in `versions.properties`; versions before 0.28.0 are described in the gi
log (one commit per version). Since 0.37.0 Android and iOS share one version and log (one commit per version). Since 0.37.0 Android and iOS share one version and
one feature set; the iOS side of each version is in `ios/CHANGELOG.md`. one feature set; the iOS side of each version is in `ios/CHANGELOG.md`.
## 0.42.0 (versionCode 79) ## 0.42.0 (versionCode 78)
- **RANDOM:** the Synth, Morph Pad, Grain Cloud, Wavetable and Ambience Reverb - **RANDOM:** the Synth, Morph Pad, Grain Cloud, Wavetable and Ambience Reverb
editors have a RANDOM button in the preset bar. It throws a new patch into the editors have a RANDOM button in the preset bar. It throws a new patch into the
@@ -22,7 +22,7 @@ one feature set; the iOS side of each version is in `ios/CHANGELOG.md`.
`<cstdint>` in `core/include/sizzle/Model.hpp`. No change to the apps; it means `<cstdint>` in `core/include/sizzle/Model.hpp`. No change to the apps; it means
the engine's tests and benchmark now build with GCC too. the engine's tests and benchmark now build with GCC too.
## 0.41.2 (versionCode 78) ## 0.41.1 (versionCode 77)
Housekeeping and speed; nothing you can see changes, except that the app is Housekeeping and speed; nothing you can see changes, except that the app is
half the size and lighter on the battery. half the size and lighter on the battery.
@@ -54,9 +54,6 @@ half the size and lighter on the battery.
- Fix: `make lint` failed on a manifest that asked for `ACCESS_FINE_LOCATION` - Fix: `make lint` failed on a manifest that asked for `ACCESS_FINE_LOCATION`
without `ACCESS_COARSE_LOCATION` (the BLE MIDI scan on Android 8–11). Both are without `ACCESS_COARSE_LOCATION` (the BLE MIDI scan on Android 8–11). Both are
declared and both are requested now, so `make check` passes again. declared and both are requested now, so `make check` passes again.
## 0.41.1 (versionCode 77)
- No Android change: an iOS redraw fix (see `ios/CHANGELOG.md`). - No Android change: an iOS redraw fix (see `ios/CHANGELOG.md`).
## 0.41.0 (versionCode 76) ## 0.41.0 (versionCode 76)
+2 -5
View File
@@ -5,7 +5,7 @@ Sizzle for iOS/iPadOS (`cc.tiredsysadmin.ios.sizzle`). One entry per version in
is shared with Android, continuing Android's numbering, and both apps ship the is shared with Android, continuing Android's numbering, and both apps ship the
same features; the Android side of each version is in `../CHANGELOG.md`. same features; the Android side of each version is in `../CHANGELOG.md`.
## 0.42.0 (build 79) ## 0.42.0 (build 78)
- RANDOM: the Synth, Morph Pad, Grain Cloud, Wavetable and Ambience Reverb - RANDOM: the Synth, Morph Pad, Grain Cloud, Wavetable and Ambience Reverb
editors have a RANDOM button in the preset bar, which rolls a new patch and editors have a RANDOM button in the preset bar, which rolls a new patch and
@@ -16,7 +16,7 @@ same features; the Android side of each version is in `../CHANGELOG.md`.
same seeds as Android, from `core/src/model/Randomizer.cpp`. same seeds as Android, from `core/src/model/Randomizer.cpp`.
(Android has the same in 0.42.0.) (Android has the same in 0.42.0.)
## 0.41.2 (build 78) ## 0.41.1 (build 77)
Housekeeping and speed; nothing you can see changes. Housekeeping and speed; nothing you can see changes.
@@ -37,9 +37,6 @@ Housekeeping and speed; nothing you can see changes.
- **Dead code gone.** The golden tests' `TestVoice` wrappers were compiled into - **Dead code gone.** The golden tests' `TestVoice` wrappers were compiled into
the app and the plugin extension although only `golden_test` calls them; they the app and the plugin extension although only `golden_test` calls them; they
have moved to `core/tests/voices/`. A couple of unused declarations went too. have moved to `core/tests/voices/`. A couple of unused declarations went too.
## 0.41.1 (build 77)
- Fix: some controls only showed their new state after something else redrew - Fix: some controls only showed their new state after something else redrew
the screen (rotating the iPad): the Mix tab's ● ARM / TAIL / SHARE bar, the the screen (rotating the iPad): the Mix tab's ● ARM / TAIL / SHARE bar, the
Sampler's slice markers, the LFO's target and the audition keyboards. They now Sampler's slice markers, the LFO's target and the audition keyboards. They now
+1 -1
View File
@@ -13,7 +13,7 @@
# because F-Droid and the Android package manager order installs by it alone. # because F-Droid and the Android package manager order installs by it alone.
versionName = 0.42.0 versionName = 0.42.0
versionCode = 79 versionCode = 78
# Namespace for every platform: cc.tiredsysadmin.<os>.sizzle. Android: # Namespace for every platform: cc.tiredsysadmin.<os>.sizzle. Android:
# cc.tiredsysadmin.android.sizzle (app/), iOS/iPadOS: cc.tiredsysadmin.ios.sizzle # cc.tiredsysadmin.android.sizzle (app/), iOS/iPadOS: cc.tiredsysadmin.ios.sizzle