 let instrument = Instrument()
 AKOrchestra.addInstrument(instrument)
 
-AKOrchestra.testForDuration(10)
+AKOrchestra.testForDuration(testDuration)
 
 instrument.play()
 

        let soundFile = AKSoundFile(filename: filename)
        connect(soundFile)

        let speed = AKLine(firstPoint: 4.ak, secondPoint: 0.2.ak, durationBetweenPoints: 10.ak)
        connect(speed)

        let operation = AKStereoSoundFileLooper(soundFile: soundFile)
        operation.frequencyRatio = speed
        operation.loopMode = AKSoundFileLooperMode.ForwardAndBack
        connect(operation)

        connect(AKAudioOutput(stereoAudioSource:operation))
    }
}


//  main.swift
//  AudioKit
//
//  Created by Nick Arner and Aurelius Prochazka on 12/28/14.
//  Copyright (c) 2014 Aurelius Prochazka. All rights reserved.
//

import Foundation

let testDuration: Float = 10.0

class Instrument : AKInstrument {

