Files
2026-06-21 12:25:18 -07:00

28 lines
762 B
Swift

// SplitMode.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
/// Routing mode for a ``Splitter``.
///
/// Controls which of the two output branches carries signal:
///
/// - `.a`: Only branch A passes; branch B is muted.
/// - `.b`: Only branch B passes; branch A is muted.
/// - `.both`: Both branches carry the full input signal (parallel operation).
///
/// Transitions between modes are click-free because the ``Splitter`` applies
/// a lag to each branch enable value.
public enum SplitMode: String, Codable, CaseIterable {
/// Branch A active, branch B muted.
case a
/// Branch B active, branch A muted.
case b
/// Both branches active (parallel routing).
case both
}