 AKOrchestra.addInstrument(instrument)
 AKOrchestra.addInstrument(processor)
 
-AKOrchestra.testForDuration(10)
+AKOrchestra.testForDuration(testDuration)
 
 processor.play()
 instrument.play()

    init(audioSource: AKAudio) {
        super.init()

        let delayTime = AKLine(firstPoint: 0.ak, secondPoint: 0.1.ak, durationBetweenPoints: 11.ak)
        connect(delayTime)

        let feedback = AKLine(firstPoint: 0.ak, secondPoint: 1.ak, durationBetweenPoints: 11.ak)
        connect(feedback)

        let operation = AKFlanger(input: audioSource, delayTime:delayTime)
        operation.feedback = feedback
        connect(operation)

        let mix = AKMixedAudio(signal1: audioSource, signal2: operation, balance: 0.5.ak)
        connect(mix)

        connect(AKAudioOutput(audioSource:mix))
    }

//

import Foundation

let testDuration: Float = 10.0

class Instrument : AKInstrument {

