Add an "off" block to the arrangement, with an OFF toolbar button (v0.27.0)
An arrangement slot can now hold Arrangement.NOTE_OFF instead of a block id.
When the playhead reaches one, every track of that lane is released — the
arrangement-level equivalent of a column of note-off cells, for cutting a held
pad or a looping sample without editing the block that started it.
The OFF button sits between FILL and the A/B region controls and writes markers
across the current selection, toggling them away if they are all markers
already. Its label stays "OFF" rather than flipping to CLEAR the way FILL does:
a marker is also "filled", so FILL already reads CLEAR for it, and two adjacent
CLEAR buttons was genuinely confusing on screen. Markers draw in the palette's
`danger` red so they never read as another block.
The note-off branch of triggerCell is factored out into releaseTrack(), so the
marker and a note-off cell release identically — including the whole mixer bus
rather than just that column's voices, which is the existing cell's documented
behaviour and not something worth diverging from here.
Two things the sentinel broke that are easy to miss:
- The project writer filtered arrangement slots with `pid >= 0`, so a marker
saved silently and came back empty. Both formats now carry it: .szg writes
the value as-is, and .sng gets an 'x' alongside '#'/'.'. 'x' is an extension
to the interchange format — a reader that only knows '#' treats it as empty,
losing the marker but never mis-parsing the roll.
- A marker is NOT empty, so the run walk-back in triggerArrangementLine would
have treated it as part of a contiguous run and played the following block
from the wrong beat. It is now a boundary (Arrangement.hasBlockAt), and a
block after a marker restarts from its first beat. It still counts towards
lastFilledBeat, so playback runs up to it.
Tests cover both round-trips, graceful degradation of an unknown roll
character, and the filled-but-not-a-block distinction. Checked on an emulator
that the button appears and toggles, the marker draws red and distinct from a
block, it survives a background/restore autosave cycle, and playback crosses it
without incident.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
68e9ed8b41
commit
bcec71597d
+2
-2
@@ -8,8 +8,8 @@
|
||||
# or polish. android.versionCode is monotonic and bumps by 1 on every release,
|
||||
# because F-Droid and the Android package manager order installs by it alone.
|
||||
|
||||
android.versionName = 0.26.0
|
||||
android.versionCode = 55
|
||||
android.versionName = 0.27.0
|
||||
android.versionCode = 56
|
||||
|
||||
# No desktop builds exist yet. These lines are the agreed slots so a port starts
|
||||
# with a version instead of inventing one; `-` means "not built on this
|
||||
|
||||
Reference in New Issue
Block a user