Jukebox

by Lloyd Russell

from Your Sinclair #21 (Sep.1987

[files JUKEBOX.*]





Here's a tricky program for all of you who love the tunes

you get on 128 games, but can't program a tune yourself.

This delightful selection of popular tunes (sounds like an

advert for a K-Tel record!) can be played from the main menu

at will. Although it falls partway between game and utility,

it's probably of more use as a utility; even if it merely

demonstrates how to program realistic and musical tunes on

the Speccy 128. It's a long program, but so enjoyable you

won't regret it.





Method



Using Jukebox is simplicity itself. Just type in the number

corresponding to the tune you'd like to dance to and before

you can say Beastie Boys, the music starts





Basic Listing 1



The program is listed in two parts. This part loads in the

UDGs (there's a DATA check). This must be SAVEd by using the

save line at the end of this listing. Just RUN 18, and the

program will be saved and verified automatically. With a

little help from you, of course.





Basic Listing 2



This is the main program. Once again save it using the SAVE

line at the end of the program at line 103. Note that

there's a PLAY command in this line. The tune that it plays

must be recorded before the rest of the listing, so press

PLAY and RECORD and type RUN 103 and then ENTER.

