Granular Synthesis
Granulation with generated textures and customizable parameters
// Configure the graph for rendering
let context = Assembler(rendering: .live).createAudioGraph()
// Configure an audio source (Renderer) from a local audio file
let url = URL(fileURLWithPath: "/path/to/source.wav")
let source = Granulator(contentsOf: url)
// Configure the source parameters
source.count = 1.0
source.duration = 0.05
source.start = 0.0
source.end = 1.0
source.frequency = 1.0
// Configure node connections
try context.connect(source: source, to: context.destination)
source.play(after: 0)Last updated