         return seq
     }
 
-    func setupSampler() {
-        let bundle = Bundle(for: AKSequencerTrackTests.self)
-        if let path = bundle.path(forResource: "sinechirp", ofType: "wav") {
-            let url = URL(fileURLWithPath: path)
-            let file = try! AVAudioFile(forReading: url)
-            try! sampler.loadAudioFile(file)
-            output = sampler
-        } else {
-            XCTFail("Could not load sinechirp.wav")
-        }
-    }
-
-
     func testEmptyTrack() {
-
-
-        let seq = AKSequencerTrack(targetNode: sampler)
+        let seq = AKSequencerTrack(targetNode: flute)
         XCTAssertFalse(seq.isPlaying)
 
         XCTAssertEqual(seq.length, 4.0) // One measure


        duration = 5

        let track = AKSequencerTrack(targetNode: sampler)

        setupSampler()

        track.sequence = getTestSequence()
        track.playFromStart()
        XCTAssertTrue(track.isPlaying)
        // auditionTest()
        AKTestMD5("8dda603e249554576192a2bd524f8bca")
    }

    func testOneShot() {

        duration = 5

        let track = AKSequencerTrack(targetNode: sampler)

        setupSampler()

        track.sequence = getTestSequence()
        track.loopEnabled = false
        track.playFromStart()
        XCTAssertTrue(track.isPlaying)
        //auditionTest()
        AKTestMD5("864f48d1881655b29fd1cca59887bed4")
    }

    func testTempo() {

        duration = 5

        let track = AKSequencerTrack(targetNode: sampler)

        setupSampler()

        track.sequence = getTestSequence()
        track.tempo = 60
        track.playFromStart()
        XCTAssertTrue(track.isPlaying)
        //auditionTest()
        AKTestMD5("ca831ed474d2d302f48c37fd2cff4850")

    }



class AKSequencerTrackTests: AKTestCase {

    let flute = AKFlute()

    func getTestSequence() -> AKSequence {

