Graphics and Sound

Author(s): Joe Smith Jr.
Publication: The Plotter
Pub Details: The Plotter v11 n2 (Volume 11, Issue 2)
Pages: 4

This program by Joe Smith Jr. is from an old issue of CTM magazine. It is interesting how he has used one graphic “fuzzy ball” 12 times and then explosively connect all of the randomly placed balls with lines. This program will allow the venturesome user a chance to change the beep sound as well as musical scale sounds.

   3 REM GRAPHIC WITH SOUND AND COLOR
4 REM DICK WAGNER, from 1/87 CTM Magazine by Joe Smith Jr.
6 REM if using a B&W monitor, delete INK in line 60, change PAPER to 7, INK to 0, and BORDER to 0 in direct mode. Delete INK in line 130
10 DIM B(10): DIM C(10)
15 FOR A=1 TO 10
20 GO SUB 2000
30 FOR J=2 TO 14
40 FOR I=0 TO 2*PI STEP PI/10
50 GO SUB 1000
60 INK 7-(J/2): PLOT X+J*COS I,Y+J*SIN I
70 NEXT I
80 NEXT J
90 NEXT A
100 FOR A=1 TO 9
110 FOR N=A TO 9
120 PLOT B(A),C(A)
130 LET XX=B(N+1)-B(A): LET YY=C(N+1)-C(A): INK 0
140 DRAW XX,YY: SOUND 6,15;7,7;8,16;9,16;10,16;12,16;13,0
150 NEXT N: NEXT A
160 SOUND 6,6;7,7;8,16;10,16;12,56;13,8
170 FOR N=1 TO 250: NEXT N: SOUND 8,0;9,0;10,0: FOR N=1 TO 5000
180 LET A$=INKEY$: IF A$="" THEN GO TO 180
190 CLS : RUN
999 STOP
1000 LET N=INT (I*20.69)-60
1010 BEEP .01,N
1020 BEEP .01,9-N
1030 RETURN
2000 LET X=INT (24*RND)*10+10: LET B(A)=X+2
2010 LET Y=INT (16*RND)*10+10: LET C(A)=Y
2020 IF A>1 THEN PLOT B(A-1),C(A-1): GO TO 2040
2030 RETURN
2040 LET XX=X-B(A-1): LET YY=Y-C(A-1)
2050 DRAW XX,YY
2060 SOUND 6,6;7,7;8,16;9,16;10,16;12,56;13,8
2070 FOR N=1 TO 250: NEXT N: SOUND 8,0;9,0;10,0
2080 PLOT B(A-1),C(A-1): DRAW XX,YY
2090 RETURN

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