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

  1. on mouseEnter
  2.   if the visible of window "Help" then
  3.     tell window "help"
  4.       go("synth4")
  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 mouseDown
  18.   global gOn, synthList, folderSynthList
  19.   if gOn and (synthList <> []) and (folderSynthList <> []) and not (the visible of window "help") then
  20.     repeat while the mouseDown
  21.       set the memberNum of sprite 62 to the number of member "Hsave"
  22.       updateStage()
  23.     end repeat
  24.   end if
  25. end
  26.  
  27. on mouseUp
  28.   global gArp, gProg, gOn, gPosVolSynth, gPosPanSynth, synthList, folderSynthList
  29.   if gOn and (folderSynthList <> []) and not (the visible of window "help") then
  30.     if synthList <> [] then
  31.       set the memberNum of sprite 62 to the number of member "save"
  32.       updateStage()
  33.       set testo to EMPTY
  34.       repeat with i = 1 to count(synthList)
  35.         set testo to testo & getAt(synthList, i) & " "
  36.       end repeat
  37.       set testo to testo & numToChar(13) & numToChar(10)
  38.       set testo to testo & field "fieldSynth" & " "
  39.       set testo to testo & gArp & " "
  40.       set testo to testo & gProg & " "
  41.       set testo to testo & gPosVolSynth & " "
  42.       set testo to testo & gPosPanSynth & " "
  43.       set myFile to new(xtra("fileio"))
  44.       setFilterMask(myFile, ".txt")
  45.       set nameFile to displaySave(myFile, "Save synth window", EMPTY)
  46.       createFile(myFile, nameFile)
  47.       openFile(myFile, nameFile, 2)
  48.       writeString(myFile, testo)
  49.       closeFile(myFile)
  50.       set myFile to 0
  51.     end if
  52.   end if
  53. end
  54.