home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global loadSynthList, delSynthList
- if (count(loadSynthList) = 1) or (count(delSynthList) = 1) then
- repeat while the mouseDown
- set the memberNum of sprite the clickOn to the number of member "Hpreview"
- updateStage()
- end repeat
- end if
- end
-
- on mouseUp
- global gPath, gArp, gProg, gPosVolSynth, gPosPanSynth, gPathSynth, loadSynthList, delSynthList, progList, synthList
- if (count(loadSynthList) = 1) or (count(delSynthList) = 1) then
- set the memberNum of sprite the clickOn to the number of member "Hpreview"
- updateStage()
- if count(loadSynthList) = 1 then
- set synth to getAt(loadSynthList, 1)
- IKSetSynth(gPathSynth & synth & "\")
- else
- set synth to getAt(delSynthList, 1)
- IKSetSynth(gPath & "Synth\" & synth & "\")
- end if
- IKSynthStop()
- 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())
- else
- IKSynthArp(getPos(progList, gProg) - 1, arp, "C1D1E1F1G1A1B1C2D2E2F2G2A2B2C3D3E3F3G3A3B3")
- end if
- end if
- end
-