Oscillator
Continuous sine-wave synthesis routed to the main destination
// Configure the graph for rendering
let context = Assembler(rendering: .live).createAudioGraph()
// Configure a sine-wave audio source (Oscillator)
let source = Oscillator()
source.waveform = .sine
// Configure node connections
try context.connect(source: source, to: context.destination)
oscillator.play(after: 0)Last updated