home *** CD-ROM | disk | FTP | other *** search
- on mouseEnter
- if the visible of window "Help" then
- tell window "help"
- go("seq10")
- end tell
- end if
- end
-
- on mouseLeave
- if the visible of window "Help" then
- tell window "help"
- go("start")
- end tell
- end if
- end
-
- on mouseDown
- global markerList
- if (markerList <> []) and not (the visible of window "help") then
- repeat while the mouseDown
- set the memberNum of sprite 34 to the number of member "HsaveSeq"
- updateStage()
- end repeat
- end if
- end
-
- on mouseUp
- global markerList, gSong, gPath
- if (markerList <> []) and not (the visible of window "help") then
- set the memberNum of sprite 34 to the number of member "saveSeq"
- updateStage()
- cursor(4)
- set myFile to new(xtra("fileio"))
- setFilterMask(myFile, ".txt")
- set nameFile to displaySave(myFile, "Save sequence window", EMPTY)
- createFile(myFile, nameFile)
- openFile(myFile, nameFile, 2)
- writeString(myFile, gSong && "seq" & numToChar(13) & numToChar(10) & line getAt(markerList, 1) of field "grooveMem" & numToChar(13) & numToChar(10))
- set temp to [1]
- repeat with i = 2 to count(markerList)
- set trovato to 0
- repeat with j = 1 to i - 1
- if getAt(markerList, i) = getAt(markerList, j) then
- set trovato to 1
- append(temp, getAt(temp, j))
- exit repeat
- end if
- end repeat
- if not trovato then
- writeString(myFile, line getAt(markerList, i) of field "grooveMem" & numToChar(13) & numToChar(10))
- append(temp, max(temp) + 1)
- end if
- end repeat
- set lastLine to EMPTY
- repeat with i = 1 to count(temp)
- set lastLine to lastLine & getAt(temp, i) & " "
- end repeat
- writeString(myFile, lastLine)
- closeFile(myFile)
- set myFile to 0
- cursor(-1)
- end if
- set the editable of member "fieldBpm" to 0
- end
-