     open var mix: Double = 1 {
         didSet {
             mix = (0...1).clamp(mix)
-            AudioUnitSetParameter(
-                internalAU!,
-                kDistortionParam_FinalMix,
-                kAudioUnitScope_Global, 0,
-                Float(mix) * 100.0, 0)
+            au[kDistortionParam_FinalMix] = mix * 100
         }
     }
 


    public static let ComponentDescription = AudioComponentDescription(appleEffect: kAudioUnitSubType_Distortion)

    internal var internalEffect = AVAudioUnitEffect()
    internal var internalAU: AudioUnit? = nil

    fileprivate var lastKnownMix: Double = 1


            self.mix = mix

            internalEffect = AVAudioUnitEffect(audioComponentDescription: _Self.ComponentDescription)
            au = AUWrapper(au: internalEffect.audioUnit)

            super.init()

            avAudioNode = internalEffect
            AudioKit.engine.attach(self.avAudioNode)
            input.addConnectionPoint(self)

            // Since this is the Decimator, mix it to 100% and use the final mix as the mix parameter

            au[kDistortionParam_Decimation] = decimation * 100
            au[kDistortionParam_Rounding] = rounding * 100
            au[kDistortionParam_FinalMix] = mix * 100

            au[kDistortionParam_PolynomialMix] = 0
            au[kDistortionParam_DelayMix] = 0
            au[kDistortionParam_DelayMix] = 0
    }

    // MARK: - Control
