iOS 0.6.0: milestone 5 (recording, MIDI, input bindings, themes, bundles, backups)

- 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>
This commit is contained in:
Reactorcoremeltdown
2026-11-16 14:26:01 +01:00
co-authored by Claude Opus 5.5
parent 435305e42a
commit 64e21e0bcc
54 changed files with 3303 additions and 97 deletions
+10 -1
View File
@@ -7,6 +7,8 @@ import SwiftUI
/// portrait and a side rail in landscape, as the Android app's App.kt lays them out.
struct RootView: View {
@ObservedObject private var app: AppModel
/// The whole tree is rebuilt when the theme changes (Theme is read, not observed).
@ObservedObject private var settings = AppSettings.shared
init(model: AppModel? = nil) { app = model ?? AppModel.main }
@Environment(\.scenePhase) private var phase
@Environment(\.verticalSizeClass) private var vClass
@@ -24,8 +26,15 @@ struct RootView: View {
.background(Theme.background.ignoresSafeArea())
}
.environmentObject(app)
.id(settings.paletteName)
.preferredColorScheme(.dark)
.onChange(of: phase) { p in if p != .active { app.session.autosave() } }
.onChange(of: phase) { p in
switch p {
case .background: AppBoot.background()
case .active: AppBoot.foreground()
default: app.session.autosave()
}
}
}
@ViewBuilder private var screen: some View {