MIDI trace, spaced block names survive save/load, clearer clock-receive text (v0.29.1)

- input/MidiTrace: optional (setprop log.tag.SizzleMidiTrace VERBOSE) log of
  every received packet with lateness and every note handed to the engine
  with the mixer strips it reaches; flags Sizzle's own transport playing and
  clock Start/Stop acting on it. AudioEngine.describeBusTargets backs it.
- ProjectIo percent-encodes spaces/%/] in [PATTERN name=...], so "C1 muted"
  no longer comes back as "C1"; old files load unchanged.
- "Receive MIDI clock" explains that it starts Sizzle's own song, which then
  plays along with incoming notes (the cause of "mutes don't work / only C2"
  reports when used as a sound module with an imported Mikro Seq song).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Reactorcoremeltdown
2026-11-12 23:00:39 +01:00
co-authored by Claude Opus 5.5
parent df64af8c9b
commit 3c248028c9
10 changed files with 184 additions and 10 deletions
+16
View File
@@ -207,6 +207,7 @@ cc.tiredsysadmin.android.sizzle
│ ├── MidiByteParser.kt MIDI byte stream -> messages (running status, split packets, realtime, SysEx)
│ ├── MidiClock.kt MIDI clock send / follow
│ ├── MidiSourceKey.kt Stable key + display name for a MIDI source (persisted on/off choice)
│ ├── MidiTrace.kt Optional receive/engine trace (setprop log.tag.SizzleMidiTrace VERBOSE)
│ └── MidiInput.kt Lists/opens MIDI sources (USB, BLE, other apps' virtual ports), reconnects dead ones -> MidiSoundModule / CC bindings
│
├── audio/ The real-time sound engine (own thread)
@@ -368,6 +369,21 @@ one is treated as dead too (events within 1 s of our own open/close are ignored)
USB and Bluetooth sources are not probed: Android reports their removal.
`MidiInput` logs connects/reconnects under the `SizzleMidi` tag.
**Tracing (0.29.1).** `input/MidiTrace` logs, when switched on with
`adb shell setprop log.tag.SizzleMidiTrace VERBOSE` (re-read every 500 ms, free
when off), every received packet (`recv <source> [bytes] <decoded> late=…ms`), each
note handed to the engine with the strips it reaches (`AudioEngine.describeBusTargets`:
"strip1 SAMPLER pad3", "no strip on channel 10", "pad empty (silent)") and a
`[Sizzle transport PLAYING]` flag, and clock Start/Stop acting on the transport.
Mikro Seq's debug builds log what they send under `MidiOut`, so
`adb logcat -s MidiOut SizzleMidiTrace` lines the two up. Checked this way on the
Android 15 emulator (Mikro Seq 0.13.0): 666 note messages, sent = received byte for
byte and in order, median 0.6 ms late; 243 notes over 20 s all balanced; muting a
Mikro Seq track stops its notes at the sender. The trap found: with "Receive MIDI
clock" on, Mikro Seq's Start also starts Sizzle's *own* sequencer, so a song
imported from Mikro Seq plays along with the live notes, and Mikro Seq's mutes can't
reach it.
**Verifying.** With the setting on and the app backgrounded, `adb shell dumpsys
activity processes` must not show `isFrozen=true` for the Sizzle process, and
another app's notes must keep sounding. Opening a virtual port binds the other