Mercurial > hg > index.fcgi > lj > lj046
diff src/gbanotefreq.c @ 0:c84446dfb3f5
initial add
author | paulo@localhost |
---|---|
date | Fri, 13 Mar 2009 00:39:12 -0700 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/gbanotefreq.c Fri Mar 13 00:39:12 2009 -0700 1.3 @@ -0,0 +1,25 @@ 1.4 +/* notefreq.h generated by mkpowers.c 1.5 + lookup table for note frequencies */ 1.6 + 1.7 +/* DMG Sound period values 1.8 + frequency = 131072 Hz/(2048 + n) */ 1.9 +const unsigned short note_freqs[64] = { 1.10 + 44, 156, 262, 362, 457, 546, 630, 710, 785, 856, 923, 986, 1.11 + 1046, 1102, 1155, 1205, 1252, 1297, 1339, 1379, 1416, 1452, 1485, 1517, 1.12 + 1547, 1575, 1601, 1626, 1650, 1672, 1693, 1713, 1732, 1750, 1766, 1782, 1.13 + 1797, 1811, 1824, 1837, 1849, 1860, 1870, 1880, 1890, 1899, 1907, 1915, 1.14 + 1922, 1929, 1936, 1942, 1948, 1954, 1959, 1964, 1969, 1973, 1977, 1981, 1.15 + 1985, 1988, 1992, 1995 1.16 +}; 1.17 +#if 0 1.18 +/* DMG Sound period values 1.19 + frequency = base_freq * n / 4096 */ 1.20 +const unsigned short sampled_freqs[64] = { 1.21 + 1024, 1084, 1149, 1217, 1290, 1366, 1448, 1534, 1625, 1722, 1824, 1933, 1.22 + 2048, 2169, 2298, 2435, 2580, 2733, 2896, 3068, 3250, 3444, 3649, 3866, 1.23 + 4096, 4339, 4597, 4870, 5160, 5467, 5792, 6137, 6501, 6888, 7298, 7732, 1.24 + 8192, 8679, 9195, 9741,10321,10935,11585,12274,13003,13777,14596,15464, 1.25 +16384,17358,18390,19483,20642,21870,23170,24548,26007,27554,29192,30928, 1.26 +32768,34716,36780,38967 1.27 +}; 1.28 +#endif 1.29 \ No newline at end of file