The sawtooth waveform sounds similar to the triangle waveform
though it has less buzz. Finally, try the white noise waveform (3).
Substitute line 60 for this line:
60 SOUND 1,1,1,0 ,0, 0 ,3 ,0
Now the program loop plays the white noise generator for the
entire range of frequencies. As the frequency increases in the
loop the pitch increases and sounds like a rocket taking off.
Notice that so far we have not specified all of the parameters in
the SOUND statement. Take line 60 for example:
60 SOUND 1,1,1,0, 0,0, 3,0
The three zeros following 1,1,1 pertain to the sweep parameters
within the SOUND statement. Since none of the parameters is
specified, the SOUND does not sweep. Add this line to your
program:
100 SOUND 1, 49152, 240, 1, 0, 100, 1, 0
n 4 144444
Voice
____
Frequency.
Duration
__
Sweep Direction
__________
Minimum Sweep Frequency.
Step Value for sweep
______
Waveform
_______________
Pulse Width for variable width
waveform
_______________
Line 100 starts the sweep frequency at 49152 and decrements
the sweep by 100 in the downward direction, until it reaches the
minimum sweep frequency at 0. Voice 1, using the sawtooth
waveform (#1), plays each SOUND for four seconds (240 * 1 /60
sec.). Line 100 sounds like a bomb dropping, as in many “shoot
'em up” arcade games.
7-7