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:
co-authored by
Claude Opus 5.5
parent
df64af8c9b
commit
3c248028c9
@@ -0,0 +1,25 @@
|
||||
// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
package cc.tiredsysadmin.android.sizzle.io
|
||||
|
||||
import cc.tiredsysadmin.android.sizzle.model.Project
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Test
|
||||
|
||||
/** Block names with spaces survive the project save/load (the autosave). */
|
||||
class ProjectIoNameTest {
|
||||
|
||||
@Test fun namesWithSpacesAndEscapesRoundTrip() {
|
||||
val names = listOf("C1 muted", "50% ]x", "%20 literal", "plain")
|
||||
val p = Project()
|
||||
names.forEachIndexed { i, n -> p.patterns[i].name = n }
|
||||
val back = ProjectIo.loadInto(Project(), ProjectIo.save(p))
|
||||
assertEquals(names, back.patterns.take(names.size).map { it.name })
|
||||
}
|
||||
|
||||
@Test fun olderFilesWithoutEscapesLoadAsWritten() {
|
||||
assertEquals("50%", ProjectIo.decodeName("50%"))
|
||||
assertEquals("C1", ProjectIo.decodeName("C1"))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user