home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 128 25 / q25.d81 / t.sounds < prev    next >
Text File  |  2022-08-28  |  3KB  |  56 lines

  1.  
  2.  
  3.                    S O U N D S   O F   C H R I S T M A S
  4.  
  5.                            by Henning Vahlenkamp
  6.  
  7.  
  8.     It's the time of year for whirling snow and familiar tinkling music, and
  9. LOADSTAR is happy to bring you both.  The whirling snow is courtesy of a
  10. custom font and the BASIC 7.0 RND command.  The tinkling music is brought to
  11. you compliments of the BASIC 7.0 PLAY command and the hard work of Henning
  12. Vahlenkamp.
  13.  
  14.     Henning wrote the program to run in the 40-column mode but made it easy
  15. to modify so that it runs in either 80- or 40-columns.  This is easy to do,
  16. programmers.  To check which mode the user is currently in, test PEEK(215).
  17. If it's 128 then the user is in the 80-column mode; if it's 0, then the user
  18. is in 40 columns.  So your program would then check this location before
  19. performing any action specific to either screen.
  20.  
  21.     There are two ways to make music on the C-128.  Most programs use an
  22. interrupt-driven routine that plays SID, Songsmith, or some other format of
  23. musical data.  The other method is to use the built-in PLAY command.  If you
  24. study the syntax for this command (as found in your manual) you'll see that
  25. it has plenty of parameters for setting the duration, pitch, waveform, etc.
  26. for each of the three voices.  Henning used a book of Christmas songs and
  27. translated the notes from the musical staff into the syntax used by the PLAY
  28. command.  LIST the program to see how it looks.
  29.  
  30.     I added a feature that lets you pick different instruments for each of
  31. the three voices.  You may have two voices play the same instrument if you
  32. want.  Press the P key at any time to play the highlighted song with the
  33. three selected instruments.  Press A and all of the songs will play, one
  34. after another.
  35.  
  36.     The big drawback to the PLAY command (as far as programmers are
  37. concerned) is that nothing can take place while a string is being played.
  38. Your computer is effectively locked up.  However, each song is divided into
  39. 4 to 10 strings and the keyboard checked after each string so you can quit a
  40. song by pressing any key while it's playing.  It may not stop immediately,
  41. but it will stop in a second or two.
  42.  
  43.     Writing music using the PLAY command is hard work but can be an
  44. enjoyable challenge.  In my opinion, the book that Henning took the
  45. arrangements from was not very good.  Feel free to LIST the program and
  46. modify the PLAY commands.  The LISTing is commented and it's easy to see
  47. where a song's data is.
  48.  
  49.      We hope you enjoy the tinkling music and the simulated snowstorm (80-
  50. column only).  Remember, only 100 shopping days till Easter!
  51.  
  52. FT
  53.  
  54.                   \\\\\ R - Run    RETURN - Menu \\\\\
  55.  
  56.