A Sound Introduction (WHISTLE.BAS)
A Sound Introduction
Description
A Sound Introduction
From the Antic disk of Best of Antic Book — disk B.
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 · 722 bytes
- Dialect
- Atari BASIC
- Lines
- 20
- Variables
DUR,V1,PITCH,WAIT,V2,V3,ICR
BASIC listing (20 lines)
10 REM WHISTLE & BOMB
20 REM DUR=LENGTH OF EFFECT
30 DUR=5
40 V1=4:FOR PITCH=30 TO 75
50 SOUND 0,PITCH,10,V1
60 SOUND 1,PITCH+3,10,V1*0.7
70 FOR WAIT=1 TO DUR*3:NEXT WAIT
80 V1=V1*1.03:NEXT PITCH
90 SOUND 2,35,8,12
100 V1=15:V2=15:V3=15
110 PITCH=DUR+5:ICR=0.79+DUR/100
120 SOUND 0,PITCH,8,V1
130 SOUND 1,PITCH+20,8,V2
140 SOUND 2,PITCH+50,8,V3
150 V1=V1*ICR
160 V2=V2*(ICR+0.05)
170 V3=V3*(ICR+0.08)
180 IF V3>1 THEN 120
190 SOUND 0,0,0,0:SOUND 1,0,0,0
200 SOUND 2,0,0,0:GOTO 30
