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
@@ -776,6 +776,29 @@ attack=0.01
|
||||
```
|
||||
Copy/paste from the Toolbox parameter editor uses this exact text.
|
||||
|
||||
### MIDI mapping (`MidiMapIo`, `.szm`, 0.39.0)
|
||||
|
||||
One device's parameter → MIDI CC mapping, exported and imported from the ⇄ MIDI
|
||||
panel. Written and read by `io/MidiMapIo.kt` (Android) and
|
||||
`core/src/io/MidiMapIo` (iOS); both tests read the same fixture,
|
||||
`app/src/test/resources/midimap/filter.szm`.
|
||||
```
|
||||
SIZZLE-MIDIMAP 1
|
||||
# comments start with '#'
|
||||
TYPE=FILTER
|
||||
NAME=Sweep
|
||||
cutoff=74
|
||||
resonance=71
|
||||
```
|
||||
The header and `TYPE` (a `ToolboxType` name) are required; `NAME` is the slot's
|
||||
name, for information. Then one `parameter=CC` line per mapping (CC 0..127), in
|
||||
the device's parameter order. Reading skips anything else, and a repeated
|
||||
parameter or CC keeps its first line. Importing needs the same `TYPE` and
|
||||
replaces the slot's mappings. Parameters the device doesn't have are skipped,
|
||||
and a CC that another parameter (in any slot) used moves to the imported one,
|
||||
because one control drives one parameter. In the song, a mapping is the slot
|
||||
value `midicc@<parameter>`.
|
||||
|
||||
### Interchange `.sng` (`SngFormat`)
|
||||
The desktop sizzletracker format, read the way the desktop reader does it:
|
||||
`block <name...> <length> <numTracks>` (names may contain spaces; the trailing
|
||||
|
||||
Reference in New Issue
Block a user