This is a further expansion on the sound program for insane sounding computers.
10 LET A=INT (RND*255)
11 LET A1=INT (RND*15)
12 LET A2=INT (RND*255)
13 LET A3=INT (RND*15)
14 LET A4=INT (RND*255)
15 LET A5=INT (RND*15)
16 LET A6=INT (RND*31)
100 SOUND 0,A;1,A1;2,A2;3,A3;4,A4;5,A5;6,A6;7,56;8,15;9,15;10,15
200 PAUSE 0
210 IF INKEY$="P" THEN GO TO 300
220 GO TO 10
300 PRINT "CHANNEL 1; FINE= ";A
310 PRINT "CHANNEL 1; COARSE= ";A1
320 PRINT "CHANNEL 2; FINE= ";A2
330 PRINT "CHANNEL 2; COARSE= ";A3
340 PRINT "CHANNEL 3; FINE= ";A4
350 PRINT "CHANNEL 3; COARSE= ";A5
360 PRINT ,,"NOISE= ";A6
370 PRINT ,,"ENABLE= ";56
375 PRINT ,,"NOTES:"
380 PAUSE 0
390 COPY
400 CLS
410 GO TO 200
9999 SAVE "RND SOUND" LINE 1
What this program does is randomly set up the sound channels. By pressing any key but “P”, you reset the random’s. As a result, you can listen to the sounds, bypassing the ones you don’t like. If you do hear something you like, just press “P” and it will print the current channel data to the screen. Press any key again, and it will present you with a hardcopy.
The practical use is obvious. Now, you don’t have to be a wiz to come up with lasar and spaceship sounds. The program will do it for you.
ENJOY
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.