         templateStr.appendContentsOf("                                    <key>stage</key>\n")
         templateStr.appendContentsOf("                                    <integer>1</integer>\n")
         templateStr.appendContentsOf("                                    <key>time</key>\n")
-        templateStr.appendContentsOf("                                    <real>0.0</real>\n")
+        templateStr.appendContentsOf("                                    <real>***ATTACK***</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)
        
        //print(templateStr) //debug
        //write to file

        let sampleNumStart = 268435457
        
        //iterate over the sounds
        for i in 0..<dict.count{
            let sound = dict.allValues[i]
            var soundDict:NSMutableDictionary
            var alreadyLoaded = false
