// MIDITransportPedal.swift // Lyrebird // // Copyright (c) 2026 Joshua Parmenter / realizedsound // SPDX-License-Identifier: MIT /// A pedal with a primary **transport footswitch** — a momentary, latching action beyond generic /// bypass (e.g. TunedVerb's *Capture*, FreezVerb's *Freeze*) — that can be driven by a MIDI /// footswitch. /// /// Conforming makes the action appear in the MIDI mapping sheet automatically and lets a mapped /// Program Change fire it: the sheet lists `midiTransportName`, and `MIDIController` calls /// ``toggleMIDITransport()`` for a `PedalActionKind/pedalPrimaryTransport` binding. A pedal with a /// richer transport surface (the looper) is handled by its own dedicated action kinds instead. @MainActor public protocol MIDITransportPedal: AnyObject { /// Short display name of the primary transport footswitch (e.g. `"Capture"`, `"Freeze"`), shown /// in the MIDI mapping sheet after the pedal name. var midiTransportName: String { get } /// Toggles the primary transport footswitch — called when a mapped MIDI footswitch fires. Same /// effect as pressing the pedal's on-screen footswitch. func toggleMIDITransport() }