home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a012 / 1.ddi / CHAP07.EXE / CHP0706.PRG < prev    next >
Encoding:
Text File  |  1991-04-30  |  892 b   |  31 lines

  1. /*
  2.    Listing 7.6 Preprocessed Music
  3.    Author: Greg Lief
  4.    Excerpted from "Clipper 5: A Developer's Guide"
  5.    Copyright (c) 1991 M&T Books
  6.                       501 Galveston Drive
  7.                       Redwood City, CA 94063-4728
  8.                       (415) 366-3600
  9. */
  10.  
  11. //───── NOTE: must compile with the /N option!
  12.  
  13. #command Charge => tunes({ {523,2}, {698,2}, {880,2}, {1046,4}, ;
  14.                            {880,2}, {1046,8} } )
  15. #command NannyBoo => tunes( { {196,4}, {196,4}, {164,4}, {220,4}, ;
  16.                               {196,8}, {164,8} } )
  17. #command TheFifth => tunes( { {392,2}, {392,2}, {392,2}, {311,10}, ;
  18.               {15,12}, {349,2}, {349,2}, {349,2}, {293,10} } )
  19. #translate tunes(<a>) => aeval(<a>, { | a | tone(a\[1], a\[2]) } )
  20.  
  21. function music
  22. charge
  23. inkey(0)
  24. nannyboo
  25. inkey(0)
  26. thefifth
  27. inkey(0)
  28. return nil
  29.  
  30. // end of file CHP0706.PRG
  31.