 //  AudioKit
 //
 //  Auto-generated on 12/20/14.
-//  Customized by Nick Arner on 12/20/14.
+//  Customized by Nick Arner on 12/26/14.
 //
 //  Copyright (c) 2014 Aurelius Prochazka. All rights reserved.
 //

    init(audioSource: AKAudio) {
        super.init()
        
        let line = AKLinearControl(firstPoint: 1000.ak, secondPoint: 100.ak, durationBetweenPoints: 11.ak)
        connect(line)
        
        let operation = AKLowPassButterworthFilter(input: audioSource)
        operation.cutoffFrequency = line
        connect(operation)
        
        connect(AKAudioOutput(audioSource:operation))

    
    override init() {
        super.init()
        let filename = "CsoundLib64.framework/Sounds/PianoBassDrumLoop.wav"
        
        let audio = AKFileInput(filename: filename)
        connect(audio)
        
        let mono = AKMixedAudio(signal1: audio.leftOutput, signal2: audio.rightOutput, balance: 0.5.ak)
        connect(mono)
        
        auxilliaryOutput = AKAudio.globalParameter()
        assignOutput(auxilliaryOutput, to:mono)
    }
}

