From 4d9e2328cb46edbdcd9289fe7cf7dbf034b5be80 Mon Sep 17 00:00:00 2001 From: Reactorcoremeltdown Date: Mon, 16 Nov 2026 14:57:53 +0100 Subject: [PATCH] 0.38.0 (72): Bluetooth LE MIDI controllers in Settings (Android and iOS) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- CHANGELOG.md | 9 + app/src/main/AndroidManifest.xml | 11 +- .../tiredsysadmin/android/sizzle/SizzleApp.kt | 11 +- .../android/sizzle/input/BleMidi.kt | 230 ++++++++++++++++++ .../android/sizzle/io/SettingsStore.kt | 12 + .../android/sizzle/ui/AppViewModel.kt | 3 + .../sizzle/ui/settings/SettingsScreen.kt | 83 +++++++ docs/DEVELOPER_HANDOVER.md | 21 ++ ios/CHANGELOG.md | 8 + ios/Makefile | 2 +- ios/app/Host/AppBoot.swift | 1 + ios/app/Host/AppSettings.swift | 17 +- ios/app/Host/BluetoothMidi.swift | 96 ++++++++ ios/app/Host/Info.plist | 2 + ios/app/Host/Screens/Setup/SetupCards.swift | 34 +++ .../Host/Screens/Setup/SetupPlatform.swift | 35 +++ ios/app/project.yml | 2 + versions.properties | 4 +- 18 files changed, 574 insertions(+), 7 deletions(-) create mode 100644 app/src/main/java/cc/tiredsysadmin/android/sizzle/input/BleMidi.kt create mode 100644 ios/app/Host/BluetoothMidi.swift diff --git a/CHANGELOG.md b/CHANGELOG.md index 548fdea..b4a61a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ 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 one feature set; the iOS side of each version is in `ios/CHANGELOG.md`. +## 0.38.0 (versionCode 72) + +- **Bluetooth LE MIDI controllers:** Settings › MIDI Sync › MIDI inputs has a + Bluetooth MIDI section. SCAN looks for BLE MIDI controllers for 15 s (asking for + the Bluetooth permission the first time), CONNECT opens one, and from then on it + is one of the MIDI inputs: listed, switchable and played on the mixer tracks of + its channel. Connected controllers are remembered and connected again at every + start until FORGET. (iOS has the same in 0.38.0.) + ## 0.37.0 (versionCode 71) - **One engine for Android and iOS:** Android now plays through the shared C++ diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 2dc24f4..a80539b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -7,12 +7,20 @@ FOREGROUND_SERVICE : keep the sequencer alive while the app is backgrounded. FOREGROUND_SERVICE_MEDIA_PLAYBACK : Android 14 requires a typed FGS. POST_NOTIFICATIONS : show the media transport notification (Android 13+). - BLUETOOTH_CONNECT : Bluetooth MIDI + gamepad on Android 12+. --> + BLUETOOTH_CONNECT : Bluetooth MIDI + gamepad on Android 12+. + BLUETOOTH_SCAN : finding BLE MIDI controllers (Settings › MIDI inputs) on + Android 12+; never used to derive location. + BLUETOOTH / _ADMIN / ACCESS_FINE_LOCATION : the same scan on Android 8-11. --> + + + + @@ -20,6 +28,7 @@ +