A Sound Introduction, sound effects (EXPLOSN.BAS)

A Sound Introduction, sound effects by Jim Capparell, 10

Description

A Sound Introduction, sound effects by Jim Capparell, 10

From the Antic disk of October 1982 (Vol. 1 No. 4).

From the Antic Software Archive at atarimagazines.com. The program remains the property of its author and publisher.

What is in this file

Atari BASIC program · 597 bytes

Dialect
Atari BASIC
Lines
18
Variables
DUR, PITCH, ICR, V1, V3, V2
BASIC listing (18 lines)
10 REM EXPLOSION
20 REM DUR=LENGTH OF EFFECT,1-10
30 DUR=6
40 PITCH=20:GOSUB 80
50 SOUND 1,0,0,0:SOUND 2,0,0,0
60 GOTO 30
70 REM *** SUBROUTINE ***
80 SOUND 2,75,8,15
90 ICR=0.79+DUR/100
100 V1=15:V3=15:REM VOLUME
110 SOUND 0,PITCH,8,V1
120 SOUND 2,PITCH+20,8,V2
130 SOUND 2,PITCH+50,8,V3
140 V1=V1*ICR
150 V2=V2*(ICR+0.05)
160 V3=V3*(ICR+0.08)
170 IF V3>1 THEN 110
180 SOUND 0,0,0,0:RETURN