home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global gDrumList, gCurrentDrumBtn, gNewLoopLength, gbanknum
- if gbanknum < 2 then
- set gbanknum to gbanknum + 1
- set the text of cast "bank btn" to "bank " & gbanknum
- else
- set gbanknum to 0
- set the text of cast "bank btn" to "bank " & gbanknum
- end if
- set newnum to gCurrentDrumBtn + 90 + (gbanknum * 200)
- set gDrumList to the name of cast newnum of castLib 2
- preloadMember(member gDrumList of castLib 2)
- set gNewLoopLength to calculatelooplength(newnum)
- end
-