The number 10 produces a pure tone without distortion. To put in a
little distortion, change the 10 to 06:
SOUND 1 , 5 0 , 0 6 , 8
The computer sounds as if it's ready for takeoff. Type END before the
neighbors start complaining.
The last number in the SOUND command controls the volume. The
number must be between 0 and 15. Number 8 is a good number for
most uses. You risk damaging your TV speaker and your ears if you go
above 12.
To try some four-part harmony, enter the following:
S0UND 0,50,10,8
S O U N D l,100,10,8
S O U N D 2,150,10,8
S O U N D 3,200,10,8
Type END to stop the chorus.
Sounding Off with Variables
Variables in SOUND commands add versatility to your programs.
Using variables,you can program the computer to change the voice,
pitch, distortion, and volume of sustained sounds. Enter and run the
following program:
NEW
10 R E M * SET V A R I A B L E S FOR S O U N D V A L U E S
20 VOICE=0:PITCH = 100:TONE=8:VOL = 8
30 S O U N D V O I C E , P I T C H , T O N E , V O L
40 GOTO 20
R U N
To stop the sound, press the key and type END. To sustain a
sound, you need to repeat the SOUND command in the program. Two
common methods are a FOR-NEXT loop or a GOTO loop like the one
in the example above. The following program uses a variable for the
pitch in a FOR-NEXT loop to produce the computer's entire range of
pitches:
66
Содержание 65XE
Страница 1: ...ATARI 65XE PERSONAL COMPUTER OWNER S MANUAL TM...
Страница 3: ...ATARI 65XE PERSONAL COMPUTER TM...
Страница 6: ...Part 1 GettingStarted 1...
Страница 9: ...4...
Страница 23: ...18...
Страница 25: ...20...
Страница 32: ...Part 2 Programming withATARI BASIC 27...
Страница 33: ...28...
Страница 59: ...54...
Страница 69: ...64...
Страница 82: ...Part3 Appendices 77...
Страница 83: ...78...
Страница 97: ...92...
Страница 105: ...100...
Страница 125: ...120...
Страница 126: ...121 Index...
Страница 127: ...122...
Страница 134: ...ATARI 1987 Atari Corp All Rights Reserved Printed in Taiwan C072018 001 REV B K l 2 1987...
Страница 135: ......