Amazi-Music

Authors

Pub Details

Date

Pages

See all articles from Byte Power Dec 86/Jan 87

This program allows you to play any music (MUSIcomp compatible data) during any program, even while programming!

The music data can be anywhere in memory, all you have to do is to POKE the starting address at 64897.

Ex: LET A=40000: POKE 64897,A-256*INT(A/256): POKE 64898, INT(A/256)

The main volume, end-note volume, tempo, etc can be modified to suit your needs.

Here is the list of all that can be modified.

  • 64915 TEMPO, speed of music (0 fast to 254 slow)
  • 64988 MAIN VOLUME of the notes (1 soft to 15 loud)
  • 64998 END-NOTE VOLUME that separates each note (1 to 15)
  • 64998 END MUSIC CODE (255 end of music, “MUSIcomp end”)
  • 64967 PAUSE CODE (254 pause/rest)
  • 64957 VOICE OPEN (62 see next paragraph)
  • 64897 ADDRESS OF MUSIC (see 2nd paragraph)

Last free byte of memory for music is 64892.The address 64957 contains the number of voice to open. What the program does is exactly as SOUND 7,xx, xx being the number of voice that are opened, see Chapter 21 page 191 of User Manual. I explain this because if you use this program in one of your programs you’ll notice that you can’t have any other sound than the music. This is because, every 1/60th of a second the computer refreshes the note and re-opens the n# of voice channel, and by the way the music is played on channel #1. So if you want to add sound you must put the value of the total of voices used. If you use the noise channel B, you must then POKE 64957,46 [63-1-16 (1=voice #1, 16=noise channel B)] when you have finished using the other voice you must then re-POKE the 62, or the computer will still play (open) the noise channel B.

To Play the music- RANDOMIZE USR 65296.To stop the music- RANDOMIZE USR 65309.

Products

 

Downloadable Media

 

Image Gallery

Scroll to Top