Hearing Test (HEAR1.BAS)

Hearing Test by Charles Jackson, 27

Description

Hearing Test by Charles Jackson, 27

From the Antic disk of March 1986 (Vol. 4 No. 11).

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 · 826 bytes

Dialect
Atari BASIC
Lines
21
Variables
A$, CLOCK, P, F, WT
BASIC listing (21 lines)
5 REM HEARING TEST, LISTING 1
6 REM BY C. JACKSON
7 REM (c) 1985, ANTIC PUBLISHING
10 DIM A$(32):CLOCK=1790000
15 REM START SOUND IN AUDIO RANGE
20 SOUND 0,P,10,14
25 REM CHANGE CLOCK TO 1.79 MHZ
30 POKE 53768,64
35 ? "↰Close your eyes.":? :? "Press the joystick button"
36 ? "when the pitch is low enough to hear.":? :? "Press [RETURN] to begin."
40 INPUT A$
45 FOR F=2 TO 255 STEP 4
50 ? INT(CLOCK/(2*F));" HZ"
55 REM CHANGE FREQUENCY
60 POKE 53760,F
65 FOR WT=1 TO 150:IF STRIG(0)=0 THEN POP :PRINT "THIS IS THE FREQUENCY YOU CHOSE.":GOTO 85
70 NEXT WT
75 NEXT F
80 PRINT "This is the lowest pitch the 1.79 MHZ clock can produce."
82 ? :? "If you couldn't hear this,":? "check your TV speaker."
85 END :REM AN END COMMAND TURNS OFF THE SOUND.