title: AudioKit - AKOperationGenerator with AKParameters - CPU Issue
body: <p>I need help with sending AKParameters to the AKOperationGenerator. My current solution use a lot of CPU. Is there a better way how to do it?</p>
  
  <p>Here is my example code:</p>
  
  <pre><code>import AudioKit
  
  class SynthVoice: AKNode {
      override init() {
          let synth = AKOperationGenerator { p in
              //(1) - 30% CPU
              let osc: AKOperation = AKOperation.squareWave(frequency: p[0], amplitude: p[1], pulseWidth: p[2])
  
              //(2) - 9% CPU
              //let osc: AKOperation = AKOperation.squareWave(frequency: 440, amplitude: 1, pulseWidth: 0.5)
              return osc
          }
          synth.parameters[0] = 880
          synth.parameters[1] = 1
          synth.parameters[2] = 0.5
  
          super.init()
          self.avAudioNode = synth.avAudioNode
          synth.start()
      }
  }
  
  class ViewController: UIViewController {
      override func viewDidLoad() {
          super.viewDidLoad()
  
          let mixer: AKMixer = AKMixer([SynthVoice(), SynthVoice(), SynthVoice(), SynthVoice(), SynthVoice(), SynthVoice()])
          AudioKit.output = mixer
          AudioKit.start()
      }
  }
  </code></pre>
  
  <p>I need 6 voice osc bank with envelope filter for each voice. I did not find any OSC-bank with envelope filter in AudioKit, so I started to write my own via AKOperationGenerator... But the CPU is too high. (About 100% in my project - 6 AKOperationGenerator with PWM square osc and envelope filter and a lot of AKParameters that can be changed via UI)</p>
  
  <p>Thanks for any response.</p>