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


    public static let ComponentDescription = AudioComponentDescription(appleEffect: kAudioUnitSubType_Distortion)

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

    fileprivate var lastKnownMix: Double = 1


    open var decimation: Double = 0.5 {
        didSet {
            decimation = (0...1).clamp(decimation)
            au[kDistortionParam_Decimation] = decimation * 100
        }
    }

