home *** CD-ROM | disk | FTP | other *** search
- on groove_mem pos
- global virTracklIst, volValList, volPosList, stateTrackList, panValList, panPosList, keepList, audioList, gpag, gBlue, gSync
- if the lineCount of member "grooveMem" >= pos then
- cursor(4)
- set the loc of sprite 3 to point(529, 239)
- set the loc of sprite 4 to point(543, 239)
- updateStage()
- repeat with i = 1 to 8
- if getAt(virTracklIst, i) <> -1 then
- put "=" into word 1 of line getAt(virTracklIst, i) of field "fieldAudio"
- end if
- end repeat
- set numero to the name of member the memberNum of sprite (29 + pos)
- set numero to integer(chars(numero, 2, length(numero)))
- repeat with i = 1 to 8
- set infoAudio to word i of line numero of field "grooveMem"
- if (infoAudio <> "0") and getPos(audioList, chars(infoAudio, 13, length(infoAudio))) then
- setAt(virTracklIst, i, getPos(audioList, chars(infoAudio, 13, length(infoAudio))))
- setAt(volValList, i, integer(chars(infoAudio, 1, 3)))
- setAt(volPosList, i, integer(chars(infoAudio, 4, 6)))
- setAt(panValList, i, integer(chars(infoAudio, 7, 9)))
- setAt(panPosList, i, integer(chars(infoAudio, 10, 12)))
- setAt(stateTrackList, i, "on")
- set onNum to "on" & i
- puppetSprite(40 + i, 1)
- set the member of sprite (40 + i) to the number of member onNum
- updateStage()
- next repeat
- end if
- setAt(virTracklIst, i, -1)
- setAt(volValList, i, 28)
- setAt(volPosList, i, 239)
- setAt(panValList, i, 64)
- setAt(panPosList, i, 239)
- setAt(stateTrackList, i, "off")
- puppetSprite(40 + i, 0)
- end repeat
- if the controlDown then
- set gSync to 1
- set the memberNum of sprite 54 to the number of member "HRledSync"
- updateStage()
- end if
- repeat with i = 1 to 8
- if gSync then
- IKVolumeSync2(i, getAt(volValList, i))
- IKPanSync2(i, getAt(panValList, i))
- IKPlaySync(i, getAt(virTracklIst, i))
- next repeat
- end if
- IKVolumeSync(i, getAt(volValList, i))
- IKPanSync(i, getAt(panValList, i))
- IKPlay(i, getAt(virTracklIst, i))
- end repeat
- repeat with i = 1 to 8
- if getAt(virTracklIst, i) <> -1 then
- put i into word 1 of line getAt(virTracklIst, i) of field "fieldAudio"
- set the foreColor of word 1 of line getAt(virTracklIst, i) of field "fieldAudio" to gBlue
- end if
- end repeat
- end if
- set keepList to [0, 0, 0, 0, 0, 0, 0, 0]
- cursor(-1)
- end
-