home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Audio 4.94 - Over 11,000 Files
/
audio-11000.iso
/
msdos
/
music
/
guitar
/
guitar1.bas
< prev
Wrap
BASIC Source File
|
1986-01-07
|
3KB
|
71 lines
10 CLS
20 COLOR 7,8
30 'Program by Ed Cummins Atlanta IBM PC Club
40 'Released for Public Domain use
50 '
60 ' Modified slightly in 1985 by:
70 ' Willis A. Frambach
80 ' 3610 Long Beach Blvd.
90 ' Long Beach, CA 90807
100 '
110 ' A.S.A. 1936 is the equally tempered scale used to tune pianos.
120 ' This program should produce A.S.A. 1936 pitch. Unfortunately,
130 ' the speaker in the IBM-PC will not do much for us at these
140 ' frequencies.
150 '
160 ' Standing wave is what you get when you self-tune a guitar
170 ' using a 440 hz. tuning fork to set up a 4th harmonic on
180 ' the A string and then setting up standing waves progressively
190 ' on various harmonics of the other strings.
200 '
210 KEY OFF:CLS:X$=STRING$(80,45)
220 PRINT X$
230 P$="G U I T A R T U N I N G P R O G R A M "
240 LOCATE ,40-(LEN(P$)/2)
250 PRINT P$:PRINT:PRINT X$
260 PRINT
270 PRINT "String #","Note","A.S.A. 1936 (hz.)","Standing Wave (hz.)"
280 PRINT "--------","----","-----------------","-------------------"
290 PRINT ""
300 PRINT
310 GOSUB 650
320 GOSUB 660
330 GOSUB 670
340 GOSUB 680
350 GOSUB 690
360 GOSUB 700
370 LOCATE 25,1:PRINT" Select NUMBER of Desired String or press 'SPACE BAR' to stop";
380 S$=INPUT$(1):S=VAL(S$)
390 ON S GOTO 410,450,490,530,570,610
400 PLAY "o0c64":GOTO 370
410 COLOR 31:GOSUB 650
420 PLAY "mlo2e64":S$=INKEY$:IF S$="" THEN 420
430 COLOR 7:GOSUB 650
440 S=VAL(S$):GOTO 390
450 COLOR 31:GOSUB 660
460 PLAY "mlo1b64":S$=INKEY$:IF S$="" THEN 460
470 COLOR 7:GOSUB 660
480 S=VAL(S$):GOTO 390
490 COLOR 31:GOSUB 670
500 PLAY "mlo1g64":S$=INKEY$:IF S$="" THEN 500
510 COLOR 7:GOSUB 670
520 S=VAL(S$):GOTO 390
530 COLOR 31:GOSUB 680
540 PLAY "mlo1d64":S$=INKEY$:IF S$="" THEN 540
550 COLOR 7:GOSUB 680
560 S=VAL(S$):GOTO 390
570 COLOR 31:GOSUB 690
580 PLAY "mlo0a64":S$=INKEY$:IF S$="" THEN 580
590 COLOR 7:GOSUB 690
600 S=VAL(S$):GOTO 390
610 COLOR 31:GOSUB 700
620 PLAY "mlo0e64":S$=INKEY$:IF S$="" THEN 620
630 COLOR 7:GOSUB 700
640 S=VAL(S$):GOTO 390
650 LOCATE 10,5:PRINT "1","E"," 82.41",," 82.50";:PRINT:RETURN
660 LOCATE 12,5:PRINT "2","B"," 110.00",," 110.00";:PRINT:RETURN
670 LOCATE 14,5:PRINT "3","G"," 146.83",," 146.66";:PRINT:RETURN
680 LOCATE 16,5:PRINT "4","D"," 196.00",," 196.00";:PRINT:RETURN
690 LOCATE 18,5:PRINT "5","A"," 246.94",," 247.50";:PRINT:RETURN
700 LOCATE 20,5:PRINT "6","E"," 329.63",," 330.00";:PRINT:RETURN