home *** CD-ROM | disk | FTP | other *** search
- on checksamples
- global gDrumList, gDrumLength, gCurrentDrumBtn, gDrumFillin, gDrumFillinLength, gNewLoopLength, gFillinName, gbanknum
- if (gDrumFillin > 0) and (the timer > (gDrumLength - 1)) then
- set gFillinName to the name of cast gDrumFillin of castLib 2
- puppetSound(1, cast gFillinName)
- startTimer()
- updateStage()
- set gDrumFillinLength to calculatelooplength(gDrumFillin)
- set gDrumFillin to 0
- else
- if gDrumFillinLength > 0 then
- if the timer > (gDrumFillinLength - 1) then
- set gDrumFillinLength to 0
- puppetSound(1, cast gDrumList)
- startTimer()
- updateStage()
- end if
- else
- if the timer > (gDrumLength - 1) then
- puppetSound(1, cast gDrumList)
- startTimer()
- updateStage()
- if gNewLoopLength > 0 then
- set gDrumLength to gNewLoopLength
- set gNewLoopLength to 0
- end if
- end if
- end if
- end if
- end
-