You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenTheremin_V3_with_MIDI/Open_Theremin_V3/theremin_sintable2.c

1033 lines
6.1 KiB

/* Theremin WAVE Table "Phoenix" - 1024 entries full table, amplitude -2048..2048*/
#include <avr/pgmspace.h>
const int16_t sine_table2[1024] PROGMEM = {\
0,
2,
3,
5,
6,
10,
11,
13,
14,
16,
19,
21,
22,
24,
26,
29,
30,
32,
33,
36,
38,
40,
41,
43,
46,
48,
49,
51,
53,
56,
58,
59,
61,
63,
67,
69,
70,
72,
74,
78,
80,
82,
84,
88,
89,
92,
94,
96,
100,
102,
104,
106,
108,
112,
114,
116,
118,
120,
124,
126,
128,
130,
132,
136,
138,
140,
142,
146,
148,
150,
152,
154,
158,
161,
163,
165,
167,
171,
174,
176,
178,
181,
185,
188,
190,
192,
197,
199,
202,
204,
207,
212,
214,
217,
219,
222,
227,
229,
232,
235,
237,
243,
246,
248,
251,
254,
260,
263,
267,
270,
276,
279,
283,
286,
290,
297,
300,
304,
308,
312,
319,
323,
327,
331,
335,
343,
348,
352,
356,
361,
369,
374,
378,
383,
392,
397,
401,
406,
410,
420,
424,
429,
433,
438,
447,
452,
457,
462,
467,
477,
482,
487,
493,
504,
509,
515,
520,
525,
538,
544,
550,
556,
562,
574,
580,
587,
594,
601,
614,
621,
627,
636,
644,
660,
669,
677,
685,
703,
713,
723,
733,
742,
762,
772,
783,
795,
806,
828,
840,
851,
862,
875,
901,
913,
926,
939,
952,
978,
992,
1005,
1019,
1047,
1060,
1074,
1088,
1102,
1130,
1144,
1158,
1172,
1186,
1213,
1226,
1240,
1253,
1267,
1294,
1307,
1319,
1332,
1358,
1371,
1383,
1396,
1408,
1432,
1443,
1455,
1467,
1479,
1501,
1512,
1523,
1533,
1544,
1565,
1576,
1586,
1595,
1605,
1624,
1634,
1643,
1653,
1670,
1679,
1688,
1696,
1705,
1722,
1730,
1738,
1746,
1754,
1770,
1778,
1786,
1792,
1799,
1813,
1820,
1827,
1834,
1841,
1853,
1859,
1865,
1871,
1884,
1890,
1895,
1900,
1906,
1916,
1921,
1927,
1932,
1936,
1945,
1950,
1954,
1959,
1964,
1972,
1976,
1979,
1983,
1990,
1994,
1998,
2001,
2004,
2010,
2013,
2016,
2020,
2023,
2027,
2029,
2031,
2033,
2035,
2039,
2040,
2041,
2042,
2042,
2044,
2044,
2045,
2045,
2044,
2043,
2043,
2043,
2042,
2041,
2039,
2038,
2037,
2036,
2034,
2032,
2030,
2028,
2025,
2021,
2019,
2016,
2014,
2010,
2003,
1999,
1995,
1992,
1984,
1979,
1974,
1969,
1964,
1954,
1949,
1944,
1937,
1931,
1918,
1912,
1906,
1899,
1893,
1877,
1869,
1861,
1853,
1838,
1830,
1820,
1811,
1802,
1783,
1774,
1764,
1755,
1744,
1723,
1712,
1701,
1691,
1680,
1657,
1645,
1633,
1621,
1609,
1584,
1572,
1559,
1545,
1519,
1505,
1492,
1478,
1465,
1437,
1422,
1408,
1394,
1380,
1352,
1337,
1322,
1307,
1292,
1261,
1246,
1231,
1215,
1184,
1168,
1152,
1136,
1120,
1088,
1071,
1055,
1038,
1022,
989,
972,
955,
938,
921,
887,
871,
854,
837,
819,
785,
767,
750,
733,
698,
680,
662,
645,
627,
592,
574,
556,
538,
520,
484,
466,
448,
430,
412,
376,
357,
339,
321,
302,
266,
248,
229,
211,
175,
156,
138,
120,
102,
66,
48,
30,
12,
-6,
-42,
-59,
-77,
-95,
-113,
-148,
-166,
-184,
-202,
-236,
-254,
-272,
-289,
-306,
-341,
-358,
-376,
-393,
-410,
-444,
-461,
-478,
-495,
-511,
-545,
-562,
-578,
-595,
-611,
-645,
-661,
-678,
-694,
-726,
-742,
-758,
-774,
-790,
-821,
-836,
-852,
-867,
-882,
-913,
-929,
-943,
-958,
-973,
-1003,
-1018,
-1032,
-1047,
-1061,
-1089,
-1103,
-1118,
-1132,
-1160,
-1173,
-1186,
-1199,
-1213,
-1239,
-1252,
-1266,
-1278,
-1290,
-1315,
-1328,
-1340,
-1352,
-1365,
-1388,
-1399,
-1411,
-1422,
-1445,
-1456,
-1467,
-1477,
-1487,
-1508,
-1518,
-1529,
-1539,
-1548,
-1567,
-1576,
-1586,
-1595,
-1605,
-1623,
-1631,
-1640,
-1648,
-1657,
-1674,
-1683,
-1691,
-1698,
-1714,
-1722,
-1729,
-1737,
-1745,
-1759,
-1767,
-1774,
-1781,
-1788,
-1802,
-1809,
-1815,
-1822,
-1828,
-1841,
-1847,
-1854,
-1859,
-1865,
-1876,
-1882,
-1887,
-1893,
-1903,
-1908,
-1913,
-1918,
-1923,
-1933,
-1938,
-1942,
-1946,
-1950,
-1959,
-1963,
-1967,
-1971,
-1975,
-1981,
-1985,
-1988,
-1991,
-1998,
-2000,
-2003,
-2005,
-2008,
-2013,
-2015,
-2018,
-2020,
-2022,
-2026,
-2028,
-2030,
-2031,
-2033,
-2036,
-2037,
-2038,
-2039,
-2040,
-2043,
-2043,
-2043,
-2044,
-2045,
-2045,
-2045,
-2046,
-2046,
-2045,
-2045,
-2045,
-2045,
-2045,
-2045,
-2044,
-2044,
-2044,
-2043,
-2042,
-2042,
-2041,
-2040,
-2039,
-2037,
-2036,
-2035,
-2034,
-2032,
-2030,
-2029,
-2027,
-2026,
-2023,
-2021,
-2019,
-2018,
-2016,
-2012,
-2011,
-2009,
-2007,
-2005,
-2000,
-1998,
-1996,
-1994,
-1989,
-1987,
-1984,
-1982,
-1979,
-1974,
-1972,
-1969,
-1967,
-1965,
-1960,
-1957,
-1955,
-1953,
-1951,
-1946,
-1944,
-1942,
-1940,
-1938,
-1934,
-1932,
-1930,
-1929,
-1925,
-1923,
-1922,
-1920,
-1919,
-1916,
-1915,
-1914,
-1912,
-1911,
-1909,
-1908,
-1907,
-1906,
-1905,
-1903,
-1902,
-1901,
-1901,
-1900,
-1898,
-1897,
-1896,
-1896,
-1894,
-1893,
-1892,
-1891,
-1890,
-1888,
-1887,
-1885,
-1884,
-1882,
-1880,
-1878,
-1876,
-1873,
-1870,
-1865,
-1863,
-1860,
-1857,
-1850,
-1846,
-1843,
-1839,
-1835,
-1828,
-1823,
-1819,
-1814,
-1810,
-1801,
-1797,
-1792,
-1787,
-1782,
-1773,
-1768,
-1763,
-1758,
-1753,
-1742,
-1737,
-1732,
-1726,
-1716,
-1711,
-1705,
-1699,
-1694,
-1683,
-1677,
-1672,
-1666,
-1661,
-1649,
-1644,
-1638,
-1633,
-1627,
-1616,
-1610,
-1605,
-1599,
-1594,
-1583,
-1577,
-1572,
-1566,
-1554,
-1549,
-1543,
-1537,
-1531,
-1518,
-1511,
-1504,
-1497,
-1490,
-1477,
-1468,
-1460,
-1452,
-1443,
-1426,
-1418,
-1410,
-1400,
-1381,
-1371,
-1361,
-1351,
-1342,
-1321,
-1311,
-1300,
-1290,
-1279,
-1258,
-1247,
-1237,
-1226,
-1215,
-1194,
-1183,
-1173,
-1162,
-1151,
-1130,
-1120,
-1109,
-1099,
-1078,
-1067,
-1057,
-1047,
-1037,
-1016,
-1006,
-996,
-987,
-977,
-958,
-948,
-939,
-929,
-919,
-902,
-893,
-884,
-876,
-867,
-849,
-841,
-833,
-825,
-809,
-801,
-793,
-784,
-777,
-762,
-755,
-747,
-740,
-732,
-718,
-711,
-704,
-697,
-690,
-676,
-669,
-663,
-656,
-643,
-637,
-630,
-624,
-617,
-606,
-600,
-594,
-588,
-582,
-570,
-565,
-559,
-554,
-549,
-538,
-533,
-528,
-522,
-517,
-507,
-502,
-497,
-492,
-482,
-477,
-472,
-467,
-462,
-452,
-447,
-442,
-437,
-433,
-423,
-418,
-414,
-409,
-405,
-396,
-392,
-387,
-383,
-379,
-371,
-367,
-363,
-359,
-351,
-347,
-344,
-340,
-336,
-329,
-326,
-322,
-319,
-315,
-309,
-305,
-302,
-299,
-296,
-289,
-286,
-283,
-280,
-273,
-270,
-267,
-264,
-261,
-254,
-251,
-248,
-245,
-242,
-236,
-233,
-230,
-226,
-223,
-217,
-214,
-211,
-208,
-206,
-200,
-197,
-194,
-191,
-184,
-181,
-178,
-175,
-172,
-166,
-163,
-160,
-157,
-154,
-148,
-145,
-142,
-139,
-137,
-131,
-129,
-126,
-124,
-119,
-116,
-114,
-111,
-109,
-104,
-102,
-99,
-97,
-95,
-90,
-87,
-85,
-83,
-80,
-76,
-74,
-71,
-69,
-67,
-63,
-61,
-59,
-57,
-52,
-50,
-48,
-46,
-44,
-40,
-38,
-37,
-35,
-33,
-29,
-27,
-25,
-23,
-21,
-18,
-16,
-14,
-13,
-11,
-8,
-6,
-5,
-3
};