home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / +system+ / tools / sound / eagleplayer2.00 / rexx / ep_prevpatt.dopus < prev    next >
Text File  |  1998-02-26  |  837b  |  41 lines

  1. /* Eagleplayer control for DOPUS 4
  2.    (c) 1993-97 DEFECT Softworks
  3.    switches to previous pattern in module
  4.  
  5.    ------------------------------------------------------------------------
  6.    Call as:
  7.    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  8.    [ARexx]  Eagleplayer2:Rexx/EP_PrevPatt.dopus {p}
  9.  
  10.    Flags:   none required
  11.  
  12. */
  13. parse arg opusport
  14. options results
  15.  
  16. address 'rexx_EP'
  17. status m pnr
  18. nummer=result
  19. if nummer == "RESULT" then
  20.  do
  21.   address value opusport
  22.   toptext "Eagleplayer: no module loaded"
  23.   exit 0
  24.  end
  25.  else
  26.   do
  27.    status p nummer jmp
  28.     if result == "no" then
  29.      do
  30.       address value opusport
  31.       toptext "Eagleplayer: Patternjump not available!"
  32.      end
  33.      else
  34.       do
  35.        prevpatt
  36.        song=result
  37.        address value opusport
  38.        toptext "Eagleplayer: "||song
  39.       end
  40.   end
  41.