1.0.0 release
This commit is contained in:
@@ -0,0 +1,389 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 60;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
B9C00000000000000000000B /* LyrebirdiOSDemoApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9C000000000000000000007 /* LyrebirdiOSDemoApp.swift */; };
|
||||
B9C00000000000000000000C /* NoteController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9C000000000000000000008 /* NoteController.swift */; };
|
||||
B9C00000000000000000000D /* SineToneUI.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9C000000000000000000009 /* SineToneUI.swift */; };
|
||||
B9C00000000000000000000E /* SineToneView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9C00000000000000000000A /* SineToneView.swift */; };
|
||||
B9C00000000000000000000F /* LyrebirdUI in Frameworks */ = {isa = PBXBuildFile; productRef = B9C00000000000000000001C /* LyrebirdUI */; };
|
||||
B9C000000000000000000020 /* SpectralBinDelayUI.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9C00000000000000000001F /* SpectralBinDelayUI.swift */; };
|
||||
B9C000000000000000000022 /* BinDelayController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9C000000000000000000021 /* BinDelayController.swift */; };
|
||||
B9C000000000000000000024 /* BinDelayView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9C000000000000000000023 /* BinDelayView.swift */; };
|
||||
B9C000000000000000000028 /* VectorOscillatorUI.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9C000000000000000000025 /* VectorOscillatorUI.swift */; };
|
||||
B9C000000000000000000029 /* VectorOscillatorController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9C000000000000000000026 /* VectorOscillatorController.swift */; };
|
||||
B9C00000000000000000002A /* VectorOscillatorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9C000000000000000000027 /* VectorOscillatorView.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
B9C000000000000000000004 /* LyrebirdiOSDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LyrebirdiOSDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
B9C000000000000000000006 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
B9C000000000000000000007 /* LyrebirdiOSDemoApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LyrebirdiOSDemoApp.swift; sourceTree = "<group>"; };
|
||||
B9C000000000000000000008 /* NoteController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NoteController.swift; sourceTree = "<group>"; };
|
||||
B9C000000000000000000009 /* SineToneUI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SineToneUI.swift; sourceTree = "<group>"; };
|
||||
B9C00000000000000000000A /* SineToneView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SineToneView.swift; sourceTree = "<group>"; };
|
||||
B9C00000000000000000001F /* SpectralBinDelayUI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpectralBinDelayUI.swift; sourceTree = "<group>"; };
|
||||
B9C000000000000000000021 /* BinDelayController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BinDelayController.swift; sourceTree = "<group>"; };
|
||||
B9C000000000000000000023 /* BinDelayView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BinDelayView.swift; sourceTree = "<group>"; };
|
||||
B9C000000000000000000025 /* VectorOscillatorUI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VectorOscillatorUI.swift; sourceTree = "<group>"; };
|
||||
B9C000000000000000000026 /* VectorOscillatorController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VectorOscillatorController.swift; sourceTree = "<group>"; };
|
||||
B9C000000000000000000027 /* VectorOscillatorView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VectorOscillatorView.swift; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
B9C000000000000000000011 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B9C00000000000000000000F /* LyrebirdUI in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
B9C000000000000000000002 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
B9C000000000000000000005 /* LyrebirdiOSDemo */,
|
||||
B9C000000000000000000003 /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
B9C000000000000000000003 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
B9C000000000000000000004 /* LyrebirdiOSDemo.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
B9C000000000000000000005 /* LyrebirdiOSDemo */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
B9C000000000000000000007 /* LyrebirdiOSDemoApp.swift */,
|
||||
B9C00000000000000000001D /* UI */,
|
||||
B9C00000000000000000001E /* Synthesizers */,
|
||||
B9C000000000000000000006 /* Info.plist */,
|
||||
);
|
||||
path = LyrebirdiOSDemo;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
B9C00000000000000000001D /* UI */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
B9C000000000000000000008 /* NoteController.swift */,
|
||||
B9C00000000000000000000A /* SineToneView.swift */,
|
||||
B9C000000000000000000021 /* BinDelayController.swift */,
|
||||
B9C000000000000000000023 /* BinDelayView.swift */,
|
||||
B9C000000000000000000026 /* VectorOscillatorController.swift */,
|
||||
B9C000000000000000000027 /* VectorOscillatorView.swift */,
|
||||
);
|
||||
path = UI;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
B9C00000000000000000001E /* Synthesizers */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
B9C000000000000000000009 /* SineToneUI.swift */,
|
||||
B9C00000000000000000001F /* SpectralBinDelayUI.swift */,
|
||||
B9C000000000000000000025 /* VectorOscillatorUI.swift */,
|
||||
);
|
||||
path = Synthesizers;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
B9C000000000000000000013 /* LyrebirdiOSDemo */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = B9C000000000000000000014 /* Build configuration list for PBXNativeTarget "LyrebirdiOSDemo" */;
|
||||
buildPhases = (
|
||||
B9C000000000000000000010 /* Sources */,
|
||||
B9C000000000000000000011 /* Frameworks */,
|
||||
B9C000000000000000000012 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = LyrebirdiOSDemo;
|
||||
packageProductDependencies = (
|
||||
B9C00000000000000000001C /* LyrebirdUI */,
|
||||
);
|
||||
productName = LyrebirdiOSDemo;
|
||||
productReference = B9C000000000000000000004 /* LyrebirdiOSDemo.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
B9C000000000000000000001 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
BuildIndependentTargetsInParallel = 1;
|
||||
LastSwiftUpdateCheck = 1600;
|
||||
LastUpgradeCheck = 2620;
|
||||
TargetAttributes = {
|
||||
B9C000000000000000000013 = {
|
||||
CreatedOnToolsVersion = 16.0;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = B9C000000000000000000017 /* Build configuration list for PBXProject "LyrebirdiOSDemo" */;
|
||||
compatibilityVersion = "Xcode 14.0";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
mainGroup = B9C000000000000000000002;
|
||||
packageReferences = (
|
||||
B9C00000000000000000001A /* XCLocalSwiftPackageReference "../.." */,
|
||||
);
|
||||
productRefGroup = B9C000000000000000000003 /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
B9C000000000000000000013 /* LyrebirdiOSDemo */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
B9C000000000000000000012 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
B9C000000000000000000010 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B9C00000000000000000000B /* LyrebirdiOSDemoApp.swift in Sources */,
|
||||
B9C00000000000000000000C /* NoteController.swift in Sources */,
|
||||
B9C00000000000000000000D /* SineToneUI.swift in Sources */,
|
||||
B9C00000000000000000000E /* SineToneView.swift in Sources */,
|
||||
B9C000000000000000000020 /* SpectralBinDelayUI.swift in Sources */,
|
||||
B9C000000000000000000022 /* BinDelayController.swift in Sources */,
|
||||
B9C000000000000000000024 /* BinDelayView.swift in Sources */,
|
||||
B9C000000000000000000028 /* VectorOscillatorUI.swift in Sources */,
|
||||
B9C000000000000000000029 /* VectorOscillatorController.swift in Sources */,
|
||||
B9C00000000000000000002A /* VectorOscillatorView.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
B9C000000000000000000015 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
INFOPLIST_FILE = LyrebirdiOSDemo/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = net.realizedsound.LyrebirdiOSDemo;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = iphoneos;
|
||||
SUPPORTS_MACCATALYST = NO;
|
||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
B9C000000000000000000016 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
INFOPLIST_FILE = LyrebirdiOSDemo/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = net.realizedsound.LyrebirdiOSDemo;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SDKROOT = iphoneos;
|
||||
SUPPORTS_MACCATALYST = NO;
|
||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
B9C000000000000000000018 /* 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;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
DEVELOPMENT_TEAM = HE5VJFE9E4;
|
||||
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;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
|
||||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
||||
MTL_FAST_MATH = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
STRING_CATALOG_GENERATE_SYMBOLS = YES;
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
B9C000000000000000000019 /* 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;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
DEVELOPMENT_TEAM = HE5VJFE9E4;
|
||||
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;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
MTL_FAST_MATH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
STRING_CATALOG_GENERATE_SYMBOLS = YES;
|
||||
SWIFT_COMPILATION_MODE = wholemodule;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-O";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
B9C000000000000000000014 /* Build configuration list for PBXNativeTarget "LyrebirdiOSDemo" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
B9C000000000000000000015 /* Debug */,
|
||||
B9C000000000000000000016 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
B9C000000000000000000017 /* Build configuration list for PBXProject "LyrebirdiOSDemo" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
B9C000000000000000000018 /* Debug */,
|
||||
B9C000000000000000000019 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
|
||||
/* Begin XCLocalSwiftPackageReference section */
|
||||
B9C00000000000000000001A /* XCLocalSwiftPackageReference "../.." */ = {
|
||||
isa = XCLocalSwiftPackageReference;
|
||||
relativePath = ../..;
|
||||
};
|
||||
/* End XCLocalSwiftPackageReference section */
|
||||
|
||||
/* Begin XCSwiftPackageProductDependency section */
|
||||
B9C00000000000000000001C /* LyrebirdUI */ = {
|
||||
isa = XCSwiftPackageProductDependency;
|
||||
package = B9C00000000000000000001A /* XCLocalSwiftPackageReference "../.." */;
|
||||
productName = LyrebirdUI;
|
||||
};
|
||||
/* End XCSwiftPackageProductDependency section */
|
||||
};
|
||||
rootObject = B9C000000000000000000001 /* Project object */;
|
||||
}
|
||||
+24
@@ -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
|
||||
}
|
||||
+78
@@ -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 = "B9C000000000000000000013"
|
||||
BuildableName = "LyrebirdiOSDemo.app"
|
||||
BlueprintName = "LyrebirdiOSDemo"
|
||||
ReferencedContainer = "container:LyrebirdiOSDemo.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 = "B9C000000000000000000013"
|
||||
BuildableName = "LyrebirdiOSDemo.app"
|
||||
BlueprintName = "LyrebirdiOSDemo"
|
||||
ReferencedContainer = "container:LyrebirdiOSDemo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Release"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B9C000000000000000000013"
|
||||
BuildableName = "LyrebirdiOSDemo.app"
|
||||
BlueprintName = "LyrebirdiOSDemo"
|
||||
ReferencedContainer = "container:LyrebirdiOSDemo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?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>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>Lyrebird uses the microphone for audio input processing.</string>
|
||||
<key>UIApplicationSceneManifest</key>
|
||||
<dict>
|
||||
<key>UIApplicationSupportsMultipleScenes</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>UILaunchScreen</key>
|
||||
<dict/>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Copyright © 2026 Realized Sound. All rights reserved.</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,80 @@
|
||||
// LyrebirdiOSDemoApp.swift
|
||||
// Lyrebird
|
||||
//
|
||||
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import SwiftUI
|
||||
import AVFoundation
|
||||
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 = .vector
|
||||
// ──────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
@main
|
||||
struct LyrebirdiOSDemoApp: App {
|
||||
|
||||
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
|
||||
|
||||
init() {
|
||||
// Pre-activate AVAudioSession to discover the hardware's committed sample rate
|
||||
// before constructing SynthesisEngine. iOS devices often lock to 48000 Hz regardless
|
||||
// of the preferred rate — using the actual rate avoids pitch errors and choppy audio.
|
||||
let session = AVAudioSession.sharedInstance()
|
||||
try? session.setCategory(.playback, mode: .default)
|
||||
try? session.setActive(true)
|
||||
let sampleRate = session.sampleRate // actual hardware rate (44100 or 48000)
|
||||
|
||||
let driver = iOSAudioDriver()
|
||||
let eng = SynthesisEngine(
|
||||
blockSize: 512,
|
||||
sampleRate: sampleRate,
|
||||
numOutputChannels: 2,
|
||||
numInputChannels: 0,
|
||||
driver: driver
|
||||
)
|
||||
let scopeCapture = ScopeCapture(buses: [0, 1], bufferSize: 2048)
|
||||
eng.scopeTap = scopeCapture
|
||||
self.engine = eng
|
||||
self.vectorController = VectorOscillatorController(
|
||||
engine: eng,
|
||||
synth: VectorOscillatorUI(),
|
||||
scopeCapture: scopeCapture
|
||||
)
|
||||
self.sineController = NoteController(
|
||||
engine: eng,
|
||||
synth: SineToneUI(),
|
||||
scopeCapture: scopeCapture
|
||||
)
|
||||
self.binDelayController = BinDelayController(
|
||||
engine: eng,
|
||||
scopeCapture: scopeCapture
|
||||
)
|
||||
}
|
||||
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
switch demo {
|
||||
case .vector:
|
||||
VectorOscillatorView(controller: vectorController)
|
||||
.onDisappear { engine.stop() }
|
||||
case .binDelay:
|
||||
BinDelayView(controller: binDelayController)
|
||||
.onDisappear { engine.stop() }
|
||||
case .sineTone:
|
||||
SineToneView(controller: sineController)
|
||||
.onDisappear { engine.stop() }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,131 @@
|
||||
// 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 (iOS).
|
||||
///
|
||||
/// Shows engine and synth toggle buttons, two `MultiSlider` rows for
|
||||
/// per-bin delay times and feedbacks, an engine status strip, and a scope.
|
||||
/// Wrapped in a vertical `ScrollView` for compact-height device compatibility;
|
||||
/// each `MultiSlider` is also wrapped in a horizontal `ScrollView` so all
|
||||
/// `SpectralBinDelayUI.halfSize` (512) bin bars remain draggable on narrow
|
||||
/// iPhone screens. 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 sliderRowWidth: CGFloat = 1280
|
||||
private let maxFeedback = 0.95
|
||||
|
||||
var body: some View {
|
||||
ScrollView {
|
||||
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 {
|
||||
ScrollView(.horizontal, showsIndicators: true) {
|
||||
MultiSlider(
|
||||
buffer: synth.delayTimes,
|
||||
count: SpectralBinDelayUI.halfSize,
|
||||
range: 0.0...1.0,
|
||||
height: sliderHeight
|
||||
)
|
||||
.frame(width: sliderRowWidth)
|
||||
}
|
||||
} 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 {
|
||||
ScrollView(.horizontal, showsIndicators: true) {
|
||||
MultiSlider(
|
||||
buffer: synth.feedbacks,
|
||||
count: SpectralBinDelayUI.halfSize,
|
||||
range: 0.0...maxFeedback,
|
||||
height: sliderHeight
|
||||
)
|
||||
.frame(width: sliderRowWidth)
|
||||
}
|
||||
} else {
|
||||
placeholderSlider(label: "Start synthesizer to enable")
|
||||
}
|
||||
|
||||
Divider()
|
||||
|
||||
LyrebirdStatusView(engine: controller.engine)
|
||||
|
||||
Divider()
|
||||
|
||||
LyrebirdScopeView(capture: controller.scopeCapture)
|
||||
.frame(height: 120)
|
||||
}
|
||||
.padding(20)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Helpers
|
||||
|
||||
@ViewBuilder
|
||||
private func placeholderSlider(label: String) -> some View {
|
||||
ZStack {
|
||||
Color.lyrebirdControlBackground
|
||||
Text(label)
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
.frame(height: sliderHeight)
|
||||
.frame(maxWidth: .infinity)
|
||||
.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,112 @@
|
||||
// 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 {
|
||||
ScrollView {
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,80 @@
|
||||
// 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 {
|
||||
ScrollView {
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user