Fischer
Fischer

Reputation: 1523

Connecting AKNodes after init

Easy to connect a synth to a AudioKit compressor like...

compressor = AKCompressor(akMidiSampler)

Instead of this I need to connect after the initializer...

 compressor = AKCompressor()
 ...

How can I connect this AKMidiSampler to the compressor after the initializer ?

Upvotes: 0

Views: 67

Answers (1)

dave234
dave234

Reputation: 4955

Two ways:

akMidiSampler.connect(to: compressor) and akMidiSampler >>> compressor

>>> is a custom operator that calls connect(to:)

Upvotes: 1

Related Questions