home *** CD-ROM | disk | FTP | other *** search
- on mouseEnter
- if the visible of window "Help" then
- tell window "help"
- go("synth7")
- 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 mouseDown
- global gOn, gBlue, folderSynthList, valore, synth
- if gOn and (folderSynthList <> []) and not (the visible of window "help") then
- set valore to getPos(folderSynthList, field "fieldSynth")
- set start to the mouseV
- set the textFont of member "fieldSynth" to "IK10"
- set the foreColor of member "fieldSynth" to gBlue
- repeat while the mouseDown
- set synth to the mouseV - start
- set synth to abs(((valore + synth) mod count(folderSynthList)) + 1)
- if synth = 0 then
- set synth to 1
- end if
- set the textFont of member "fieldSynth" to "IK10"
- set the foreColor of member "fieldSynth" to gBlue
- put getAt(folderSynthList, synth) into field "fieldSynth"
- end repeat
- set the textFont of member "fieldSynth" to "IK10"
- set the foreColor of member "fieldSynth" to gBlue
- end if
- end
-
- on mouseUp
- global gPath, gProg, gArp, gOnSynth, gOn, gPosVolSynth, gPosPanSynth, gSynthSel, gBlue, progList, folderSynthList, synthList, valore, synth
- if gOn and (folderSynthList <> []) then
- if valore = synth then
- set pos to getPos(folderSynthList, field "fieldSynth") + 1
- if pos <> (count(folderSynthList) + 1) then
- put getAt(folderSynthList, pos) into field "fieldSynth"
- else
- put getAt(folderSynthList, 1) into field "fieldSynth"
- end if
- end if
- if gOnSynth then
- IKSynthStop()
- end if
- IKSetSynth(gPath & "Synth\" & field "fieldSynth" & "\")
- case char 1 of gArp of
- "[":
- set arp to 1
- "]":
- set arp to 2
- "{":
- set arp to 4
- "}":
- set arp to 8
- end case
- IKSynthVolume(integer(128 * (-gPosVolSynth + 54) / 45))
- IKSynthPan(integer(128 * (-gPosPanSynth + 54) / 45))
- if synthList <> [] then
- IKSynthArp(getPos(progList, gProg) - 1, arp, createSeq())
- end if
- if gSynthSel then
- set the locH of sprite 74 to -20
- set gSynthSel to 0
- end if
- set the textFont of member "fieldSynth" to "IK10"
- set the foreColor of member "fieldSynth" to gBlue
- end if
- end
-