// TempoSync.swift // Lyrebird // // Copyright (c) 2026 Joshua Parmenter / realizedsound // SPDX-License-Identifier: MIT import Foundation /// Sync state of one tempo-syncable pedal parameter. /// /// `.free` leaves the parameter at its stored absolute value (seconds or Hz), controlled by the /// knob as usual. `.division` locks it to a ``NoteDivision`` of the shared ``ShoeGaze/clock`` — /// the value is derived from the current tempo and rewritten whenever the tempo or the division /// changes. public enum TempoSync: Codable, Equatable, Sendable { /// Absolute value, knob-controlled. The default for every parameter. case free /// Locked to a note division of the live tempo. case division(NoteDivision) }