 
 //: Create the sequencer after AudioKit's output has been set
 //: Load in a midi file, and set the sequencer to the main audiokit engine
-var sequencer = AKSequencer(filename: "4tracks", engine: AudioKit.engine)
+var sequencer = AKSequencer(filename: "4tracks")
 
 //: Do some basic setup to make the sequence loop correctly
 sequencer.setLength(AKDuration(beats: 4))

import AudioKit

//: Create some samplers, load different sounds, and connect it to a mixer and the output
var fmPianoSampler = AKSampler()
try fmPianoSampler.loadWav("Samples/FM Piano")

var bellSampler = AKSampler()
try bellSampler.loadWav("Samples/Bell")


var osc = AKPhaseDistortionOscillatorBank()

var mixer = AKMixer(fmPianoSampler, bellSampler, osc)

let reverb = AKCostelloReverb(mixer)


        addLabel("Set the global output for the sequencer:")
        addSubview(AKButton(title: "Use FM Piano As Global Output") {
            sequencer.stop()
            sequencer.setGlobalAVAudioUnitOutput(piano.samplerUnit)
            self.updateButtons()
            sequencer.play()
            return ""
        })
        addSubview(AKButton(title: "Use Bell As Global Output", color: AKColor.red) {
            sequencer.stop()
            sequencer.setGlobalAVAudioUnitOutput(bell.samplerUnit)
            self.updateButtons()
            sequencer.play()
            return ""
        })
        addLabel("Or set the tracks individually:")
        button1 = AKButton(title: "Track 1: FM Piano") {
            self.toggle(track: 1)
            return ""
        }
        button2 = AKButton(title: "Track 2: FM Piano") {
            self.toggle(track: 2)
            return ""
        }
        button3 = AKButton(title: "Track 3: FM Piano") {
            self.toggle(track: 3)
            return ""
        }
        button4 = AKButton(title: "Track 4: FM Piano") {
            self.toggle(track: 4)
            return ""
        }
        addSubview(button1)
