Looper: MIDI-mappable transport; clean-through + Playback balance
MIDI: add looperStop / looperCueStop / looperReverse PedalActionKind cases and dispatch them (stopPlayback / toggleStopAtLoopEnd / toggleReverse). The MIDI mapping sheet now lists Record / Stop / Cue Stop / Reverse / Reset as Program-Change-mappable switch actions for each looper pedal (previously only Bypass was surfaced). Mix: the clean guitar now always passes through at full level and the loop bank is summed on top (dry + loop·gate) instead of crossfading dry against the loop. The Playback knob therefore sets the looped-vs-live balance. Hide the confusing wet/dry Mix knob for the looper via a new Pedal.showsMixControl (mix stays fully wet); other pedals are unaffected. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -118,6 +118,22 @@ public struct MIDIMappingSheet: View {
|
||||
id: "sw-pb-\(pedal.id)",
|
||||
action: .pedalBypass(pedalID: pedal.id),
|
||||
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)] = [
|
||||
("rec", "Record", .looperRecordStop),
|
||||
("stop", "Stop", .looperStop),
|
||||
("cue", "Cue Stop", .looperCueStop),
|
||||
("rev", "Reverse", .looperReverse),
|
||||
("reset", "Reset", .looperReset),
|
||||
]
|
||||
for (slug, name, kind): (String, String, MIDIMap.PedalActionKind) in looperActions {
|
||||
rows.append(SwitchRowModel(
|
||||
id: "sw-la-\(slug)-\(pedal.id)",
|
||||
action: .pedalAction(pedalID: pedal.id, kind: kind),
|
||||
label: "\(board.label) · \(pedal.displayName) · \(name)"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return rows
|
||||
|
||||
Reference in New Issue
Block a user