      instName is the name of the aupreset
      */
     static public func createAUPresetFromDict(dict: NSDictionary, path: String, instName: String, attack: Double? = 0, release: Double? = 0) {
-        let rootNoteKeyStr = "rootnote"
-        let startNoteKeyStr = "startnote"
-        let endNoteKeyStr = "endnote"
-        let filenameKeyStr = "filename"
+        let rootNoteKey = "rootnote"
+        let startNoteKey = "startnote"
+        let endNoteKey = "endnote"
+        let filenameKey = "filename"
         var loadSoundsArr = Array<NSMutableDictionary>()
         var sampleZoneXML: String = String()
         var sampleIDXML: String = String()

        return presetXML
    }
    static public func openPreset() -> String {
        var templateStr: String = ""
        templateStr = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
        templateStr.appendContentsOf("<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n")
        templateStr.appendContentsOf("<plist version=\"1.0\">\n")
        templateStr.appendContentsOf("    <dict>\n")
        templateStr.appendContentsOf("        <key>AU version</key>\n")
        templateStr.appendContentsOf("        <real>1</real>\n")
        return templateStr
    }
    static public func openInstrument() -> String {
        var templateStr: String = ""
        templateStr.appendContentsOf("        <key>Instrument</key>\n")
        templateStr.appendContentsOf("        <dict>\n")
        return templateStr
    }
    static public func openLayers() -> String {
        var templateStr: String = ""
        templateStr.appendContentsOf("            <key>Layers</key>\n")
        templateStr.appendContentsOf("            <array>\n")
        return templateStr
    }
    static public func openLayer() -> String {
        var templateStr = ""
        templateStr.appendContentsOf("                <dict>\n")
        templateStr.appendContentsOf("                    <key>Amplifier</key>\n")
        templateStr.appendContentsOf("                    <dict>\n")
        templateStr.appendContentsOf("                        <key>ID</key>\n")
        templateStr.appendContentsOf("                        <integer>0</integer>\n")
        templateStr.appendContentsOf("                        <key>enabled</key>\n")
        templateStr.appendContentsOf("                        <true/>\n")
        templateStr.appendContentsOf("                    </dict>\n")
        return templateStr
    }
    static public func openConnections() -> String {
        var templateStr = ""
        templateStr.appendContentsOf("                    <key>Connections</key>\n")
        templateStr.appendContentsOf("                    <array>\n")
        return templateStr
    }
    static public func generateConnectionDict(id: Int,
                                              source: Int,

                
                sampleIteration += 1
            }
            let startNote = soundDict.objectForKey(startNoteKey)! as! Int
            let endNote = soundDict.objectForKey(endNoteKey)! as! Int
            let rootNote = soundDict.objectForKey(rootNoteKey)! as! Int
            let tempSampleZoneXML: String = AKAUPresetBuilder.generateZone(i, rootNote: rootNote, startNote: startNote, endNote: endNote, wavRef: sampleNum)
            
            sampleZoneXML.appendContentsOf(tempSampleZoneXML)
