Insane Computer

Developer(s): Patrick Spera
Date: 1984
Type: Program
Platform(s): TS 2068
Tags: Sound

Sets the TS2068 sound chip to random values: fine and coarse pitch for all three channels and the noise period, with tones enabled and the volume at full. Press any key for a new random sound; press P (capital, with CAPS SHIFT) to show the current register values on the screen, then any key to copy the screen to the printer and go on.

Useful for finding laser and spaceship sounds to use in your own programs with SOUND. Line 9999 saves the program with LINE 1, which does not exist; start it with RUN.

By Patrick Spera (printed Patrick Spara).

Published in The Plotter October 1984 (Insane Computer).

Image Gallery

Source Code

  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

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.