             self.centerFrequency = centerFrequency
             self.bandwidth = bandwidth
             
+            inputGain = AKGain(input, gain: 0)
+            mixer = AKMixer(inputGain!)
+
             internalEffect = AVAudioUnitEffect(audioComponentDescription: cd)
             self.avAudioNode = internalEffect
-            AKManager.sharedInstance.engine.attachNode(self.avAudioNode)
+            AKManager.sharedInstance.engine.attachNode(internalEffect)
             input.addConnectionPoint(self)
             internalAU = internalEffect.audioUnit
-            
+
+            effectGain = AKGain(self, gain: 1)
+            mixer.connect(effectGain!)
+            self.avAudioNode = mixer.avAudioNode
+
             AudioUnitSetParameter(internalAU, kBandpassParam_CenterFrequency, kAudioUnitScope_Global, 0, Float(centerFrequency), 0)
             AudioUnitSetParameter(internalAU, kBandpassParam_Bandwidth, kAudioUnitScope_Global, 0, Float(bandwidth), 0)
     }
-    
+
     /// Function to start, play, or activate the node, all do the same thing
     public func start() {
         if isStopped {
-            self.avAudioNode = internalEffect
+            inputGain?.gain = 0
+            effectGain?.gain = 1
             isStarted = true
         }
     }
-    
+
     /// Function to start, play, or activate the node, all do the same thing
     public func play() {
         start()
     }
-    
+
     /// Function to stop or bypass the node, both are equivalent
     public func stop() {
         if isPlaying {
-            self.avAudioNode = self.input!.avAudioNode
+            inputGain?.gain = 1
+            effectGain?.gain = 0
             isStarted = false
         }
     }
-    
+
     /// Function to stop or bypass the node, both are equivalent
     public func bypass() {
         stop()

                Float(centerFrequency), 0)
        }
    }
    
    /// Bandwidth (Cents) ranges from 100 to 12000 (Default: 600)
    public var bandwidth: Double = 600 {
        didSet {
            if bandwidth < 100 {
                bandwidth = 100
            }
            if bandwidth > 12000 {
                bandwidth = 12000
            }

//  AudioKit
//
//  Autogenerated by scripts by Aurelius Prochazka. Do not edit directly.
//  Copyright (c) 2016 Aurelius Prochazka. All rights reserved.
//

import AVFoundation
