home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global gArp, gProg, gPath, gBlue, loadSynthList, delSynthList, synthList, progList
- if (line the mouseLine of field "fieldElencoSynthCD" <> EMPTY) and (the number of words in line the mouseLine of field "fieldElencoSynthCD" = 1) then
- set linea to the mouseLine
- if the name of member the memberNum of sprite 8 = "Hpreview" then
- set the memberNum of sprite 8 to the number of member "preview"
- updateStage()
- IKSynthStop()
- 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
- IKSetSynth(gPath & "Synth\" & field "fieldSynth" & "\")
- IKSynthArp(getPos(progList, gProg) - 1, arp, createSeq())
- end if
- end if
- set the foreColor of field "fieldElencoSynth" to 0
- set delSynthList to []
- if the controlDown then
- set the foreColor of line linea of field "fieldElencoSynthCD" to gBlue
- append(loadSynthList, line linea of field "fieldElencoSynthCD")
- else
- if the shiftDown then
- if loadSynthList = [] then
- set the foreColor of line linea of field "fieldElencoSynthCD" to gBlue
- set loadSynthList to [line linea of field "fieldElencoSynthCD"]
- else
- set ultimo to getLast(loadSynthList)
- repeat with i = 1 to the number of lines in field "fieldElencoSynthCD"
- if line i of field "fieldElencoSynthCD" = ultimo then
- exit repeat
- end if
- end repeat
- set a to i
- set b to linea
- set start to min(a, b)
- set end to max(a, b)
- deleteAt(loadSynthList, count(loadSynthList))
- repeat with i = start to end
- set the foreColor of line i of field "fieldElencoSynthCD" to gBlue
- append(loadSynthList, line i of field "fieldElencoSynthCD")
- end repeat
- end if
- else
- set the foreColor of member "fieldElencoSynthCD" to 0
- set the foreColor of line linea of field "fieldElencoSynthCD" to gBlue
- set loadSynthList to [line linea of field "fieldElencoSynthCD"]
- end if
- end if
- end if
- end
-