home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gFirstNum, gSong, gGrooveSel, gPlaySeq, gReturn, last, gBlue, stateTrackList, virTracklIst, volValList, panValList, volPosList, panPosList, audioList
- handleSpriteSeq()
- createVariableSeq()
- writeFieldSeq()
- repeat with i = 1 to 8
- if line integer(gFirstNum) + i - 1 of field "grooveMem" <> EMPTY then
- set gN to "g" & integer(gFirstNum) + i - 1
- set the memberNum of sprite (10 + i) to the number of member gN
- updateStage()
- next repeat
- end if
- exit repeat
- end repeat
- if not gPlaySeq and (virTracklIst <> [-1, -1, -1, -1, -1, -1, -1, -1]) then
- set last to EMPTY
- repeat with j = 1 to 8
- if getAt(stateTrackList, j) = "on" then
- case length(string(getAt(volValList, j))) of
- 1:
- set volVal to "00" & getAt(volValList, j)
- 2:
- set volVal to "0" & getAt(volValList, j)
- 3:
- set volVal to getAt(volValList, j)
- end case
- case length(string(getAt(panValList, j))) of
- 1:
- set panVal to "00" & getAt(panValList, j)
- 2:
- set panVal to "0" & getAt(panValList, j)
- 3:
- set panVal to getAt(panValList, j)
- end case
- set last to last & volVal & getAt(volPosList, j) & panVal & getAt(panPosList, j) & getAt(audioList, getAt(virTracklIst, j)) & " "
- next repeat
- end if
- set last to last & "0 "
- end repeat
- if last = line the lineCount of member "grooveMem" of field "grooveMem" then
- set gGrooveSel to the lineCount of member "grooveMem"
- end if
- end if
- if gGrooveSel then
- set Hn to "H" & gGrooveSel
- repeat with z = 1 to 8
- if the name of member the memberNum of sprite (10 + z) = ("g" & gGrooveSel) then
- set the memberNum of sprite (10 + z) to the number of member Hn
- exit repeat
- end if
- end repeat
- updateStage()
- put "GROOVE PLAYING" into field "fieldState"
- end if
- set the textFont of member "fieldState" to "IK10"
- set the foreColor of member "fieldState" to gBlue
- repeat with i = 1 to 8
- case getAt(stateTrackList, i) of
- "solo":
- setAt(stateTrackList, i, "on")
- "mute":
- setAt(stateTrackList, i, "off")
- setAt(virTracklIst, i, -1)
- setAt(volValList, i, 28)
- setAt(volPosList, i, 239)
- setAt(panValList, i, 64)
- setAt(panPosList, i, 239)
- end case
- end repeat
- set gReturn to EMPTY
- end
-