     var gestures = ["['Gesture 1']":Gesture(id: "['Gesture 1']",gesture_name: "Low Hit", gif_name: "popcorn",instrument: "Snare"),
                     "['Gesture 2']":Gesture(id: "['Gesture 2']",gesture_name: "High Hit",gif_name:"popcorn",instrument: "Hi-Hat"),
                     "['Gesture 3']":Gesture(id: "['Gesture 3']",gesture_name: "Flipped Hit",gif_name:"popcorn",instrument: "Toms")]
+    
+    var selectedDrumKit = 0
+    var drumKits = [DrumKit(name:"default",gestures:["['Gesture 1']":Gesture(id: "['Gesture 1']",gesture_name: "Low Hit", gif_name: "popcorn",instrument: "Snare")])]
+    
     
     var players = [
         "Hi-Hat":["filename":"hihat","index":0,"players":[AVAudioPlayer(),AVAudioPlayer(),AVAudioPlayer()]],

    var orientationBuffer = RingBuffer()
    let magValue = 1.0
    var numDataPoints = 0
    var recording = false;

    var indicatorView: ESTMusicIndicatorView!
    var startAnimating: Bool = false

    
    override func viewDidLoad() {
        super.viewDidLoad()
        let loaded_data = loadDrumKits()
        drumKits = loaded_data.0
        selectedDrumKit = loaded_data.1
        
        //set the time to "now" for all instruments
        players["Hi-Hat"]!["time"] = Date()
