MOZART c.1984!

by Chi-Yeung Choy

from ZX Computing Jun/Jul.1984



Chi-Yeung Choy of Ruislip flexes his fingers and

performs this musical masterpiece.





The Spectrum's oft maligned beep has been considered too

feeble for any reasonable musical application in the past,

but now we present a program which will make you think

again!



Instead of the usual selection of sound effects or brief

burst of barely recognisable tunes, Chi-Yeung has

successfully programmed a computer version of the first

movement of Mozart's piano sonata in C Major K545. What is

even more amazing is that it is written all in BASIC and

fits into the 16K machine!



A great deal of thought and attention to technical detail

has gone into this program. For instance, the subroutines

have been put at the start of the program to get every ounce

of speed from the computer.



Chi-Yeung tells us that his greatest problem was fitting it

into the 16K due to the amount of DATA required and that he

almost gave up. Type it in and then give your fingers a rest

and your ears a treat. Play on maestro!





Program breakdown



Lines 30-230    Subroutines.

Lines 240-520   DATA statements containing pitch of notes.

Line 1000       Set up variables for note duration.

Lines 1010-2070 Main program consisting of FOR-NEXT loops.





--

Another Fine Product transcribed by:

Jim Grimwood (jimg@globalnet.co.uk), Weardale, England

--

