         let startNoteKey = "startnote"
         let endNoteKey = "endnote"
         let filenameKey = "filename"
+        let triggerModeKey = "triggerMode"
         var loadSoundsArr = Array<NSMutableDictionary>()
         var sampleZoneXML = ""
         var sampleIDXML = ""

        str.appendContentsOf("                    </array>\n")
        return str
    }
    static public func closeLayer() -> String {
        var str = ""
        str.appendContentsOf("                </dict>\n")

        str.appendContentsOf("                        <key>enabled</key>\n")
        str.appendContentsOf("                        <true/>\n")
        str.appendContentsOf("                        <key>loop enabled</key>\n")
        str.appendContentsOf("                        <\((loopEnabled ? "true" : "false"))/>\n")
        str.appendContentsOf("                        <key>max key</key>\n")
        str.appendContentsOf("                        <integer>\(endNote)</integer>\n")
        str.appendContentsOf("                        <key>min key</key>\n")
