home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Unsorted BBS Collection
/
thegreatunsorted.tar
/
thegreatunsorted
/
texts
/
boxes
/
sample3.lst
< prev
next >
Wrap
File List
|
1993-06-05
|
2KB
|
102 lines
REM this programme makes digital frequencies
REM r=rate
REM r=31250
r=20833.33333333
REM n=length
n=2048
OPEN "o",#1,"27010spl.rom"
RESTORE samples
FOR i=0 TO 63
READ n$,f1,f2
IF f1=0 THEN
f1=r
ENDIF
IF f2=0 THEN
f2=r
ENDIF
PRINT "generating.... ";n$
p1=n/INT(f1*(n/r)+0.5)
PRINT 1/p1*r-f1,"tolerance of",f1
p2=n/INT(f2*(n/r)+0.5)
PRINT 1/p2*r-f2,"tolerance of",f2
FOR t=0 TO n-1
v1=SIN((t/p1-INT(t/p1))*2*PI)
v2=SIN((t/p2-INT(t/p2))*2*PI)
k=(v1+v2)*63+128
PRINT #1,CHR$(k);
NEXT t
NEXT i
CLOSE #1
PRINT "done"
' Data file for frequencies
'
' Samplebank 0
samples:
DATA "0",941,1336
DATA "1",697,1209
DATA "2",697,1336
DATA "3",697,1477
DATA "4",770,1209
DATA "5",770,1336
DATA "6",770,1477
DATA "7",852,1209
DATA "8",852,1336
DATA "9",852,1477
DATA "*",941,1209
DATA "#",941,1477
DATA "A",697,1633
DATA "B",770,1633
DATA "C",852,1633
DATA "D",941,1633
' Samplebank 1
DATA "0",1300,1500
DATA "1", 700,900
DATA "2", 700,1100
DATA "3",1100,900
DATA "4", 700,1300
DATA "5",1300,900
DATA "6",1100,1300
DATA "7", 700,1500
DATA "8",1500,900
DATA "9",1100,1500
DATA "KP1",1100,1700
DATA "KP2",1300,1700
DATA "ST",1500,1700
DATA "C.11",700,1700
DATA "C.12",900,1700
DATA "DHLS",1850,1850
' Samplebank 2
DATA "0",1740,1860
DATA "1",1380,1500
DATA "2",1380,1620
DATA "3",1620,1500
DATA "4",1380,1740
DATA "5",1740,1500
DATA "6",1620,1740
DATA "7",1380,1860
DATA "8",1860,1500
DATA "9",1620,1860
DATA "KP1",1620,1980
DATA "KP2",1740,1980
DATA "ST",1860,1980
DATA "C.11",1380,1980
DATA "C.12",1500,1980
DATA "DHLS",1850,1850
' Samplebank 3
DATA "C5 Clear Forward",2400,2600
DATA "C5 Seize/C4 Binary 1",2400,2400
DATA "C4 Binary 0",2040,2040
DATA "C4 Compond",2040,2400
DATA "C3 Seize/Pulse",2280,2280
DATA "US/Can Seize",2600,2600
DATA "Spare 1",0,0
DATA "Spare 2",0,0
DATA "Guard Tone",2100,2100
DATA "US Ringing",440,480
DATA "US Dialtone",350,440
DATA "US Busy",480,620
DATA "Sw Dialtone/Busy",440,440
DATA "German Tone",460,460
DATA "US/DK Redbox",1700,2200
DATA "Silence!",0,0