Files
Lyrebird/Sources/Lyrebird/Lyrebird.docc/Lyrebird.md
T
josh 62b2f5dbec v1.5.0 release: LyrebirdRandom + Live Scratch editor
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.
2026-07-22 07:53:12 -07:00

3.0 KiB

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.

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

Generator Concepts

Oscillators and Noise

Buffer Utilities

Filter Library

Waveshaping and Distortion

Reverb Library

Physical Models

Spectral

  • SpectralChain

Signal Analysis

Triggers and Timing

Pitch Shifting

Envelopes and Delays

Halfband oversampling

  • doc:Oversampling
  • HalfbandUpsampler2x
  • HalfbandDownsampler2x
  • HalfbandUpsampler4x
  • HalfbandDownsampler4x

Math and Bus I/O

Bus Allocation

  • BusAllocator
  • AudioBus
  • ControlBus
  • BusAllocatorError

Synthesizers

Step Sequencer

  • StepSequencer
  • SequencerStep

Signal Flow

Temporal and Demand Generation

Advanced

External Integrations

  • doc:ExternalIntegrations
  • MIDI
  • MIDIMessage
  • OSCServer
  • OSCClient
  • OSCMessage
  • OSCArgument
  • LyrebirdMessageContext
  • TriggerListener
  • TriggerEvent
  • TriggerHandlerToken

Score and Event Sequencing

Parameter Sources for Non-RT Loops

  • ValueComputable
  • ValueComputableClosure
  • ValueComputableBody

Tooling

Debugging Tools

Diagnostics

AI Assistants