home *** CD-ROM | disk | FTP | other *** search
- on prepare
- global gSong, gPath, gBpmSong, gNumUser, gGrooveSel, gGreen, scaleList, audioList, keyNoteList, keyList, numTrackList
- IKSetIniPath("SOFTWARE\IK Multimedia\GrooveMaker\1.2")
- set temp to EMPTY
- repeat with i = 1 to count(numTrackList)
- set temp to temp & getAt(numTrackList, i)
- end repeat
- IKIniWrite("numTrack", temp)
- stop(member "preview")
- IKRealtimeFreq(44100)
- IKResetVTracks()
- repeat with i = 1 to the lineCount of member "song"
- set nomeFile to word 1 of line i of field "song" & ".wav"
- set rep to integer(word 4 of line i of field "song")
- IKAddVTrack(gPath & "Song\" & gSong & "\" & nomeFile, rep, 0)
- end repeat
- IKSetSongBPM(gBpmSong)
- IKFunction()
- put EMPTY into field "fieldAudio"
- set audioList to []
- repeat with i = 1 to the lineCount of member "song"
- put "= " & word 1 of line i of field "song" & RETURN after field "fieldAudio"
- append(audioList, word 1 of line i of field "song")
- end repeat
- delete char -30000 of field "fieldAudio"
- set the scrollTop of member "fieldAudio" to 0
- set the textFont of member "fieldAudio" to "IK10"
- set the foreColor of member "fieldAudio" to gGreen
- set gGrooveSel to 0
- set keyNoteList to [:]
- set k to 0
- repeat with i = 1 to 3
- repeat with j = 1 to count(scaleList)
- set k to k + 1
- addProp(keyNoteList, getAt(keyList, k), getAt(scaleList, j))
- end repeat
- end repeat
- end
-