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,400 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 60;
objects = {
/* Begin PBXBuildFile section */
0306C7C02FAC451300952EAF /* GVerbTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0306C7BF2FAC451300952EAF /* GVerbTest.swift */; };
0306C7C22FAC45F200952EAF /* ReverbDemo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0306C7C12FAC45F200952EAF /* ReverbDemo.swift */; };
035A2F422FAA4F67007F6289 /* PercPitchShift.swift in Sources */ = {isa = PBXBuildFile; fileRef = 035A2F3F2FAA4F67007F6289 /* PercPitchShift.swift */; };
035A2F432FAA4F67007F6289 /* PercSpectralPitchShift.swift in Sources */ = {isa = PBXBuildFile; fileRef = 035A2F412FAA4F67007F6289 /* PercSpectralPitchShift.swift */; };
035A2F482FAA4F67007F6289 /* PercSpectralStereoDiffuse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 035A2F492FAA4F67007F6289 /* PercSpectralStereoDiffuse.swift */; };
035A2F442FAA4F67007F6289 /* PercBufferRead.swift in Sources */ = {isa = PBXBuildFile; fileRef = 035A2F3E2FAA4F67007F6289 /* PercBufferRead.swift */; };
035A2F452FAA4F67007F6289 /* PercPlayBuffer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 035A2F402FAA4F67007F6289 /* PercPlayBuffer.swift */; };
035A2F472FAA6950007F6289 /* PercTimeStretch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 035A2F462FAA6950007F6289 /* PercTimeStretch.swift */; };
035B00012FAB0000007F0001 /* DemoProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 035B00032FAB0000007F0001 /* DemoProtocol.swift */; };
035B00022FAB0000007F0001 /* BufferDemos.swift in Sources */ = {isa = PBXBuildFile; fileRef = 035B00042FAB0000007F0001 /* BufferDemos.swift */; };
C1A000000000000000000007 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1A000000000000000000006 /* main.swift */; };
C1A000000000000000000013 /* Lyrebird in Frameworks */ = {isa = PBXBuildFile; productRef = C1A000000000000000000012 /* Lyrebird */; };
C1A000000000000000000016 /* SineTone.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1A000000000000000000014 /* SineTone.swift */; };
C1A000000000000000000017 /* DelaySample.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1A000000000000000000015 /* DelaySample.swift */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
0306C7BF2FAC451300952EAF /* GVerbTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GVerbTest.swift; sourceTree = "<group>"; };
0306C7C12FAC45F200952EAF /* ReverbDemo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReverbDemo.swift; sourceTree = "<group>"; };
035A2F3E2FAA4F67007F6289 /* PercBufferRead.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PercBufferRead.swift; sourceTree = "<group>"; };
035A2F3F2FAA4F67007F6289 /* PercPitchShift.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PercPitchShift.swift; sourceTree = "<group>"; };
035A2F402FAA4F67007F6289 /* PercPlayBuffer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PercPlayBuffer.swift; sourceTree = "<group>"; };
035A2F412FAA4F67007F6289 /* PercSpectralPitchShift.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PercSpectralPitchShift.swift; sourceTree = "<group>"; };
035A2F492FAA4F67007F6289 /* PercSpectralStereoDiffuse.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PercSpectralStereoDiffuse.swift; sourceTree = "<group>"; };
035A2F462FAA6950007F6289 /* PercTimeStretch.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PercTimeStretch.swift; sourceTree = "<group>"; };
035B00032FAB0000007F0001 /* DemoProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DemoProtocol.swift; sourceTree = "<group>"; };
035B00042FAB0000007F0001 /* BufferDemos.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BufferDemos.swift; sourceTree = "<group>"; };
C1A000000000000000000004 /* LyrebirdDemo */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = LyrebirdDemo; sourceTree = BUILT_PRODUCTS_DIR; };
C1A000000000000000000006 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
C1A000000000000000000014 /* SineTone.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SineTone.swift; sourceTree = "<group>"; };
C1A000000000000000000015 /* DelaySample.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DelaySample.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
C1A000000000000000000009 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
C1A000000000000000000013 /* Lyrebird in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
035B00052FAB0000007F0001 /* Demos */ = {
isa = PBXGroup;
children = (
0306C7C12FAC45F200952EAF /* ReverbDemo.swift */,
035B00032FAB0000007F0001 /* DemoProtocol.swift */,
035B00042FAB0000007F0001 /* BufferDemos.swift */,
);
path = Demos;
sourceTree = "<group>";
};
035B00062FAB0000007F0001 /* Buffer */ = {
isa = PBXGroup;
children = (
035A2F3E2FAA4F67007F6289 /* PercBufferRead.swift */,
035A2F402FAA4F67007F6289 /* PercPlayBuffer.swift */,
);
path = Buffer;
sourceTree = "<group>";
};
035B00072FAB0000007F0001 /* Granular */ = {
isa = PBXGroup;
children = (
035A2F3F2FAA4F67007F6289 /* PercPitchShift.swift */,
035A2F462FAA6950007F6289 /* PercTimeStretch.swift */,
);
path = Granular;
sourceTree = "<group>";
};
035B00082FAB0000007F0001 /* Spectral */ = {
isa = PBXGroup;
children = (
035A2F412FAA4F67007F6289 /* PercSpectralPitchShift.swift */,
035A2F492FAA4F67007F6289 /* PercSpectralStereoDiffuse.swift */,
);
path = Spectral;
sourceTree = "<group>";
};
035B00092FAB0000007F0001 /* General */ = {
isa = PBXGroup;
children = (
C1A000000000000000000015 /* DelaySample.swift */,
C1A000000000000000000014 /* SineTone.swift */,
);
path = General;
sourceTree = "<group>";
};
C1A000000000000000000002 = {
isa = PBXGroup;
children = (
C1A000000000000000000005 /* LyrebirdDemo */,
C1A000000000000000000003 /* Products */,
);
sourceTree = "<group>";
};
C1A000000000000000000003 /* Products */ = {
isa = PBXGroup;
children = (
C1A000000000000000000004 /* LyrebirdDemo */,
);
name = Products;
sourceTree = "<group>";
};
C1A000000000000000000005 /* LyrebirdDemo */ = {
isa = PBXGroup;
children = (
C1A000000000000000000006 /* main.swift */,
035B00052FAB0000007F0001 /* Demos */,
C1A000000000000000000018 /* Synthesizers */,
);
path = LyrebirdDemo;
sourceTree = "<group>";
};
C1A000000000000000000018 /* Synthesizers */ = {
isa = PBXGroup;
children = (
0306C7BF2FAC451300952EAF /* GVerbTest.swift */,
035B00062FAB0000007F0001 /* Buffer */,
035B00072FAB0000007F0001 /* Granular */,
035B00082FAB0000007F0001 /* Spectral */,
035B00092FAB0000007F0001 /* General */,
);
path = Synthesizers;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
C1A00000000000000000000A /* LyrebirdDemo */ = {
isa = PBXNativeTarget;
buildConfigurationList = C1A00000000000000000000B /* Build configuration list for PBXNativeTarget "LyrebirdDemo" */;
buildPhases = (
C1A000000000000000000008 /* Sources */,
C1A000000000000000000009 /* Frameworks */,
);
buildRules = (
);
dependencies = (
);
name = LyrebirdDemo;
packageProductDependencies = (
C1A000000000000000000012 /* Lyrebird */,
);
productName = LyrebirdDemo;
productReference = C1A000000000000000000004 /* LyrebirdDemo */;
productType = "com.apple.product-type.tool";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
C1A000000000000000000001 /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1600;
LastUpgradeCheck = 2620;
TargetAttributes = {
C1A00000000000000000000A = {
CreatedOnToolsVersion = 16.0;
};
};
};
buildConfigurationList = C1A00000000000000000000E /* Build configuration list for PBXProject "LyrebirdDemo" */;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = C1A000000000000000000002;
packageReferences = (
C1A000000000000000000011 /* XCLocalSwiftPackageReference "../.." */,
);
productRefGroup = C1A000000000000000000003 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
C1A00000000000000000000A /* LyrebirdDemo */,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
C1A000000000000000000008 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
035B00012FAB0000007F0001 /* DemoProtocol.swift in Sources */,
035B00022FAB0000007F0001 /* BufferDemos.swift in Sources */,
0306C7C02FAC451300952EAF /* GVerbTest.swift in Sources */,
035A2F422FAA4F67007F6289 /* PercPitchShift.swift in Sources */,
035A2F432FAA4F67007F6289 /* PercSpectralPitchShift.swift in Sources */,
035A2F482FAA4F67007F6289 /* PercSpectralStereoDiffuse.swift in Sources */,
035A2F442FAA4F67007F6289 /* PercBufferRead.swift in Sources */,
0306C7C22FAC45F200952EAF /* ReverbDemo.swift in Sources */,
035A2F452FAA4F67007F6289 /* PercPlayBuffer.swift in Sources */,
C1A000000000000000000007 /* main.swift in Sources */,
C1A000000000000000000016 /* SineTone.swift in Sources */,
035A2F472FAA6950007F6289 /* PercTimeStretch.swift in Sources */,
C1A000000000000000000017 /* DelaySample.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
C1A00000000000000000000C /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
MACOSX_DEPLOYMENT_TARGET = 15.0;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 6.0;
};
name = Debug;
};
C1A00000000000000000000D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
DEAD_CODE_STRIPPING = YES;
MACOSX_DEPLOYMENT_TARGET = 15.0;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 6.0;
};
name = Release;
};
C1A00000000000000000000F /* 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;
};
C1A000000000000000000010 /* 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 */
C1A00000000000000000000B /* Build configuration list for PBXNativeTarget "LyrebirdDemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C1A00000000000000000000C /* Debug */,
C1A00000000000000000000D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
C1A00000000000000000000E /* Build configuration list for PBXProject "LyrebirdDemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C1A00000000000000000000F /* Debug */,
C1A000000000000000000010 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
/* Begin XCLocalSwiftPackageReference section */
C1A000000000000000000011 /* XCLocalSwiftPackageReference "../.." */ = {
isa = XCLocalSwiftPackageReference;
relativePath = ../..;
};
/* End XCLocalSwiftPackageReference section */
/* Begin XCSwiftPackageProductDependency section */
C1A000000000000000000012 /* Lyrebird */ = {
isa = XCSwiftPackageProductDependency;
package = C1A000000000000000000011 /* XCLocalSwiftPackageReference "../.." */;
productName = Lyrebird;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = C1A000000000000000000001 /* Project object */;
}
@@ -0,0 +1,24 @@
{
"originHash" : "2c98cd4172bcfb3eff9cb6e34a538f80f5e424aa73fbd5bea2b20cf0c8b539b7",
"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,79 @@
<?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 = "C1A00000000000000000000A"
BuildableName = "LyrebirdDemo"
BlueprintName = "LyrebirdDemo"
ReferencedContainer = "container:LyrebirdDemo.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"
viewDebuggingEnabled = "No">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C1A00000000000000000000A"
BuildableName = "LyrebirdDemo"
BlueprintName = "LyrebirdDemo"
ReferencedContainer = "container:LyrebirdDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C1A00000000000000000000A"
BuildableName = "LyrebirdDemo"
BlueprintName = "LyrebirdDemo"
ReferencedContainer = "container:LyrebirdDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
@@ -0,0 +1,136 @@
// BufferDemos.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import Foundation
import LyrebirdSynth
final class BufferDemos: DemoProtocol {
private let engine: SynthesisEngine
init(engine: SynthesisEngine) {
self.engine = engine
}
func runDemo() {
// BufferDemos.swift lives at .../Demos/LyrebirdDemo/LyrebirdDemo/Demos/BufferDemos.swift
// — 4 components up to reach .../Demos/ where Perc.aiff lives.
let percURL = URL(fileURLWithPath: #filePath)
.deletingLastPathComponent() // .../Demos/
.deletingLastPathComponent() // .../LyrebirdDemo/
.deletingLastPathComponent() // .../LyrebirdDemo (package)/
.deletingLastPathComponent() // .../Demos/
.appendingPathComponent("Mozart.aiff")
let percBuffer: LyrebirdBuffer
do {
percBuffer = try LyrebirdBuffer.load(url: percURL)
print("Loaded \(percURL.lastPathComponent): \(percBuffer.count) frames, SR \(percBuffer.sampleRate.map { "\($0) Hz" } ?? "unknown")")
} catch {
print("Failed to load Perc.aiff: \(error)")
engine.stop()
exit(1)
}
let sampleRate = engine.sampleRate
LyrebirdTask.run(engine: engine) { ctx in
// Demo 1 — PlayBuffer (looping at native rate)
print("\n── Demo 1: PlayBuffer (looping) ──")
let demo1 = PercPlayBuffer(buffer: percBuffer, engineSampleRate: sampleRate)
ctx.add(demo1)
try ctx.wait(seconds: 6)
ctx.remove(demo1)
try ctx.wait(seconds: 0.2)
// Demo 2 — BufferRead (sine-wave position scan)
print("\n── Demo 2: BufferRead (sine-wave position scan) ──")
let demo2 = PercBufferRead(buffer: percBuffer)
ctx.add(demo2)
try ctx.wait(seconds: 6)
ctx.remove(demo2)
try ctx.wait(seconds: 0.2)
// Demo 3 — PlayBuffer → PitchShift (cycling through pitch ratios)
print("\n── Demo 3: PlayBuffer → PitchShift ──")
let demo3 = PercPitchShift(buffer: percBuffer, engineSampleRate: sampleRate)
ctx.add(demo3)
let pitchSteps: [(Double, String)] = [
(0.5, "0.5 — octave down"),
(0.75, "0.75 — minor third down"),
(1.0, "1.0 — original pitch"),
(1.5, "1.5 — perfect fifth up"),
(2.0, "2.0 — octave up"),
]
for (ratio, label) in pitchSteps {
print(" pitchRatio \(label)")
demo3.pitchRatio = ratio
try ctx.wait(seconds: 3)
}
ctx.remove(demo3)
try ctx.wait(seconds: 0.5)
// Demo 4 — PlayBuffer → SpectralChain.Audio (with SpectralPitchShift)
print("\n── Demo 4: PlayBuffer → SpectralChain.Audio (SpectralPitchShift) ──")
let spectralRatios: [(Double, String)] = [
(0.5, "0.5 — octave down (phase vocoder)"),
(1.0, "1.0 — no shift (phase vocoder passthrough)"),
(1.5, "1.5 — perfect fifth up (phase vocoder)"),
(2.0, "2.0 — octave up (phase vocoder)"),
]
for (ratio, label) in spectralRatios {
print(" pitchRatio \(label)")
let demo4 = PercSpectralPitchShift(buffer: percBuffer, pitchRatio: ratio, engineSampleRate: sampleRate)
ctx.add(demo4)
try ctx.wait(seconds: 5)
ctx.remove(demo4)
try ctx.wait(seconds: 0.3)
}
// Demo 5 — SpectralChain.Audio fan-out (mono → 2-channel decorrelated stereo)
print("\n── Demo 5: SpectralChain.Audio fan-out (SpectralStereoDiffuse) ──")
let diffuseSteps: [(Double, String)] = [
(0.0, "0.0 — bypass (mono passthrough on both channels)"),
(0.5, "0.5 — half decorrelation"),
(1.0, "1.0 — full per-channel phase randomisation"),
]
for (amount, label) in diffuseSteps {
print(" amount \(label)")
let demo5 = PercSpectralStereoDiffuse(
buffer: percBuffer, amount: amount, engineSampleRate: sampleRate)
ctx.add(demo5)
try ctx.wait(seconds: 5)
ctx.remove(demo5)
try ctx.wait(seconds: 0.3)
}
// Demo 6 — TimeStretch (granular, pitch-preserved time stretching + compression)
print("\n── Demo 6: TimeStretch (granular time-stretch / compression) ──")
let stretchSteps: [(Double, String)] = [
(3.0, "3.0 — 3× stretch (one-third speed, pitch preserved)"),
(1.5, "1.5 — 1.5× stretch (three-quarter speed, pitch preserved)"),
(1.0, "1.0 — native speed (no stretch)"),
(0.5, "0.5 — 2× compression (double speed, pitch preserved)"),
(0.33, "0.33 — 3× compression (triple speed, pitch preserved)"),
]
for (factor, label) in stretchSteps {
print(" stretchFactor \(label)")
let demo6 = PercTimeStretch(buffer: percBuffer, stretchFactor: factor)
ctx.add(demo6)
try ctx.wait(seconds: 6)
ctx.remove(demo6)
try ctx.wait(seconds: 0.3)
}
print("\nAll buffer demos complete.")
}
}
}
@@ -0,0 +1,11 @@
// DemoProtocol.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import LyrebirdSynth
protocol DemoProtocol {
func runDemo()
}
@@ -0,0 +1,42 @@
// ReverbDemo.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
//
// BufferDemos 2.swift
// LyrebirdDemo
//
// Created by Joshua Parmenter on 5/6/26.
//
import Foundation
import LyrebirdSynth
final class ReverbDemo: DemoProtocol {
private let engine: SynthesisEngine
init(engine: SynthesisEngine) {
self.engine = engine
}
func runDemo() {
let sampleRate = engine.sampleRate
// sets up its own thread / timing, etc
LyrebirdTask.run(engine: engine) { [sampleRate] ctx in
ctx.tempo = 60.0
let reverbDemo = GVerbTest(
sampleRate: sampleRate
)
ctx.add(reverbDemo)
try ctx.wait(beats: 6) // could also use seconds
ctx.remove(reverbDemo)
print("\nAll buffer demos complete.")
}
}
}
@@ -0,0 +1,36 @@
// PercBufferRead.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import LyrebirdSynth
/// BufferRead demo — normalized-position random-access playback driven by a sine-wave position.
///
/// `BufferRead.Audio` has no internal play-head; position `[0,1]` is entirely external.
/// Here an `OscSin` at the buffer's natural loop frequency is mapped from `[-1, 1]` to `[0, 1]`
/// to sweep forward and backward through the sample sinusoidally. This produces a natural
/// pitch-warping effect as the scan accelerates through the middle and slows at the ends.
///
/// For a true sawtooth scan (constant-speed linear loop), replace the position expression
/// with a dedicated `Phasor.Audio` when available in the stdlib.
final class PercBufferRead: SynthesizerBase {
let buffer: LyrebirdBuffer
init(buffer: LyrebirdBuffer) {
self.buffer = buffer
super.init()
}
override func build() {
// phasorFrequency: frequency at which a linear phasor sweeps 0→1 in one buffer duration.
let scanFreq = buffer.phasorFrequency ?? 1.0
// Sine at scanFreq maps [-1, 1] → [0, 1] giving a smooth forward+backward position sweep.
let position = (OscSin.Audio(freq: scanFreq) + 1.0) * 0.5
let reader = BufferRead.Audio(buffer: buffer, position: position, interpolation: .linear)
output(bus: 0, source: Pan2(input: reader[0], mul: 0.6))
}
}
@@ -0,0 +1,30 @@
// PercPlayBuffer.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import LyrebirdSynth
/// Looping PlayBuffer demo — plays `Perc.aiff` in a continuous loop at native sample rate.
///
/// `nativeRateScale` compensates for any mismatch between the file's sample rate and the
/// engine's sample rate. For a stereo engine the mono buffer's single channel is centred
/// via `Pan2`.
final class PercPlayBuffer: SynthesizerBase {
let buffer: LyrebirdBuffer
let engineSampleRate: Double
init(buffer: LyrebirdBuffer, engineSampleRate: Double) {
self.buffer = buffer
self.engineSampleRate = engineSampleRate
super.init()
}
override func build() {
// Compensate for any file SR ≠ engine SR (e.g. 44.1 kHz file in 48 kHz engine).
let rateScale = buffer.nativeRateScale(engineSampleRate: engineSampleRate)
let player = PlayBuffer.Audio(buffer: buffer, loop: true, rate: rateScale)
output(bus: 0, source: Pan2(input: player[0], mul: 0.6))
}
}
@@ -0,0 +1,35 @@
// GVerbTest.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
//
// GVerbTest.swift
// LyrebirdDemo
//
// Created by Joshua Parmenter on 5/6/26.
//
import LyrebirdSynth
final class GVerbTest: SynthesizerBase {
private let sampleRate: Double
init(sampleRate: Double) {
self.sampleRate = sampleRate
}
override func build() {
let impulse = Impulse.Audio(freq: 0.5)
let reverb = GVerb.Audio(source: impulse,
roomSize: 70.0,
reverbTime: 3.0,
earlyLevel: 0.4,
tailLevel: 0.9,
dryLevel: 0.1,
sampleRate: sampleRate
)
output(bus: 0, source: reverb)
}
}
@@ -0,0 +1,30 @@
// DelaySample.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import LyrebirdSynth
final class DelaySample: SynthesizerBase {
let delayTime: any ValidGeneratorInput
let amp: any ValidGeneratorInput
init(delayTime: any ValidGeneratorInput, amp: any ValidGeneratorInput = 0.2) {
self.delayTime = delayTime
self.amp = amp
super.init()
}
override func build() {
let testTone = OscSin.Audio(freq: 220.0) * 0.1
let delay = DelayLine(
input: testTone,
maxDelay: 2.0,
delay: delayTime + (OscSin.Audio(freq: 0.4) * 0.05),
interpolation: DelayInterpolation.cubic
)
output(bus: 0, source: testTone)
output(bus: 1, source: delay)
}
}
@@ -0,0 +1,46 @@
// SineTone.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import LyrebirdSynth
/// Stereo sine tone with runtime-updatable frequency and amplitude.
///
/// Parameters are declared as `@LiveParam` properties, backed by `ParameterNode` — a
/// lock-free atomic `AudioGenerator`. Setting a property on the main thread issues a
/// releasing atomic store; the RT thread picks up the new value at the start of the next
/// block and linearly ramps to it over the block, preventing clicks on frequency jumps.
///
/// Usage:
/// ```swift
/// let tone = SineTone()
/// try engine.add(tone)
/// Thread.sleep(forTimeInterval: 2.0)
/// tone.freq = 880.0 // no try, no string — RT-safe atomic write
/// ```
final class SineTone: SynthesizerBase {
let freq: any ValidGeneratorInput
let amp: any ValidGeneratorInput
let outbus: AudioBus
init(
freq: any ValidGeneratorInput,
amp: any ValidGeneratorInput = 0.2,
outbus: AudioBus
) {
self.freq = freq
self.amp = amp
self.outbus = outbus
super.init()
}
override func build() {
// $freq and $amp are ParameterNodes (AudioGenerator) — OscSin detects them as
// generators and requests a full per-sample interpolated block each block.
let osc = OscSin.Audio(freq: freq)
output(bus: outbus.index, source: Pan2(input: osc * amp))
}
}
@@ -0,0 +1,47 @@
// PercPitchShift.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import LyrebirdSynth
/// Granular pitch-shift demo — looping PlayBuffer fed into TuneablePitchShift.Audio.
///
/// `pitchRatio` is a `@LiveParam`-backed `ParameterNode` wired directly into
/// `TuneablePitchShift.Audio`. Updating `synth.pitchRatio` on the main thread issues an
/// atomic store; the RT thread ramps to the new value at the next block boundary.
///
/// Pitch ratios:
/// 0.5 = one octave down
/// 0.75 = a minor third down
/// 1.0 = no shift (original pitch)
/// 1.5 = a perfect fifth up
/// 2.0 = one octave up
final class PercPitchShift: SynthesizerBase {
let buffer: LyrebirdBuffer
let engineSampleRate: Double
@LiveParam var pitchRatio: Double = 1.0
init(buffer: LyrebirdBuffer, engineSampleRate: Double) {
self.buffer = buffer
self.engineSampleRate = engineSampleRate
super.init()
}
override func build() {
let rateScale = buffer.nativeRateScale(engineSampleRate: engineSampleRate)
let player = PlayBuffer.Audio(buffer: buffer, loop: true, rate: rateScale)
// $pitchRatio is a ParameterNode — polled once per block by TuneablePitchShift.
let shifted = TuneablePitchShift.Audio(
input: player[0],
pitchRatio: $pitchRatio,
windowSize: 0.11,
overlap: 4,
timeDispersion: 0.01,
interpolation: .cubic
)
output(bus: 0, source: Pan2(input: shifted, mul: 0.5))
}
}
@@ -0,0 +1,66 @@
// PercTimeStretch.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import LyrebirdSynth
/// Granular time-stretch demo — drives `TimeStretch.Audio` with a looping position pointer
/// that advances at a rate determined by `stretchFactor`.
///
/// - `stretchFactor > 1.0` = time stretch (e.g. 2.0 = half speed, pitch preserved)
/// - `stretchFactor = 1.0` = native speed
/// - `stretchFactor < 1.0` = time compression (e.g. 0.5 = double speed, pitch preserved)
///
/// `pos` is driven by a `Closure` that maintains a block-rate accumulator,
/// wrapping 0→1 to loop the buffer continuously. The closure is lazily initialised on
/// the first RT block so it can read `sampleRate` and `blockSize` from the live engine.
final class PercTimeStretch: SynthesizerBase {
let buffer: LyrebirdBuffer
let stretchFactor: Double
init(buffer: LyrebirdBuffer, stretchFactor: Double) {
self.buffer = buffer
self.stretchFactor = max(0.01, stretchFactor)
super.init()
}
override func build() {
let nativeDuration = Double(buffer.count) / (buffer.sampleRate ?? 44100.0)
let sf = stretchFactor
var posAccum: Double = 0.0
var posIncPerBlock: Double = 0.0
var posIncInitialized: Bool = false
let posGen = Closure { graph, _ in
if !posIncInitialized {
let sr = Double(graph.engine.sampleRate)
let blockSize = Double(graph.engine.blockSize)
// Advance pos by this much each block to traverse 0→1 in (nativeDuration*sf) sec.
posIncPerBlock = blockSize / (sr * nativeDuration * sf)
posIncInitialized = true
}
let pos = posAccum
posAccum += posIncPerBlock
if posAccum >= 1.0 { posAccum -= 1.0 }
return pos
}
let ts = TimeStretch.Audio(
buffer: buffer,
pos: posGen,
pitchRatio: 1.0,
windowSize: 0.11,
overlap: 6,
timeDispersion: 0.009,
grainDurationJitter: 0.05,
loop: true
)
ts.amp = 0.8
// Perc.aiff is mono — ts[0] picks channel 0; Pan2 centers it.
output(bus: 0, source: Pan2(input: ts, mul: 1.0))
}
}
@@ -0,0 +1,58 @@
// PercSpectralPitchShift.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import LyrebirdSynth
/// Phase-vocoder spectral pitch-shift demo — PlayBuffer → SpectralChain.Audio (with SpectralPitchShift).
///
/// Signal chain:
/// 1. `PlayBuffer.Audio` reads Perc.aiff in a loop at native rate.
/// 2. `SpectralChain.Audio` bins the signal into polar (magnitude + phase) spectral
/// frames every `hopSize` samples, dispatches the registered `SpectralPitchShift`
/// processor, and resynthesises audio via overlap-add.
///
/// The phase vocoder introduces latency of approximately `fftSize` samples (≈ 43 ms at 48 kHz
/// with fftSize = 2048). Transient sharpness is reduced compared to granular pitch shifting —
/// this sounds more "smeared" but with better tonal coherence on sustained sounds.
///
/// Pitch ratios > 1.0 shift up; < 1.0 shift down. Range is (0, 4].
final class PercSpectralPitchShift: SynthesizerBase {
let buffer: LyrebirdBuffer
let pitchRatio: Double
let engineSampleRate: Double
init(buffer: LyrebirdBuffer, pitchRatio: Double = 1.5, engineSampleRate: Double) {
self.buffer = buffer
self.pitchRatio = pitchRatio
self.engineSampleRate = engineSampleRate
super.init()
}
override func build() {
let rateScale = buffer.nativeRateScale(engineSampleRate: engineSampleRate)
let player = PlayBuffer.Audio(
buffer: buffer,
loop: true,
rate: rateScale
)
let fftSize = 2048
let hopSize = 512
// SpectralPitchShift is a SpectralProcessor — runs inside SpectralChain.Audio each hop.
let shifter = SpectralPitchShift(fftSize: fftSize, hopSize: hopSize, pitchRatio: pitchRatio)
// Single Generator owns the analysis + processor + IFFT pipeline.
let chain = SpectralChain.Audio(
input: player[0],
fftSize: fftSize,
hopSize: hopSize,
stages: [.mono(shifter)]
)
output(bus: 0, source: Pan2(input: chain, mul: 0.5))
}
}
@@ -0,0 +1,58 @@
// PercSpectralStereoDiffuse.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import LyrebirdSynth
/// SpectralChain.Audio fan-out demo — mono PlayBuffer → SpectralChain.Audio
/// (with SpectralStereoDiffuse) → 2-channel decorrelated stereo output.
///
/// Signal chain:
/// 1. `PlayBuffer.Audio` reads Perc.aiff in a loop at native rate.
/// 2. `SpectralChain.Audio` runs the forward FFT once, then dispatches
/// `SpectralStereoDiffuse` as a `SpectralFanOutProcessor` to write
/// two independent destination buffers (anti-correlated phase
/// randomisation per bin, magnitudes preserved).
/// 3. Two IFFT bank channels resynthesise to a 2-channel output. The
/// chain output is multi-row — wire `chain[0]` to bus 0, `chain[1]`
/// to bus 1.
///
/// `amount = 0` is exact bypass (both channels match the input).
/// `amount = 1` is full per-channel randomisation — wide decorrelated stereo.
final class PercSpectralStereoDiffuse: SynthesizerBase {
let buffer: LyrebirdBuffer
let amount: Double
let engineSampleRate: Double
init(buffer: LyrebirdBuffer, amount: Double = 0.8, engineSampleRate: Double) {
self.buffer = buffer
self.amount = amount
self.engineSampleRate = engineSampleRate
super.init()
}
override func build() {
let rateScale = buffer.nativeRateScale(engineSampleRate: engineSampleRate)
let player = PlayBuffer.Audio(buffer: buffer, loop: true, rate: rateScale)
let fftSize = 2048
let hopSize = 512
let diffuser = SpectralStereoDiffuse(amount: amount, seed: 0xDEADBEEF)
// Fan-out path: SpectralChain.Audio runs forward FFT once, then
// populates two destination buffers via the fanOut processor, then
// runs two IFFTs to produce a 2-channel output.
let chain = SpectralChain.Audio(
input: player[0],
fftSize: fftSize,
hopSize: hopSize,
fanOut: diffuser,
mul: 0.5
)
output(bus: 0, source: chain) // 2 channels out
}
}
@@ -0,0 +1,27 @@
// main.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import Foundation
import LyrebirdSynth
let engine = SynthesisEngine(
blockSize: 512,
sampleRate: 48000,
numOutputChannels: 2,
numInputChannels: 2,
driver: CoreAudioDriver()
)
do {
try engine.start()
} catch {
print("Engine failed to start: \(error)")
exit(1)
}
BufferDemos(engine: engine).runDemo()
//ReverbDemo(engine: engine).runDemo()
engine.stop()
+24
View File
@@ -0,0 +1,24 @@
{
"originHash" : "6f06852651ad22a81b6dc75b6f4ee00fbaffb3782ac523486a02978ee45ac96b",
"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
}
+25
View File
@@ -0,0 +1,25 @@
// Package.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "LyrebirdDemo",
platforms: [.macOS(.v15)],
dependencies: [
.package(path: "../.."),
],
targets: [
.executableTarget(
name: "LyrebirdDemo",
dependencies: [
.product(name: "Lyrebird", package: "LyrebirdII"),
],
path: "LyrebirdDemo"
),
]
)