home *** CD-ROM | disk | FTP | other *** search
- on createGlobalVariable
- global gTraccia, gSolo, gOn, gloadGroove, gBpmPall, gToSeq, gLoadSynth, gSync, gFirstClick, gBlue, gfirstmarker, glastmarker, markerList
- set gBlue to 151
- set gSync to 0
- set gFirstClick to 1
- if markerList = [] then
- set gfirstmarker to 0
- set glastmarker to 0
- end if
- set gLoadSynth to EMPTY
- set gloadGroove to EMPTY
- set gOn to 1
- set gTraccia to 0
- set gBpmPall to 0
- set gYesDelUser to 0
- set gToSeq to 0
- end
-
- on createList
- global redList, soloList, tapList, tempList, catlist, markerList, groupList, minMaxGroupList
- if not markerList then
- set markerList to []
- end if
- set tempList to [EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY]
- set redList to [0, 0, 0, 0, 0, 0, 0, 0]
- set soloList to [0, 0, 0, 0, 0, 0, 0, 0]
- set tapList to [0, 0]
- set catlist to [:]
- repeat with i = 1 to count(groupList)
- addProp(catlist, getAt(groupList, i), integer(word 2 of getAt(minMaxGroupList, i)) - integer(word 1 of getAt(minMaxGroupList, i)) + 1)
- end repeat
- end
-
- on writeField
- global gSong, gRed, gBlue, gGreen
- put " " into field "fieldFullName"
- set the textFont of member "fieldFullName" to "IK10"
- set the foreColor of member "fieldFullName" to gRed
- put gSong into field "fieldNameSong"
- set the textFont of member "fieldNameSong" to "IK10"
- set the foreColor of member "fieldNameSong" to gBlue
- set the textFont of member "fieldBarBeat" to "IK10"
- set the foreColor of member "fieldBarBeat" to gGreen
- end
-
- on handlesprite
- global soloGroupList, stateTrackList
- repeat with i = 3 to 4
- puppetSprite(i, 0)
- end repeat
- set the loc of sprite 11 to point(205, 55)
- updateStage()
- puppetSprite(12, 1)
- puppetSprite(13, 1)
- repeat with i = 14 to 21
- puppetSprite(i, 1)
- set the ink of sprite i to 36
- end repeat
- repeat with i = 30 to 37
- puppetSprite(i, 1)
- end repeat
- puppetSprite(39, 1)
- set the loc of sprite 3 to point(529, 239)
- set the loc of sprite 4 to point(543, 239)
- set the visible of sprite 23 to 0
- puppetSprite(24, 1)
- repeat with i = 1 to 8
- if getAt(stateTrackList, i) <> "off" then
- puppetSprite(40 + i, 1)
- if getAt(soloGroupList, i) then
- set controlT to getAt(stateTrackList, i) & i & "S"
- else
- set controlT to getAt(stateTrackList, i) & i
- end if
- set the memberNum of sprite (40 + i) to the number of member controlT
- updateStage()
- end if
- end repeat
- repeat with i = 51 to 53
- set the visible of sprite i to 0
- end repeat
- end
-
- on writeFieldGroove
- if IKGetCurrentBeat() <> -1 then
- set beat to (IKGetCurrentBeat() mod 4) + 1
- set bar to (IKGetCurrentBeat() / 4) + 1
- put bar & " " & beat into field "fieldBarBeat"
- end if
- end
-