1.0.0 release

This commit is contained in:
2026-06-01 18:27:40 -07:00
parent b1ab0f102c
commit 1f20fcab20
1151 changed files with 230703 additions and 14 deletions
@@ -0,0 +1,389 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 60;
objects = {
/* Begin PBXBuildFile section */
B9A00000000000000000000C /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9A000000000000000000007 /* main.swift */; };
B9A00000000000000000000D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9A000000000000000000008 /* AppDelegate.swift */; };
B9A00000000000000000000E /* NoteController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9A000000000000000000009 /* NoteController.swift */; };
B9A00000000000000000000F /* SineToneUI.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9A00000000000000000000A /* SineToneUI.swift */; };
B9A000000000000000000010 /* SineToneView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9A00000000000000000000B /* SineToneView.swift */; };
B9A00000000000000000001F /* LyrebirdUI in Frameworks */ = {isa = PBXBuildFile; productRef = B9A00000000000000000001D /* LyrebirdUI */; };
B9A000000000000000000030 /* SpectralBinDelayUI.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9A00000000000000000002D /* SpectralBinDelayUI.swift */; };
B9A000000000000000000031 /* BinDelayController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9A00000000000000000002E /* BinDelayController.swift */; };
B9A000000000000000000032 /* BinDelayView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9A00000000000000000002F /* BinDelayView.swift */; };
B9A000000000000000000036 /* VectorOscillatorUI.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9A000000000000000000033 /* VectorOscillatorUI.swift */; };
B9A000000000000000000037 /* VectorOscillatorController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9A000000000000000000034 /* VectorOscillatorController.swift */; };
B9A000000000000000000038 /* VectorOscillatorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9A000000000000000000035 /* VectorOscillatorView.swift */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
B9A000000000000000000004 /* LyrebirdMacOSDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LyrebirdMacOSDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
B9A000000000000000000006 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
B9A000000000000000000007 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
B9A000000000000000000008 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
B9A000000000000000000009 /* NoteController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoteController.swift; sourceTree = "<group>"; };
B9A00000000000000000000A /* SineToneUI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SineToneUI.swift; sourceTree = "<group>"; };
B9A00000000000000000000B /* SineToneView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SineToneView.swift; sourceTree = "<group>"; };
B9A00000000000000000002D /* SpectralBinDelayUI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpectralBinDelayUI.swift; sourceTree = "<group>"; };
B9A00000000000000000002E /* BinDelayController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BinDelayController.swift; sourceTree = "<group>"; };
B9A00000000000000000002F /* BinDelayView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BinDelayView.swift; sourceTree = "<group>"; };
B9A000000000000000000033 /* VectorOscillatorUI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VectorOscillatorUI.swift; sourceTree = "<group>"; };
B9A000000000000000000034 /* VectorOscillatorController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VectorOscillatorController.swift; sourceTree = "<group>"; };
B9A000000000000000000035 /* VectorOscillatorView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VectorOscillatorView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
B9A000000000000000000012 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
B9A00000000000000000001F /* LyrebirdUI in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
B9A000000000000000000002 = {
isa = PBXGroup;
children = (
B9A000000000000000000005 /* LyrebirdMacOSDemo */,
B9A000000000000000000003 /* Products */,
);
sourceTree = "<group>";
};
B9A000000000000000000003 /* Products */ = {
isa = PBXGroup;
children = (
B9A000000000000000000004 /* LyrebirdMacOSDemo.app */,
);
name = Products;
sourceTree = "<group>";
};
B9A000000000000000000005 /* LyrebirdMacOSDemo */ = {
isa = PBXGroup;
children = (
B9A000000000000000000007 /* main.swift */,
B9A000000000000000000008 /* AppDelegate.swift */,
B9A000000000000000000020 /* UI */,
B9A000000000000000000021 /* Synthesizers */,
B9A000000000000000000006 /* Info.plist */,
);
path = LyrebirdMacOSDemo;
sourceTree = "<group>";
};
B9A000000000000000000020 /* UI */ = {
isa = PBXGroup;
children = (
B9A000000000000000000009 /* NoteController.swift */,
B9A00000000000000000000B /* SineToneView.swift */,
B9A00000000000000000002E /* BinDelayController.swift */,
B9A00000000000000000002F /* BinDelayView.swift */,
B9A000000000000000000034 /* VectorOscillatorController.swift */,
B9A000000000000000000035 /* VectorOscillatorView.swift */,
);
path = UI;
sourceTree = "<group>";
};
B9A000000000000000000021 /* Synthesizers */ = {
isa = PBXGroup;
children = (
B9A00000000000000000000A /* SineToneUI.swift */,
B9A00000000000000000002D /* SpectralBinDelayUI.swift */,
B9A000000000000000000033 /* VectorOscillatorUI.swift */,
);
path = Synthesizers;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
B9A000000000000000000014 /* LyrebirdMacOSDemo */ = {
isa = PBXNativeTarget;
buildConfigurationList = B9A000000000000000000015 /* Build configuration list for PBXNativeTarget "LyrebirdMacOSDemo" */;
buildPhases = (
B9A000000000000000000011 /* Sources */,
B9A000000000000000000012 /* Frameworks */,
B9A000000000000000000013 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = LyrebirdMacOSDemo;
packageProductDependencies = (
B9A00000000000000000001D /* LyrebirdUI */,
);
productName = LyrebirdMacOSDemo;
productReference = B9A000000000000000000004 /* LyrebirdMacOSDemo.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
B9A000000000000000000001 /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1600;
LastUpgradeCheck = 2620;
TargetAttributes = {
B9A000000000000000000014 = {
CreatedOnToolsVersion = 16.0;
};
};
};
buildConfigurationList = B9A000000000000000000018 /* Build configuration list for PBXProject "LyrebirdMacOSDemo" */;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = B9A000000000000000000002;
packageReferences = (
B9A00000000000000000001B /* XCLocalSwiftPackageReference "../.." */,
);
productRefGroup = B9A000000000000000000003 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
B9A000000000000000000014 /* LyrebirdMacOSDemo */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
B9A000000000000000000013 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
B9A000000000000000000011 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
B9A00000000000000000000C /* main.swift in Sources */,
B9A00000000000000000000D /* AppDelegate.swift in Sources */,
B9A00000000000000000000E /* NoteController.swift in Sources */,
B9A00000000000000000000F /* SineToneUI.swift in Sources */,
B9A000000000000000000010 /* SineToneView.swift in Sources */,
B9A000000000000000000030 /* SpectralBinDelayUI.swift in Sources */,
B9A000000000000000000031 /* BinDelayController.swift in Sources */,
B9A000000000000000000032 /* BinDelayView.swift in Sources */,
B9A000000000000000000036 /* VectorOscillatorUI.swift in Sources */,
B9A000000000000000000037 /* VectorOscillatorController.swift in Sources */,
B9A000000000000000000038 /* VectorOscillatorView.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
B9A000000000000000000016 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = LyrebirdMacOSDemo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 15.0;
PRODUCT_BUNDLE_IDENTIFIER = net.realizedsound.LyrebirdMacOSDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
B9A000000000000000000017 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = LyrebirdMacOSDemo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 15.0;
PRODUCT_BUNDLE_IDENTIFIER = net.realizedsound.LyrebirdMacOSDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
};
name = Release;
};
B9A000000000000000000019 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
B9A00000000000000000001A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
B9A000000000000000000015 /* Build configuration list for PBXNativeTarget "LyrebirdMacOSDemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
B9A000000000000000000016 /* Debug */,
B9A000000000000000000017 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
B9A000000000000000000018 /* Build configuration list for PBXProject "LyrebirdMacOSDemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
B9A000000000000000000019 /* Debug */,
B9A00000000000000000001A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
/* Begin XCLocalSwiftPackageReference section */
B9A00000000000000000001B /* XCLocalSwiftPackageReference "../.." */ = {
isa = XCLocalSwiftPackageReference;
relativePath = ../..;
};
/* End XCLocalSwiftPackageReference section */
/* Begin XCSwiftPackageProductDependency section */
B9A00000000000000000001D /* LyrebirdUI */ = {
isa = XCSwiftPackageProductDependency;
package = B9A00000000000000000001B /* XCLocalSwiftPackageReference "../.." */;
productName = LyrebirdUI;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = B9A000000000000000000001 /* Project object */;
}
@@ -0,0 +1,24 @@
{
"originHash" : "2f86be2113a80b402938cb09ebb72fe8cb9830066fe5b03aa1d174fcf50e2574",
"pins" : [
{
"identity" : "linenoise-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/andybest/linenoise-swift",
"state" : {
"revision" : "afc897c02b030af7333105c4fedcd843a8339238",
"version" : "0.0.3"
}
},
{
"identity" : "nimble",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Quick/Nimble.git",
"state" : {
"revision" : "e9d769113660769a4d9dd3afb855562c0b7ae7b0",
"version" : "7.3.4"
}
}
],
"version" : 3
}
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "2620"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B9A000000000000000000014"
BuildableName = "LyrebirdMacOSDemo.app"
BlueprintName = "LyrebirdMacOSDemo"
ReferencedContainer = "container:LyrebirdMacOSDemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Release"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B9A000000000000000000014"
BuildableName = "LyrebirdMacOSDemo.app"
BlueprintName = "LyrebirdMacOSDemo"
ReferencedContainer = "container:LyrebirdMacOSDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B9A000000000000000000014"
BuildableName = "LyrebirdMacOSDemo.app"
BlueprintName = "LyrebirdMacOSDemo"
ReferencedContainer = "container:LyrebirdMacOSDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
@@ -0,0 +1,77 @@
// AppDelegate.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import AppKit
import SwiftUI
import LyrebirdSynth
import LyrebirdUI
// ── Demo selector ─────────────────────────────────────────────────────────────
// Change `demo` to `.sineTone` or `.binDelay` to switch demos.
private enum Demo { case vector, binDelay, sineTone }
private let demo: Demo = .binDelay
// ──────────────────────────────────────────────────────────────────────────────
final class AppDelegate: NSObject, NSApplicationDelegate {
let engine: SynthesisEngine
// Vector oscillator demo controller (used when demo == .vector)
let vectorController: VectorOscillatorController
// Sine-tone demo controller (used when demo == .sineTone)
let sineController: NoteController
// Bin-delay demo controller (used when demo == .binDelay)
let binDelayController: BinDelayController
var window: LyrebirdWindow?
init(engine: SynthesisEngine) {
let scopeCapture = ScopeCapture(buses: [0, 1], bufferSize: 2048)
engine.scopeTap = scopeCapture
self.engine = engine
self.vectorController = VectorOscillatorController(
engine: engine,
synth: VectorOscillatorUI(),
scopeCapture: scopeCapture
)
self.sineController = NoteController(
engine: engine,
synth: SineToneUI(),
scopeCapture: scopeCapture
)
self.binDelayController = BinDelayController(
engine: engine,
scopeCapture: scopeCapture
)
}
@MainActor
func applicationDidFinishLaunching(_ notification: Notification) {
switch demo {
case .vector:
window = LyrebirdWindow(title: "Lyrebird — Vector Oscillator", width: 380, height: 580)
window?.open {
VectorOscillatorView(controller: self.vectorController)
}
case .binDelay:
window = LyrebirdWindow(title: "Lyrebird — Spectral Bin Delay", width: 440, height: 620)
window?.open {
BinDelayView(controller: self.binDelayController)
}
case .sineTone:
window = LyrebirdWindow(title: "Lyrebird — Sine Tone", width: 360, height: 540)
window?.open {
SineToneView(controller: self.sineController)
}
}
}
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
true
}
func applicationWillTerminate(_ notification: Notification) {
engine.stop()
}
}
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2026 Realized Sound. All rights reserved.</string>
</dict>
</plist>
@@ -0,0 +1,26 @@
// SineToneUI.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import LyrebirdSynth
import LyrebirdUI
/// A stereo sine tone whose frequency, amplitude, and pan are live-controllable from the UI.
final class SineToneUI: SynthesizerBase {
/// Frequency in Hz. Slider range: 440–880 Hz.
@UIParam var frequency: Double = 440.0
/// Output amplitude (linear gain). Knob range: 0–1.
@UIParam var amplitude: Double = 0.25
/// Stereo pan position. Knob range: -1 (hard left) … 0 (center) … +1 (hard right).
@UIParam var pan: Double = 0.0
override func build() {
let osc = OscSin.Audio(freq: $frequency)
output(bus: 0, source: Pan2(input: osc * $amplitude, pan: $pan))
}
}
@@ -0,0 +1,108 @@
// SpectralBinDelayUI.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import LyrebirdSynth
/// Spectral-bin-delay synthesizer demo.
///
/// An `Impulse.Audio` at 0.2 Hz (one fire per 5 s) drives an FFT analysis chain
/// that includes a `SpectralBinDelay`. The delayed spectral frames are resynthesised
/// via `IFFTSynthesis` and panned to centre stereo on bus 0.
///
/// Two `LyrebirdBuffer`s — `delayTimes` and `feedbacks` — are exposed as public
/// stored properties so the UI can write into them live via `MultiSlider`.
/// Both buffers are pre-allocated at `init` and never reallocated.
///
/// - Note: `sampleRate` must be passed at construction time because
/// `SpectralBinDelay` needs it to convert delay-seconds → hop-frames.
/// Create this synthesizer *after* the engine has started so that
/// `engine.sampleRate` reflects the committed hardware rate.
final class SpectralBinDelayUI: SynthesizerBase {
// MARK: - Constants
/// FFT frame size used throughout the analysis/synthesis chain.
static let fftSize: Int = 1024
/// Number of new samples between FFT hops (75 % overlap).
static let hopSize: Int = 256
/// `fftSize / 2` — the number of independent magnitude/phase bins.
static let halfSize: Int = fftSize / 2
/// Maximum delay time accepted by `SpectralBinDelay` (seconds).
/// Keep below `lyrebirdSpectralBinDelayMaxFrames * hopSize / sampleRate`.
static let maxDelaySeconds: Double = 1.0
// MARK: - Engine sample rate (captured at init — needed in build())
/// Audio sample rate in Hz. Captured from the engine before `build()` runs.
private let engineSampleRate: Double
// MARK: - Parameter buffers (public — UI writes via MultiSlider)
/// Per-bin delay times in seconds. Mono, `halfSize` frames.
/// Default: 0 (clean pass-through until the UI writes new values).
let delayTimes: LyrebirdBuffer
/// Per-bin feedback gains in [0, 0.95). Mono, `halfSize` frames.
/// Default: 0 (clean pass-through until the UI writes new values).
let feedbacks: LyrebirdBuffer
// MARK: - Initialisation
/// - Parameter sampleRate: The engine's committed sample rate (Hz).
/// `SynthesisEngine.sampleRate` is a `let` initialised in `init`, so it
/// is valid as soon as the engine is constructed.
init(sampleRate: Double) {
let halfSize = SpectralBinDelayUI.halfSize
self.engineSampleRate = sampleRate
let dt = LyrebirdBuffer(count: halfSize)
dt.fill(with: 0.0)
let fb = LyrebirdBuffer(count: halfSize)
fb.fill(with: 0.0)
self.delayTimes = dt
self.feedbacks = fb
super.init()
}
// MARK: - Signal graph
override func build() {
let fftSize = SpectralBinDelayUI.fftSize
let hopSize = SpectralBinDelayUI.hopSize
// Source: sparse impulse that fires at 0.2 Hz (once every 5 s).
let impulseFreq = 0.2
let impulse = Impulse.Audio(freq: impulseFreq)
// SpectralBinDelay processor — allocated here inside build() which
// runs off the RT thread before the synthesizer is added to the engine.
let bd = SpectralBinDelay(
fftSize: fftSize,
hopSize: hopSize,
maxDelaySeconds: SpectralBinDelayUI.maxDelaySeconds,
sampleRate: engineSampleRate,
delayTimes: delayTimes,
feedbacks: feedbacks
)
let binDelay = SpectralChain.Audio(
input: impulse,
fftSize: fftSize,
hopSize: hopSize,
stages: [.mono(bd)]
)
// Pan to centre; the effect is mono but we send it to stereo bus 0.
output(bus: 0, source: Pan2(input: binDelay, pan: 0.0))
}
}
@@ -0,0 +1,78 @@
// VectorOscillatorUI.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import LyrebirdSynth
import LyrebirdUI
/// A stereo vector oscillator whose XY position, frequency, and amplitude are
/// live-controllable from the UI.
///
/// Four corner wavetables are crossfaded on a 2D XY plane:
///
/// C (triangle) ── D (Hanning) (y = 1)
/// │ │
/// A (sine) ──── B (saw-ish) (y = 0)
/// x=0 x=1
///
/// Moving X blends A↔B (and C↔D); moving Y blends the AB mix into the CD mix.
final class VectorOscillatorUI: SynthesizerBase {
/// X-axis blend position. 0 = corner A/C, 1 = corner B/D.
/// Normalized [0, 1]. XY pad range: 0…1.
@UIParam var x: Double = 0.5
/// Y-axis blend position. 0 = bottom (A, B), 1 = top (C, D).
/// Normalized [0, 1]. XY pad range: 0…1.
@UIParam var y: Double = 0.5
/// Oscillator frequency in Hz. Slider range: 40–2000 Hz.
@UIParam var frequency: Double = 220.0
/// Output amplitude (linear gain). Knob range: 0–1.
@UIParam var amplitude: Double = 0.25
private let bufferA: LyrebirdBuffer // corner A: sine
private let bufferB: LyrebirdBuffer // corner B: 16-partial saw-ish
private let bufferC: LyrebirdBuffer // corner C: triangle
private let bufferD: LyrebirdBuffer // corner D: Hanning window shape
override init() {
let tableSize = lyrebirdDefaultTableSize
let a = LyrebirdBuffer(count: tableSize)
a.fillSine()
let b = LyrebirdBuffer(count: tableSize)
b.fill(partials: 16)
let c = LyrebirdBuffer(count: tableSize)
c.fillTriangle()
let d = LyrebirdBuffer(count: tableSize)
d.fillHanning()
self.bufferA = a
self.bufferB = b
self.bufferC = c
self.bufferD = d
super.init()
}
override func build() {
let osc = VectorOscillator.Audio(
bufferA: bufferA,
bufferB: bufferB,
bufferC: bufferC,
bufferD: bufferD,
freq: $frequency,
x: $x,
y: $y,
mul: $amplitude
)
output(bus: 0, source: Pan2(input: osc, pan: 0.0))
}
}
@@ -0,0 +1,74 @@
// BinDelayController.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import Observation
import LyrebirdSynth
/// Controller for the spectral-bin-delay demo view.
///
/// Unlike `NoteController`, the synthesizer is created lazily when the user
/// first taps "Start Synthesizer" — this is necessary because
/// `SpectralBinDelayUI.init(sampleRate:)` requires the engine's committed
/// sample rate, which is only valid after `engine.start()` returns.
@Observable
final class BinDelayController {
let engine: SynthesisEngine
let scopeCapture: ScopeCapture
private(set) var engineRunning: Bool = false
private(set) var isPlaying: Bool = false
/// The live synthesizer instance. `nil` until first "Start Synthesizer" tap.
private(set) var synth: SpectralBinDelayUI?
init(engine: SynthesisEngine, scopeCapture: ScopeCapture) {
self.engine = engine
self.scopeCapture = scopeCapture
}
func toggleEngine() {
if engineRunning {
if isPlaying, let s = synth {
engine.remove(s)
isPlaying = false
}
engine.stop()
engineRunning = false
} else {
do {
try engine.start()
engineRunning = true
} catch {
print("Engine failed to start: \(error)")
}
}
}
func toggle() {
if isPlaying {
if let s = synth {
engine.remove(s)
}
isPlaying = false
} else {
guard engineRunning else { return }
// Create the synthesizer lazily so we don't put it in the node tree
// until the user requests it.
if synth == nil {
synth = SpectralBinDelayUI(sampleRate: engine.sampleRate)
}
if let s = synth {
do {
try engine.add(s)
isPlaying = true
} catch {
print("[Lyrebird] BinDelayController.toggle add failed: \(error)")
}
}
}
}
}
@@ -0,0 +1,123 @@
// BinDelayView.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import SwiftUI
import LyrebirdSynth
import LyrebirdUI
/// Main view for the spectral bin-delay demo (macOS).
///
/// Shows engine and synth toggle buttons, two `MultiSlider` rows for
/// per-bin delay times and feedbacks, an engine status strip, and a scope.
///
/// Every spectral bin is exposed: each `MultiSlider` row contains
/// `SpectralBinDelayUI.halfSize` (512) thin bars, one per FFT bin. The window
/// is sized wide so the full spectrum is visible at once — the demo's purpose
/// is to show that per-bin spectral control is possible, not to make any one
/// bin precisely tweakable.
struct BinDelayView: View {
let controller: BinDelayController
private let sliderHeight: CGFloat = 160
private let maxFeedback = 0.95
var body: some View {
VStack(alignment: .leading, spacing: 20) {
// MARK: Engine row
HStack {
Text("Engine")
.font(.headline)
Spacer()
Button(controller.engineRunning ? "Stop Engine" : "Start Engine") {
controller.toggleEngine()
}
.buttonStyle(.borderedProminent)
.tint(controller.engineRunning ? .red : .green)
}
Divider()
// MARK: Synth row
HStack {
VStack(alignment: .leading, spacing: 2) {
Text("Spectral Bin Delay")
.font(.headline)
Text("Impulse source · 0.2 Hz · fftSize 1024 · hop 256")
.font(.caption)
.foregroundStyle(.secondary)
}
Spacer()
Button(controller.isPlaying ? "Stop" : "Start") {
controller.toggle()
}
.buttonStyle(.bordered)
.tint(controller.isPlaying ? .red : .green)
.disabled(!controller.engineRunning)
}
Divider()
// MARK: Delay times slider
Text("Delay Times (all 512 bins, range 0–1 s)")
.font(.caption)
.foregroundStyle(.secondary)
if let synth = controller.synth {
MultiSlider(
buffer: synth.delayTimes,
count: SpectralBinDelayUI.halfSize,
range: 0.0...1.0,
height: sliderHeight
)
} else {
placeholderSlider(label: "Start synthesizer to enable")
}
// MARK: Feedback slider
Text("Feedbacks (all 512 bins, range 0–0.95)")
.font(.caption)
.foregroundStyle(.secondary)
if let synth = controller.synth {
MultiSlider(
buffer: synth.feedbacks,
count: SpectralBinDelayUI.halfSize,
range: 0.0...maxFeedback,
height: sliderHeight
)
} else {
placeholderSlider(label: "Start synthesizer to enable")
}
Divider()
LyrebirdStatusView(engine: controller.engine)
Divider()
LyrebirdScopeView(capture: controller.scopeCapture)
.frame(height: 120)
}
.padding(20)
.frame(minWidth: 1100)
}
// MARK: - Helpers
@ViewBuilder
private func placeholderSlider(label: String) -> some View {
ZStack {
Color.lyrebirdControlBackground
Text(label)
.font(.caption)
.foregroundStyle(.secondary)
}
.frame(height: sliderHeight)
.overlay(Rectangle().stroke(Color.lyrebirdSeparator, lineWidth: 1))
}
}
@@ -0,0 +1,57 @@
// NoteController.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import Observation
import LyrebirdSynth
@Observable
final class NoteController {
let engine: SynthesisEngine
let synth: SineToneUI
let scopeCapture: ScopeCapture
private(set) var engineRunning: Bool = false
private(set) var isPlaying: Bool = false
init(engine: SynthesisEngine, synth: SineToneUI, scopeCapture: ScopeCapture) {
self.engine = engine
self.synth = synth
self.scopeCapture = scopeCapture
}
func toggleEngine() {
if engineRunning {
if isPlaying {
engine.remove(synth)
isPlaying = false
}
engine.stop()
engineRunning = false
} else {
do {
try engine.start()
engineRunning = true
} catch {
print("Engine failed to start: \(error)")
}
}
}
func toggle() {
if isPlaying {
engine.remove(synth)
isPlaying = false
} else {
do {
try engine.add(synth)
isPlaying = true
} catch {
print("[Lyrebird] NoteController.toggle add failed: \(error)")
}
}
}
}
@@ -0,0 +1,111 @@
// SineToneView.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import SwiftUI
import LyrebirdSynth
import LyrebirdUI
struct SineToneView: View {
let controller: NoteController
var body: some View {
VStack(alignment: .leading, spacing: 20) {
HStack {
Text("Engine")
.font(.headline)
Spacer()
Button(controller.engineRunning ? "Stop Engine" : "Start Engine") {
controller.toggleEngine()
}
.buttonStyle(.borderedProminent)
.tint(controller.engineRunning ? .red : .green)
}
Divider()
HStack {
Text("Sine Tone")
.font(.headline)
Spacer()
Button(controller.isPlaying ? "Stop" : "Start") {
controller.toggle()
}
.buttonStyle(.bordered)
.tint(controller.isPlaying ? .red : .green)
.disabled(!controller.engineRunning)
}
ParameterSlider(
"Frequency",
node: controller.synth.$frequency,
range: 440.0...880.0
)
HStack(spacing: 24) {
ParameterKnob(
"Amplitude",
node: controller.synth.$amplitude,
range: 0.0...1.0
)
ParameterKnob(
"Pan",
node: controller.synth.$pan,
range: -1.0...1.0
)
ParameterLabel("Level", node: controller.synth.$amplitude)
Spacer()
}
Divider()
LyrebirdStatusView(engine: controller.engine)
Divider()
LyrebirdScopeView(capture: controller.scopeCapture)
.frame(height: 120)
Divider()
Text("Envelope")
.font(.caption)
.foregroundStyle(.secondary)
LyrebirdEnvelopeView(
Envelope(
levels: [0.0001, 1, 0.6, 0.4, 0.0001],
durations: [0.05, 0.15, 0.4, 0.3],
curves: [.exponential, .exponential, .lin, .exponential],
loopNode: 2,
releaseNode: 4
),
width: 300,
height: 100
)
Divider()
Text("Distribution Preview (Gaussian, 200 samples)")
.font(.caption)
.foregroundStyle(.secondary)
LyrebirdScatterView(
DemandTemporalTendency(distribution: .gauss,
parX: .value(0.5), parY: .value(0.15),
seed: 42)
.samples(count: 200),
yRange: 0.0...1.0,
pointColor: .cyan,
width: 300,
height: 100
)
}
.padding(20)
.frame(minWidth: 340)
}
}
@@ -0,0 +1,61 @@
// VectorOscillatorController.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import Observation
import LyrebirdSynth
@Observable
final class VectorOscillatorController {
let engine: SynthesisEngine
let synth: VectorOscillatorUI
let scopeCapture: ScopeCapture
private(set) var engineRunning: Bool = false
private(set) var isPlaying: Bool = false
init(
engine: SynthesisEngine,
synth: VectorOscillatorUI,
scopeCapture: ScopeCapture
) {
self.engine = engine
self.synth = synth
self.scopeCapture = scopeCapture
}
func toggleEngine() {
if engineRunning {
if isPlaying {
engine.remove(synth)
isPlaying = false
}
engine.stop()
engineRunning = false
} else {
do {
try engine.start()
engineRunning = true
} catch {
print("Engine failed to start: \(error)")
}
}
}
func toggle() {
if isPlaying {
engine.remove(synth)
isPlaying = false
} else {
do {
try engine.add(synth)
isPlaying = true
} catch {
print("[Lyrebird] VectorOscillatorController.toggle add failed: \(error)")
}
}
}
}
@@ -0,0 +1,79 @@
// VectorOscillatorView.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import SwiftUI
import LyrebirdSynth
import LyrebirdUI
struct VectorOscillatorView: View {
let controller: VectorOscillatorController
var body: some View {
VStack(alignment: .leading, spacing: 20) {
HStack {
Text("Engine")
.font(.headline)
Spacer()
Button(controller.engineRunning ? "Stop Engine" : "Start Engine") {
controller.toggleEngine()
}
.buttonStyle(.borderedProminent)
.tint(controller.engineRunning ? .red : .green)
}
Divider()
HStack {
Text("Vector Oscillator")
.font(.headline)
Spacer()
Button(controller.isPlaying ? "Stop" : "Start") {
controller.toggle()
}
.buttonStyle(.bordered)
.tint(controller.isPlaying ? .red : .green)
.disabled(!controller.engineRunning)
}
ParameterXY(
xLabel: "X (A↔B)",
xNode: controller.synth.$x,
xRange: 0.0...1.0,
yLabel: "Y (AB↔CD)",
yNode: controller.synth.$y,
yRange: 0.0...1.0
)
.frame(width: 240, height: 240)
HStack(spacing: 24) {
ParameterKnob(
"Frequency",
node: controller.synth.$frequency,
range: 40.0...2000.0
)
ParameterKnob(
"Amplitude",
node: controller.synth.$amplitude,
range: 0.0...1.0
)
Spacer()
}
Divider()
LyrebirdStatusView(engine: controller.engine)
Divider()
LyrebirdScopeView(capture: controller.scopeCapture)
.frame(height: 120)
}
.padding(20)
.frame(minWidth: 340)
}
}
@@ -0,0 +1,22 @@
// main.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import AppKit
import LyrebirdSynth
let engine = SynthesisEngine(
blockSize: 512,
sampleRate: 48000,
numOutputChannels: 2,
numInputChannels: 0,
driver: CoreAudioDriver()
)
let delegate = AppDelegate(engine: engine)
let app = NSApplication.shared
app.setActivationPolicy(.regular)
app.delegate = delegate
app.run()