1.0 release
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
// BoardState.swift
|
||||
// Lyrebird
|
||||
//
|
||||
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
/// Serialisable snapshot of one `PedalBoard`'s label and pedal chain.
|
||||
///
|
||||
/// `label` is the board's display name. `pedals` contains one `PedalState` per
|
||||
/// pedal in signal-flow order. Unknown pedal types in the array are skipped
|
||||
/// silently during `ShoeGaze.loadRig(from:)`.
|
||||
public struct BoardState: Codable, Equatable {
|
||||
|
||||
/// The board's display label (e.g. `"Board 1"`).
|
||||
public let label: String
|
||||
|
||||
/// Ordered list of pedal snapshots in signal-flow order.
|
||||
public let pedals: [PedalState]
|
||||
|
||||
/// Creates a board state snapshot.
|
||||
///
|
||||
/// - Parameters:
|
||||
/// - label: The board's display label.
|
||||
/// - pedals: Ordered list of pedal state snapshots.
|
||||
public init(
|
||||
label: String,
|
||||
pedals: [PedalState]
|
||||
) {
|
||||
self.label = label
|
||||
self.pedals = pedals
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user