home *** CD-ROM | disk | FTP | other *** search
- on mouseEnter
- if the visible of window "Help" then
- tell window "help"
- go("grooveM23")
- end tell
- end if
- end
-
- on mouseLeave
- if the visible of window "Help" then
- tell window "help"
- go("start")
- end tell
- end if
- end
-
- on mouseUp
- global gOn
- if gOn and not (the visible of window "help") then
- set the editable of member "fieldBpm" to 1
- end if
- end
-
- on keyUp
- global gBpmSong, gOn, gGreen
- if gOn and not (the visible of window "help") then
- if (the keyCode = 36) or (the keyCode = 76) then
- set the editable of member "fieldBpm" to 0
- delete char -30000 of field "fieldBpm"
- set N to float(field "fieldBpm")
- if not floatp(N) then
- put gBpmSong into field "fieldBpm"
- end if
- set bpm to field "fieldBpm"
- set the textFont of member "fieldBpm" to "IK10"
- set the foreColor of member "fieldBpm" to gGreen
- set bpm to float(bpm)
- if bpm > (6 * gBpmSong / 5) then
- set bpm to float(6 * gBpmSong / 5)
- end if
- if bpm < (4 * gBpmSong / 5) then
- set bpm to float(4 * gBpmSong / 5)
- end if
- case the frame of
- 2, 3:
- set the locH of sprite 24 to (15 * 25 * (bpm - gBpmSong) / gBpmSong) + 321
- set the locV of sprite 24 to 449
- updateStage()
- 6, 7:
- set the locH of sprite 24 to (15 * ((100 * (bpm - gBpmSong) / gBpmSong) + 52) / 4) + 5
- set the locV of sprite 24 to 362
- updateStage()
- if word 2 of field "fieldDuration" = "sec" then
- set sec to 1920 / float(field "fieldBpm") * the number of words in field "fieldMarkerSeq"
- set sec to integer(sec)
- set min to sec / 60
- if min = 0 then
- set min to "00"
- end if
- if (min >= 1) and (min <= 9) then
- set min to "0" & min
- end if
- set sec to sec mod 60
- if sec = 0 then
- set sec to "00"
- end if
- if (sec >= 1) and (sec <= 9) then
- set sec to "0" & sec
- end if
- put min & ":" & sec & " sec" into field "fieldDuration"
- end if
- 10, 11:
- set the locH of sprite 24 to (15 * 25 * (bpm - gBpmSong) / gBpmSong) + 321
- set the locV of sprite 24 to 341
- updateStage()
- end case
- updateStage()
- IKMixBPM(bpm * 1000)
- put bpm into field "fieldBpm"
- set the textFont of member "fieldBpm" to "IK10"
- set the foreColor of member "fieldBpm" to gGreen
- end if
- end if
- end
-