EXAMPLE PROGRAM 3 (EXAMPLE 1 MODIFIED):
5 S=54272 10 FORL=STOS+24:POKEL,0:NEXT 20 POKES+5,9:POKES+6,0 30 POKES+24,15 40 READHF,LF,DR 50 IFHF<0THENEND 60 POKES+1,HF:POKES,LF 70 POKES+4,17 80 FORT=1TODR:NEXT 90 POKES+4,16:FORT=1TO50:NEXT 100 GOTO40 110 DATA25,177,250,28,214,250 120 DATA25,177,250,25,177,250 130 DATA25,177,125,28,214,125 140 DATA32,94,750,25,177,250 150 DATA28,214,250,19,63,250 160 DATA19,63,250,19,63,250 170 DATA21,154,63,24,63,63 180 DATA25,177,250,24,63,125 190 DATA19,63,250,-1,-1,-1
Now RUN the program.
Notice how the sound quality is different, less twangy, more hollow. That's because we changed the sawtooth waveform into a triangular waveform (shown left). The third musical waveform is called a variable pulse wave (shown right).
This page has been created by Sami Rautiainen. | |
Read the small print. | Last updated February 10, 2002. |