home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global gArp, gPath, gProg, gBlue, delSynthList, loadSynthList, synthList, progList
- if (line the mouseLine of field "fieldElencoSynth" <> EMPTY) and (the number of words in line the mouseLine of field "fieldElencoSynth" = 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 "fieldElencoSynthCD" to 0
- set loadSynthList to []
- if the controlDown then
- set the foreColor of line linea of field "fieldElencoSynth" to gBlue
- if not getPos(delSynthList, line linea of field "fieldElencoSynth") then
- append(delSynthList, line linea of field "fieldElencoSynth")
- end if
- else
- if the shiftDown then
- if delSynthList = [] then
- set the foreColor of line linea of field "fieldElencoSynth" to gBlue
- set delSynthList to [line linea of field "fieldElencoSynth"]
- else
- set ultimo to getLast(delSynthList)
- repeat with i = 1 to the number of lines in field "fieldElencoSynth"
- if line i of field "fieldElencoSynth" = 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(delSynthList, count(delSynthList))
- repeat with i = start to end
- set the foreColor of line i of field "fieldElencoSynth" to gBlue
- if not getPos(delSynthList, line i of field "fieldElencoSynth") then
- append(delSynthList, line i of field "fieldElencoSynth")
- end if
- end repeat
- end if
- else
- set the foreColor of member "fieldElencoSynth" to 0
- set the foreColor of line linea of field "fieldElencoSynth" to gBlue
- set delSynthList to [line linea of field "fieldElencoSynth"]
- end if
- end if
- end if
- end
-