home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gOn
- if gOn and not (the visible of window "help") then
- set the visible of sprite 53 to 1
- end if
- end
-
- on mouseUp
- global gProg, gPath, gOnSynth, gOn, gPosVolSynth, gPosPanSynth, gSynthSel, gPosSynth, gBlue, synthList
- if gOn and not (the visible of window "help") then
- set the visible of sprite 53 to 0
- if the visible of window "synth" then
- close(window "synth")
- else
- if IKGetCurrentBeat() <> -1 then
- set the rect of window "synth" to gPosSynth
- set the fileName of window "synth" to "synth"
- set the titleVisible of window "synth" to 0
- set the modal of window "synth" to 0
- if not gOnSynth then
- if field "fieldSynth" <> EMPTY then
- IKSetSynth(gPath & "Synth\" & field "fieldSynth" & "\")
- end if
- end if
- IKSynthVolume(integer(128 * (-gPosVolSynth + 54) / 45))
- IKSynthPan(integer(128 * (-gPosPanSynth + 54) / 45))
- set the foreColor of field "fieldSynth" to gBlue
- set the textFont of member "fieldSynth" to "IK10"
- set the foreColor of field "fieldArp" to gBlue
- set the foreColor of field "fieldProg" to gBlue
- open(window "synth")
- set gSynthSel to 0
- end if
- end if
- end if
- set the editable of member "fieldBpm" to 0
- end
-