home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- repeat while the mouseDown
- set the memberNum of sprite the clickOn to the number of member "Hclose"
- updateStage()
- end repeat
- end
-
- on mouseUp
- global gPath, gArp, gPosVolSynth, gPosPanSynth, gProg, gOnSynth, synthList, progList, folderSynthList
- set the memberNum of sprite the clickOn to the number of member "close"
- updateStage()
- IKSynthStop()
- if (field "fieldSynth" <> EMPTY) and gOnSynth then
- IKSetSynth(gPath & "Synth\" & field "fieldSynth" & "\")
- if synthList <> [] then
- 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))
- IKSynthArp(getPos(progList, gProg) - 1, arp, createSeq())
- end if
- end if
- go(1)
- put EMPTY into field "fieldElencoSynthCD"
- close(window "openS")
- end
-