         let keys: [String] = [rootNoteKeyStr, startNoteKeyStr, endNoteKeyStr, filenameKeyStr]
         return NSMutableDictionary.init(objects: defaultObjects, forKeys: keys)
     }
+    
     /// Output Amplitude.
     /// Range: -90.0 -> +12 db
     /// Default: 0 db

        templateStr.appendContentsOf("                                    <key>stage</key>\n")
        templateStr.appendContentsOf("                                    <integer>5</integer>\n")
        templateStr.appendContentsOf("                                    <key>time</key>\n")
        templateStr.appendContentsOf("                                    <real>0.0</real>\n")
        templateStr.appendContentsOf("                                </dict>\n")
        templateStr.appendContentsOf("                                <dict>\n")
        templateStr.appendContentsOf("                                    <key>curve</key>\n")

        templateStr = templateStr.stringByReplacingOccurrencesOfString("***INSTNAME***", withString: instName)
        templateStr = templateStr.stringByReplacingOccurrencesOfString("***ZONEMAPPINGS***", withString: sampleZoneXML)
        templateStr = templateStr.stringByReplacingOccurrencesOfString("***SAMPLEFILES***", withString: sampleIDXML)
        templateStr = templateStr.stringByReplacingOccurrencesOfString("***ATTACK***", withString: String(attack!))
        templateStr = templateStr.stringByReplacingOccurrencesOfString("***RELEASE***", withString: String(release!))
        
        //print(templateStr) //debug
        //write to file
