0

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 ?

Fischer
  • 1,513
  • 4
  • 17
  • 38

1 Answers1

1

Two ways:

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

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

dave234
  • 4,793
  • 1
  • 14
  • 29
  • Something is not working here. I get sound with this: compressor = AKCompressor(akMidiSampler) . Silence with: compressor = AKCompressor() ; akMidiSampler >>> compressor ... Any ideas ? – Fischer Mar 20 '18 at 23:29
  • After some testings, I realized that connecting after init this way works with other effects, Delay, Reverb, etc... But not for AKCompressor. Is it a bug ? Any idea ? – Fischer Mar 22 '18 at 10:49
  • It is(was) a bug, thanks! https://github.com/AudioKit/AudioKit/pull/1281 – dave234 Mar 22 '18 at 22:44