1 '**** BIRDSOND.BAS **** Program to play bird's songs
2 '****
3 KEY OFF: SCREEN 0: WIDTH 80: KEY(8) ON: ON KEY(8) GOSUB 65000
4 DEF SEG = 0: IF (PEEK(&H410) AND &H30) <> &H30 THEN GRAPH.ICS=1
5 IF GRAPH.ICS THEN FC=3: BC=4 ELSE FC=7
10 '**
11 '(C) Copyright 1984 SCOTT CAMAZINE & P. KIRK VISSCHER
12 KEY OFF: CLS: SCREEN 0 'set up screen
15 LOCATE ,,0 'turn off blinking cursor
30 ON ERROR GOTO 62000 'error trapping routine
50 GOSUB 60000 'introduction
95 DIM A(640) 'array to hold plotted points
97 DIM B%(640) 'array to hold frequencies
102 CLS
104 DEF SEG = 0: IF (PEEK(&H410) AND &H30) <> &H30 THEN GRAPH.ICS=1
108 GOSUB 41000 'option to get a song from a file
109 CLS
110 IF GRAPH.ICS <>1 THEN CLS: LOCATE 10,10,0: PRINT "You need graphics to create a song.": LOCATE 14,10: PRINT "Press any key to continue."; ELSE GOTO 118