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>
This commit is contained in:
Reactorcoremeltdown
2026-11-17 20:30:06 +01:00
co-authored by Claude Opus 5.5
parent cdabf3018b
commit 634dd05486
7 changed files with 29 additions and 2 deletions
@@ -11,6 +11,9 @@ import UIKit
/// 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).
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 channel: Int
let octave: Int
@@ -66,6 +69,9 @@ struct ToolboxKeyboard: View {
/// SlotAuditionKeyboard: an OCT stepper over two octaves that play one toolbox slot
/// directly (the instrument editors pin it under their controls).
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
@State private var octave = 3