v1.4.0 release: live-coding scratch editor, interpreted Graph DSL, ClosureSynthesizer + SampleLoop
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// DSLParameter.swift
|
||||
// Lyrebird
|
||||
//
|
||||
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
// One declared parameter of a `DSLBuiltin`.
|
||||
|
||||
/// A single declared parameter of a ``DSLBuiltin``.
|
||||
///
|
||||
/// `label` is the argument label as written in the DSL (`freq`, `mul`, …).
|
||||
/// `hasDefault` is `true` when the underlying Swift init supplies a default the
|
||||
/// DSL can rely on, so the argument may be omitted; a parameter without one is
|
||||
/// required.
|
||||
public struct DSLParameter: Equatable, Sendable {
|
||||
public let label: String
|
||||
public let hasDefault: Bool
|
||||
|
||||
public init(
|
||||
label: String,
|
||||
hasDefault: Bool
|
||||
) {
|
||||
self.label = label
|
||||
self.hasDefault = hasDefault
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user