Looper: MIDI-mappable A/B/C/D track taps
Add looperTrack(index:) PedalActionKind dispatched to LooperPedal.tapTrack, and Track A–D rows in the MIDI mapping sheet (one per track, up to trackCount). A mapped switch/Program Change taps the dot — selecting the track, or muting it when it's already selected and recorded — matching the timeline dots. Covered by pedalActionTapsLooperTrack. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -120,7 +120,7 @@ public struct MIDIMappingSheet: View {
|
||||
label: "\(board.label) · \(pedal.displayName) · Bypass"))
|
||||
// Loopers expose their transport footswitches as mappable switch actions.
|
||||
if pedal is LooperPedal {
|
||||
let looperActions: [(String, String, MIDIMap.PedalActionKind)] = [
|
||||
var looperActions: [(String, String, MIDIMap.PedalActionKind)] = [
|
||||
("rec", "Record", .looperRecordStop),
|
||||
("stop", "Stop", .looperStop),
|
||||
("cue", "Cue Stop", .looperCueStop),
|
||||
@@ -128,6 +128,11 @@ public struct MIDIMappingSheet: View {
|
||||
("sync", "Sync", .looperSyncToggle),
|
||||
("reset", "Reset", .looperReset),
|
||||
]
|
||||
// A/B/C/D track taps (select / mute), matching the timeline dots.
|
||||
for i: Int in 0 ..< LooperPedal.trackCount {
|
||||
let letter: String = LooperPedal.trackLabel(i)
|
||||
looperActions.append(("track\(letter)", "Track \(letter)", .looperTrack(index: i)))
|
||||
}
|
||||
for (slug, name, kind): (String, String, MIDIMap.PedalActionKind) in looperActions {
|
||||
rows.append(SwitchRowModel(
|
||||
id: "sw-la-\(slug)-\(pedal.id)",
|
||||
|
||||
Reference in New Issue
Block a user