home *** CD-ROM | disk | FTP | other *** search
/ Computer Music Interactif 7 / cd.iso / pc / PC / Demos / GroovMak / data1.cab / Program_Executable_Files / Media / Pref.dxr / 00084.ls < prev    next >
Encoding:
Text File  |  1999-09-17  |  1.4 KB  |  59 lines

  1. on mouseEnter
  2.   if the visible of window "help" then
  3.     tell window "help"
  4.       go("pref2")
  5.     end tell
  6.   end if
  7. end
  8.  
  9. on mouseLeave
  10.   if the visible of window "help" then
  11.     tell window "help"
  12.       go("start")
  13.     end tell
  14.   end if
  15. end
  16.  
  17. on mouseUp
  18.   global gQMix, gOnSynth, gReturn, gPath, gSolo, gNumUser, gMix, virTracklIst, stateTrackList, gStop
  19.   if not (the visible of window "help") and gMix then
  20.     repeat with i = 6 to 7
  21.       set the visible of sprite i to 0
  22.     end repeat
  23.     if the mouseV <= 182 then
  24.       set the visible of sprite 6 to 1
  25.       set gQMix to 1
  26.     else
  27.       set the visible of sprite 7 to 1
  28.       set gQMix to 0
  29.     end if
  30.     if gOnSynth then
  31.       IKSynthStop()
  32.       set gOnSynth to 0
  33.     end if
  34.     set gSolo to 0
  35.     set stateTrackList to ["off", "off", "off", "off", "off", "off", "off", "off"]
  36.     case word 1 of gReturn of
  37.       "groove":
  38.         IKStop()
  39.         set gStop to 1
  40.       "seq":
  41.         if IKGetCurrentBeat() <> -1 then
  42.           IKStop()
  43.           set gStop to 1
  44.         end if
  45.     end case
  46.     IKRealtimeFreq(44100)
  47.     if word 1 of gReturn = "groove" then
  48.       if virTracklIst <> [-1, -1, -1, -1, -1, -1, -1, -1] then
  49.         repeat with i = 1 to 8
  50.           if getAt(virTracklIst, i) <> -1 then
  51.             put "=" into word 1 of line getAt(virTracklIst, i) of field "fieldAudio"
  52.           end if
  53.         end repeat
  54.         set virTracklIst to [-1, -1, -1, -1, -1, -1, -1, -1]
  55.       end if
  56.     end if
  57.   end if
  58. end
  59.