home *** CD-ROM | disk | FTP | other *** search
- on clickLed
- global gOn, gArp, gProg, gOnSynth, gPosVolSynth, gPosPanSynth, gSynthSel, gPath, synthList, progList, folderSynthList
- if gOn and (IKGetCurrentBeat() <> -1) and (folderSynthList <> []) and not (the visible of window "help") then
- if gOnSynth then
- set gOnSynth to 0
- IKSynthStop()
- else
- IKSetSynth(gPath & "Synth\" & field "fieldSynth" & "\")
- if synthList <> [] then
- set the visible of sprite 3 to 0
- 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())
- set gOnSynth to 1
- if gSynthSel then
- set the locH of sprite 74 to -20
- set gSynthSel to 0
- end if
- end if
- end if
- end if
- end
-