62b2f5dbec
LyrebirdRandom scalar distribution sampling (seedable value type + shared Random) with DistributionKind.sample dispatcher. Live Scratch editor: rename to LyrebirdScratch, App Support artifact staging, Format Code (⌥⌘F), Render to File (⌥⌘R offline CAF), line-number gutter, manual completion, Foundation in snippets, scroll-jump fix, scheduling/NRT docs.
188 lines
3.0 KiB
Markdown
188 lines
3.0 KiB
Markdown
# ``LyrebirdSynth``
|
|
|
|
A native macOS audio synthesis framework for Swift.
|
|
|
|
## Overview
|
|
|
|
Lyrebird provides a signal-graph engine backed by Core Audio. You define instruments and effects as ``Synthesizer`` instances containing networks of ``Generator`` objects, then add them to a running ``SynthesisEngine``. All signal processing runs on the Core Audio real-time thread with no heap allocation in steady state.
|
|
|
|
```swift
|
|
let driver = CoreAudioDriver()
|
|
let engine = SynthesisEngine(
|
|
blockSize: 512, sampleRate: 44100,
|
|
numOutputChannels: 2, numInputChannels: 0,
|
|
driver: driver
|
|
)
|
|
try engine.start()
|
|
try engine.add(MySynth()) // MySynth — your SynthesizerBase subclass
|
|
```
|
|
|
|
## Topics
|
|
|
|
### Getting Started
|
|
|
|
- <doc:GettingStarted>
|
|
- <doc:EngineSetup>
|
|
- <doc:NodeTree>
|
|
- <doc:BusSystem>
|
|
- <doc:Scheduling>
|
|
|
|
### Generator Concepts
|
|
|
|
- <doc:GeneratorProtocol>
|
|
- <doc:WritingGenerators>
|
|
- <doc:MultiChannel>
|
|
- ``GeneratorEnum``
|
|
- ``SampleLoop``
|
|
|
|
### Oscillators and Noise
|
|
|
|
- <doc:Oscillators>
|
|
- <doc:Noise>
|
|
- <doc:RandomAndJitter>
|
|
|
|
### Buffer Utilities
|
|
|
|
- <doc:BufferGuide>
|
|
- <doc:WavetableFill>
|
|
- ``LyrebirdBuffer``
|
|
- ``WavetableSet``
|
|
|
|
### Filter Library
|
|
|
|
- <doc:Filters>
|
|
|
|
### Waveshaping and Distortion
|
|
|
|
- <doc:Waveshaping>
|
|
|
|
### Reverb Library
|
|
|
|
- <doc:Reverbs>
|
|
|
|
### Physical Models
|
|
|
|
- <doc:PhysicalModels>
|
|
|
|
### Spectral
|
|
|
|
- ``SpectralChain``
|
|
|
|
### Signal Analysis
|
|
|
|
- <doc:SignalAnalysis>
|
|
- <doc:SpectralFeatures>
|
|
|
|
### Triggers and Timing
|
|
|
|
- <doc:Triggers>
|
|
|
|
### Pitch Shifting
|
|
|
|
- <doc:PitchShifting>
|
|
- ``PitchShift``
|
|
- ``SpectralPitchShift``
|
|
|
|
### Envelopes and Delays
|
|
|
|
- <doc:Envelopes>
|
|
- <doc:Delays>
|
|
|
|
### Halfband oversampling
|
|
|
|
- <doc:Oversampling>
|
|
- ``HalfbandUpsampler2x``
|
|
- ``HalfbandDownsampler2x``
|
|
- ``HalfbandUpsampler4x``
|
|
- ``HalfbandDownsampler4x``
|
|
|
|
### Math and Bus I/O
|
|
|
|
- <doc:MathAndArithmetic>
|
|
- <doc:MusicalMath>
|
|
- <doc:BusIO>
|
|
- <doc:Routing>
|
|
|
|
### Bus Allocation
|
|
|
|
- ``BusAllocator``
|
|
- ``AudioBus``
|
|
- ``ControlBus``
|
|
- ``BusAllocatorError``
|
|
|
|
### Synthesizers
|
|
|
|
- <doc:SynthesizerProtocol>
|
|
- <doc:ParameterInputs>
|
|
- <doc:PolyphonicVoices>
|
|
- ``VoicePool``
|
|
- ``VoiceStealStrategy``
|
|
- ``VoicePoolError``
|
|
|
|
### Step Sequencer
|
|
|
|
- ``StepSequencer``
|
|
- ``SequencerStep``
|
|
|
|
### Signal Flow
|
|
|
|
- <doc:SignalFlow>
|
|
|
|
### Temporal and Demand Generation
|
|
|
|
- <doc:TemporalDemand>
|
|
|
|
### Advanced
|
|
|
|
- <doc:MultiCore>
|
|
- ``SendTrigger``
|
|
- <doc:AUv3>
|
|
|
|
### External Integrations
|
|
|
|
- <doc:ExternalIntegrations>
|
|
- ``MIDI``
|
|
- ``MIDIMessage``
|
|
- ``OSCServer``
|
|
- ``OSCClient``
|
|
- ``OSCMessage``
|
|
- ``OSCArgument``
|
|
- ``LyrebirdMessageContext``
|
|
- ``TriggerListener``
|
|
- ``TriggerEvent``
|
|
- ``TriggerHandlerToken``
|
|
|
|
### Score and Event Sequencing
|
|
|
|
- <doc:ScoreSystem>
|
|
- <doc:ProcessSystem>
|
|
- ``VoicePool``
|
|
|
|
### Parameter Sources for Non-RT Loops
|
|
|
|
- ``ValueComputable``
|
|
- ``ValueComputableClosure``
|
|
- ``ValueComputableBody``
|
|
|
|
### Tooling
|
|
|
|
- <doc:CLIGuide>
|
|
- <doc:REPLGuide>
|
|
- <doc:NRTGuide>
|
|
- <doc:ProjectSystem>
|
|
- <doc:Targets>
|
|
- <doc:RoutineTask>
|
|
- ``LyrebirdClock``
|
|
|
|
### Debugging Tools
|
|
|
|
- <doc:Debugging>
|
|
|
|
### Diagnostics
|
|
|
|
- <doc:DiagnosticsGuide>
|
|
|
|
### AI Assistants
|
|
|
|
- <doc:AIAssistants>
|