--- title: "Amazi-Music" type: "article" slug: "amazi-music" url: "http://localhost/article/amazi-music/" markdown_url: "http://localhost/article/amazi-music.md" published_at: "2026-01-25T21:47:22+00:00" modified_at: "2026-06-21T23:27:12+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "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…" category: - name: "Byte Power" slug: "byte-power" taxonomy: "category" url: "http://localhost/category/periodicals/byte-power/" post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Eric Boisvert" slug: "boisvert-eric" taxonomy: "indiv" url: "http://localhost/indiv/boisvert-eric/" publication_r: id: 38570 title: "Byte Power 1st Class Magazine" type: "periodical" url: "http://localhost/periodical/byte-power-1st-class/" authors_r: - name: "Eric Boisvert" slug: "boisvert-eric" taxonomy: "indiv" url: "http://localhost/indiv/boisvert-eric/" issues_articles: - id: 38575 title: "Byte Power Dec 86/Jan 87" type: "issue" url: "http://localhost/issue/byte-power-5/" pubdate: "December 1986/January 1987" archive_link: true article_media: - id: 63236 title: "Amazi-Music" type: "computer_media" url: "http://localhost/computer_media/amazi-music/" --- # Amazi-Music 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. ## Source Code: Amazi-Music ``` 1 REM AMAZI-MUSIC by Eric Boisvert ©1987 BYTE POWER 10 20 REM USR CALLS 30 REM 65296 START MUSIC 40 REM 65309 END MUSIC 50 REM USEFUL POKE 60 REM 64915 TEMPO (0-254) 70 REM 64988 MAIN VOLUME 80 REM 64998 END NOTE VOLUME 90 REM 64947 END MUSIC CODE 100 REM 64967 PAUSE CODE 110 REM 64957 VOICE OPEN (7,X) 120 REM ADDRESS 130 REM 64897 ADDRESS OF MUSIC 140 150 REM 64892 LAST FREE BYTE 160 170 REM 61459 MUSICS [DEMO] 9000 CLS : PRINT AT 10,0;"STILL LOADING..."'' 9010 LOAD "AMAZIN MC"CODE : LOAD "MUSIC DATA"CODE 9015 IF PEEK 23681=0 THEN CLS : LIST 9999: STOP 9020 RANDOMIZE USR 65296: LIST : STOP 9999 SAVE "AMAZIMUSIC" LINE 9000: SAVE "AMAZIN MC"CODE 64902,450: SAVE "MUSIC DATA"CODE 61459,3443: VERIFY "": VERIFY ""CODE : VERIFY ""CODE ```