home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gRandom, gSong, gGreen, gRed, gBlue
- case the colorDepth of
- 8:
- set gYellow to 11
- set gBlue to 14
- set gGreen to 54
- set gRed to 116
- otherwise:
- set gYellow to 19
- set gBlue to 151
- set gGreen to 161
- set gRed to 212
- end case
- set the textFont of member "fieldBpm" to "IK10"
- set the foreColor of member "fieldBpm" to gGreen
- set the textSize of member "fieldBpm" to 10
- set the foreColor of member "fieldMasterVol" to gGreen
- set the foreColor of member "fieldAudio" to gGreen
- put " " into field "fieldFullName"
- set the foreColor of member "fieldFullName" to gRed
- set the randomSeed to the timer
- cursor(-1)
- set the visible of sprite 23 to 0
- createGlobalVariable()
- createList()
- writeField()
- set the floatPrecision to 2
- end
-
- on stopMovie
- global tapList
- if the optionDown or (the keyCode = 53) or (charToNum(the keyPressed) = 27) then
- if the frame < 15 then
- uscita()
- end if
- end if
- set tapList to [0, 0]
- put EMPTY into field "fieldBarBeat"
- end
-
- on uscita
- if the visible of window "synth" then
- close(window "synth")
- end if
- repeat with i = 1 to 53
- puppetSprite(i, 0)
- end repeat
- IKSynthStop()
- IKStop()
- put EMPTY into field "fieldMasterVol"
- put EMPTY into field "fieldMarkerSeq"
- end
-