0.39.0 (73): export and import MIDI mappings as .szm text (Android and iOS)
- SIZZLE-MIDIMAP 1 format: TYPE, NAME, one parameter=CC line each - core/src/io/MidiMapIo (iOS) and io/MidiMapIo.kt (Android), tested on one shared fixture (midimap_test, MidiMapIoTest) - EXPORT / IMPORT in each device's MIDI learn panel on both platforms - Params::remove; iOS clears a mapping by removing it - ios/Makefile regenerates the Xcode project when source folders change Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
4d9e2328cb
commit
6688718bed
@@ -158,7 +158,7 @@ final class InputController: ObservableObject {
|
||||
|
||||
func paramCc(slot: Int, key: String) -> Int? { Int(session.value(ofSlot: slot, key: Self.ccPrefix + key)) }
|
||||
|
||||
func clearParamCc(slot: Int, key: String) { session.setValue("", ofSlot: slot, key: Self.ccPrefix + key) }
|
||||
func clearParamCc(slot: Int, key: String) { session.removeValue(ofSlot: slot, key: Self.ccPrefix + key) }
|
||||
|
||||
private func onRaw(_ source: InputSource, _ code: Int, _ value: Float, _ modifier: Int) {
|
||||
if let key = paramLearnKey {
|
||||
@@ -187,6 +187,7 @@ final class InputController: ObservableObject {
|
||||
clearParamCc(slot: s, key: spec.key)
|
||||
}
|
||||
}
|
||||
// (Same rule as MidiMapIo.apply: one control drives one parameter.)
|
||||
session.setValue(String(cc), ofSlot: slot, key: Self.ccPrefix + key)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user