home *** CD-ROM | disk | FTP | other *** search
- on mouseEnter
- if the visible of window "Help" then
- tell window "help"
- go("seq6")
- 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 gStyle, gBlue, durationList
- if (field "fieldDuration" <> EMPTY) and not (the visible of window "help") then
- case word 2 of field "fieldDuration" of
- "bars":
- set sec to 240 * integer(word 1 of field "fieldDuration") / float(field "fieldBpm")
- 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 >= 0) and (sec <= 9) then
- set sec to "0" & sec
- end if
- put min & ":" & sec & " sec" into field "fieldDuration"
- "sec":
- put getAt(durationList, gStyle) & " bars" into field "fieldDuration"
- end case
- set the textFont of member "fieldDuration" to "IK10"
- set the foreColor of member "fieldDuration" to gBlue
- end if
- set the editable of member "fieldBpm" to 0
- end
-