// LooperTransportState.swift // Lyrebird // // Copyright (c) 2026 Joshua Parmenter / realizedsound // SPDX-License-Identifier: MIT /// Publicly-observable transport phase of the multitrack ``LooperPedal``, surfaced for the UI /// so it can colour the state indicator, animate the "waiting for the next beat" armed states, /// and drive the loop timeline. /// /// The pedal is a synchronized multitrack looper: track A's first take defines the master loop /// length, and tracks B–D are overdub layers recorded onto the same grid, all playing at once. public enum LooperTransportState: Sendable, Equatable { /// No material recorded on any track. Only track A can be selected; press Loop to record it. case clear /// A Loop press has been made in the clear state and the pedal is waiting for the next beat /// to start recording track A. case armedRecord /// Recording track A's first take, which defines the master loop length. case recordingMaster /// A Loop press closed the master take and the pedal is waiting for the next beat to set the /// loop end. case armedClose /// Looping playback of all recorded tracks. The selected track may be overdubbing. case playing /// Playback paused by a stop, with recorded material still loaded (ready to resume). case stopped }