Compare commits

...
2 Commits
Author SHA1 Message Date
Reactorcoremeltdown e78b2c1418 Merge branch 'main' of git.rcmd.space:tiredsysadmin/sizzletracker-android 2026-11-18 10:37:34 +01:00
ReactorcoremeltdownandClaude Opus 5.5 634dd05486 0.41.1 (77): iOS controls redraw when the song changes
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>
2026-11-17 20:30:06 +01:00
6 changed files with 27 additions and 0 deletions
+4
View File
@@ -7,6 +7,9 @@ one feature set; the iOS side of each version is in `ios/CHANGELOG.md`.
## 0.41.1 (versionCode 77) ## 0.41.1 (versionCode 77)
<<<<<<< HEAD
- No Android change: an iOS redraw fix (see `ios/CHANGELOG.md`).
=======
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.
@@ -37,6 +40,7 @@ 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.
>>>>>>> c1758637df9651f2c6a4ef6296509acb9d774186
## 0.41.0 (versionCode 76) ## 0.41.0 (versionCode 76)
+8
View File
@@ -7,6 +7,13 @@ same features; the Android side of each version is in `../CHANGELOG.md`.
## 0.41.1 (build 77) ## 0.41.1 (build 77)
<<<<<<< HEAD
- 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
Sampler's slice markers, the LFO's target and the audition keyboards. They now
redraw as soon as the song changes. (SwiftUI skipped them because none of their
own inputs changed.)
=======
Housekeeping and speed; nothing you can see changes. Housekeeping and speed; nothing you can see changes.
- **The DSP core is built at `-O2`.** It was `-Os`, which traded the engine's - **The DSP core is built at `-O2`.** It was `-Os`, which traded the engine's
@@ -26,6 +33,7 @@ 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.
>>>>>>> c1758637df9651f2c6a4ef6296509acb9d774186
## 0.41.0 (build 76) ## 0.41.0 (build 76)
+3
View File
@@ -50,6 +50,9 @@ private struct MixBody: View {
/// external MIDI clock Start), the FX tail after the stop, and the last take. Takes /// external MIDI clock Start), the FX tail after the stop, and the last take. Takes
/// are saved in Sizzle's Recordings folder (Files app); SHARE sends the last one. /// are saved in Sizzle's Recordings folder (Files app); SHARE sends the last one.
private struct RecordToolbar: View { private struct RecordToolbar: View {
/// Redraw when the song changes: these inputs alone never change, so SwiftUI
/// would otherwise keep showing the old state.
@ObservedObject private var watch = MixSongWatch.shared
let session: SizzleSession let session: SizzleSession
var body: some View { var body: some View {
@@ -11,6 +11,9 @@ import UIKit
/// mix bus on the keyboard's MIDI channel; out-of-scale keys are dimmed, unless the /// mix bus on the keyboard's MIDI channel; out-of-scale keys are dimmed, unless the
/// channel reaches a Sampler (every pad must stay playable). /// channel reaches a Sampler (every pad must stay playable).
struct ToolboxKeyboard: View { struct ToolboxKeyboard: View {
/// Redraw when the song changes: these inputs alone never change, so SwiftUI
/// would otherwise keep showing the old state.
@ObservedObject private var watch = MixSongWatch.shared
let app: AppModel let app: AppModel
let channel: Int let channel: Int
let octave: Int let octave: Int
@@ -66,6 +69,9 @@ struct ToolboxKeyboard: View {
/// SlotAuditionKeyboard: an OCT stepper over two octaves that play one toolbox slot /// SlotAuditionKeyboard: an OCT stepper over two octaves that play one toolbox slot
/// directly (the instrument editors pin it under their controls). /// directly (the instrument editors pin it under their controls).
struct SlotAuditionKeyboard: View { struct SlotAuditionKeyboard: View {
/// Redraw when the song changes: these inputs alone never change, so SwiftUI
/// would otherwise keep showing the old state.
@ObservedObject private var watch = MixSongWatch.shared
let slot: Int let slot: Int
@State private var octave = 3 @State private var octave = 3
@@ -88,6 +88,9 @@ struct SamplerDetail: View {
/// The selected pad's waveform; drag near a marker to move the slice start / end. /// The selected pad's waveform; drag near a marker to move the slice start / end.
private struct WaveformPage: View { private struct WaveformPage: View {
/// Redraw when the song changes: these inputs alone never change, so SwiftUI
/// would otherwise keep showing the old state.
@ObservedObject private var watch = MixSongWatch.shared
let slot: Int let slot: Int
let pad: Int let pad: Int
@State private var dragging = -1 @State private var dragging = -1
@@ -315,6 +315,9 @@ private struct PresetBar: View {
/// LfoTargetPicker: every numeric parameter of every other filled slot; choosing /// LfoTargetPicker: every numeric parameter of every other filled slot; choosing
/// one makes the LFO drive it (the parameter's value now is the centre). /// one makes the LFO drive it (the parameter's value now is the centre).
private struct LfoTargetPicker: View { private struct LfoTargetPicker: View {
/// Redraw when the song changes: these inputs alone never change, so SwiftUI
/// would otherwise keep showing the old state.
@ObservedObject private var watch = MixSongWatch.shared
let lfo: Int let lfo: Int
private struct Target: Hashable { private struct Target: Hashable {