music mixer code

Dependencies:   mbed wave_player mbed-rtos SimpleRGB 4DGL-uLCD-SE PinDetect

marimbaHighD.h

Committer:
vamsatoor
Date:
2019-12-09
Revision:
10:5f5e199e1b9c

File content as of revision 10:5f5e199e1b9c:

/**********************************************************************
* Written by WAVToCode
* Date:             Sat Dec 07 06:43:54 PM
* FileName:         marimbaHighD_8k_8bit_unsigned.C
* Interleaved:      N/A
* Signed:           No
* No. of channels:  1
* No. of samples:   4367
* Bits/Sample:      8
**********************************************************************/

#define NUM_ELEMENTS 4367

const unsigned char data_d[NUM_ELEMENTS] = {
126, 127, 126, 127, 126, 127, 126, 127, /* 0-7 */
126, 127, 126, 126, 127, 126, 126, 127, /* 8-15 */
126, 128, 126, 128, 127, 128, 127, 128, /* 16-23 */
127, 128, 126, 128, 127, 128, 126, 127, /* 24-31 */
126, 126, 126, 126, 126, 126, 126, 126, /* 32-39 */
127, 126, 126, 127, 126, 128, 126, 128, /* 40-47 */
127, 128, 126, 128, 126, 128, 126, 128, /* 48-55 */
126, 128, 127, 128, 126, 126, 127, 126, /* 56-63 */
128, 127, 128, 126, 128, 126, 128, 126, /* 64-71 */
128, 126, 128, 126, 128, 126, 128, 126, /* 72-79 */
128, 126, 127, 127, 127, 127, 127, 128, /* 80-87 */
126, 128, 128, 133, 126, 126, 146, 150, /* 88-95 */
105,  85, 103, 124, 140, 144, 143, 140, /* 96-103 */
131, 119, 112, 105,  98, 111, 132, 147, /* 104-111 */
158, 171, 153, 127, 131,  97, 156, 122, /* 112-119 */
 17,  93, 138, 150, 200, 189, 136, 134, /* 120-127 */
 97,  62,  69,  72, 125, 181, 188, 180, /* 128-135 */
162, 118, 100, 104,  95, 122, 148, 134, /* 136-143 */
127, 119,  92, 105, 135, 148, 182, 179, /* 144-151 */
153, 133,  67,  15,  53, 104, 130, 194, /* 152-159 */
236, 219, 187, 124,  40,  14,  17,  54, /* 160-167 */
150, 214, 231, 240, 171,  82,  59,  29, /* 168-175 */
 37, 108, 166, 195, 223, 180, 115,  92, /* 176-183 */
 63,  63, 112, 140, 165, 184, 145, 113, /* 184-191 */
103,  79, 100, 163, 185, 192, 187, 124, /* 192-199 */
 56,  31,   8,  50, 142, 210,   6,  14, /* 200-207 */
205, 123,  52, 234, 243,  57, 128, 207, /* 208-215 */
  5, 237, 183, 123,  49,  29,  55,  97, /* 216-223 */
157, 194, 179, 156, 118,  55,  63,  98, /* 224-231 */
126, 173, 202, 177, 139,  99,  45,  53, /* 232-239 */
 90, 128, 189, 216, 188, 157, 101,  41, /* 240-247 */
 51,  86, 131, 207, 232, 200, 165,  95, /* 248-255 */
 17,   8,  37,  96, 190, 244, 249, 228, /* 256-263 */
154,  69,  35,  18,  37, 110, 160, 185, /* 264-271 */
206, 177, 127, 117, 110, 117, 154, 158, /* 272-279 */
144, 123,  75,  46,  59,  81, 142, 219, /* 280-287 */
243, 235, 196, 107,  26, 251, 255,  52, /* 288-295 */
138, 200, 235, 228, 171, 106,  57,  28, /* 296-303 */
 56, 118, 157, 196, 198, 143,  96,  66, /* 304-311 */
 43,  73, 133, 176, 213, 220, 172, 121, /* 312-319 */
 77,  42,  62, 101, 132, 174, 180, 142, /* 320-327 */
119,  98,  79, 110, 151, 170, 187, 171, /* 328-335 */
110,  59,  22,  14,  68, 138, 207,  10, /* 336-343 */
  7, 206, 144,  59, 255,  13,  51, 105, /* 344-351 */
187, 232, 224, 196, 152, 108,  95,  95, /* 352-359 */
112, 142, 142, 132, 121,  86,  77, 107, /* 360-367 */
136, 172, 210, 201, 158, 114,  52,  25, /* 368-375 */
 43,  73, 131, 191, 210, 200, 168, 110, /* 376-383 */
 76,  71,  83, 125, 177, 184, 177, 156, /* 384-391 */
102,  69,  73,  92, 135, 185, 204, 201, /* 392-399 */
166, 111,  76,  61,  59,  96, 138, 154, /* 400-407 */
163, 153, 117,  98,  98, 104, 131, 160, /* 408-415 */
160, 145, 108,  62,  44,  53,  89, 161, /* 416-423 */
215, 230, 227, 181, 103,  49,  24,  25, /* 424-431 */
 78, 143, 192, 225, 215, 170, 127,  85, /* 432-439 */
 67,  89, 111, 130, 153, 144, 115,  99, /* 440-447 */
 84,  91, 132, 164, 179, 184, 152, 102, /* 448-455 */
 67,  45,  56, 101, 149, 191, 213, 189, /* 456-463 */
146, 107,  69,  67, 104, 146, 184, 204, /* 464-471 */
182, 139,  93,  55,  53,  88, 140, 191, /* 472-479 */
223, 214, 174, 117,  58,  33,  43,  71, /* 480-487 */
119, 166, 183, 176, 153, 118,  96,  98, /* 488-495 */
109, 129, 140, 130, 115,  91,  71,  82, /* 496-503 */
119, 159, 203, 226, 206, 162, 102,  44, /* 504-511 */
 24,  44,  91, 158, 210, 229, 216, 168, /* 512-519 */
109,  73,  56,  70, 111, 145, 163, 163, /* 520-527 */
140, 104,  84,  82, 101, 135, 165, 177, /* 528-535 */
167, 132,  93,  71,  64,  83, 125, 159, /* 536-543 */
179, 182, 154, 123, 106,  99, 116, 149, /* 544-551 */
170, 175, 160, 122,  80,  59,  64, 100, /* 552-559 */
156, 200, 226, 219, 170, 104,  51,  16, /* 560-567 */
 18,  58, 111, 163, 198, 195, 170, 138, /* 568-575 */
101,  84,  89, 101, 116, 123, 116, 108, /* 576-583 */
106, 109, 133, 166, 189, 200, 188, 145, /* 584-591 */
 97,  59,  41,  61, 104, 152, 197, 214, /* 592-599 */
192, 153, 106,  65,  60,  78, 110, 149, /* 600-607 */
168, 157, 134,  98,  67,  69,  91, 126, /* 608-615 */
167, 187, 182, 159, 119,  82,  71,  77, /* 616-623 */
101, 141, 165, 173, 169, 152, 135, 133, /* 624-631 */
136, 149, 161, 155, 134, 110,  79,  66, /* 632-639 */
 85, 122, 170, 214, 224, 205, 158,  92, /* 640-647 */
 39,  18,  28,  73, 136, 184, 210, 207, /* 648-655 */
170, 129,  94,  75,  83, 108, 127, 142, /* 656-663 */
146, 132, 120, 115, 122, 144, 167, 176, /* 664-671 */
173, 151, 114,  84,  73,  80, 110, 145, /* 672-679 */
170, 180, 164, 130, 101,  81,  80, 105, /* 680-687 */
136, 157, 166, 150, 114,  79,  57,  58, /* 688-695 */
 91, 137, 178, 206, 201, 166, 123,  78, /* 696-703 */
 53,  59,  84, 122, 160, 179, 178, 166, /* 704-711 */
145, 127, 122, 122, 124, 125, 114,  99, /* 712-719 */
 90,  85,  99, 132, 163, 186, 193, 171, /* 720-727 */
129,  84,  45,  36,  57,  97, 147, 187, /* 728-735 */
199, 188, 157, 114,  86,  79,  90, 118, /* 736-743 */
148, 161, 160, 144, 120, 106, 106, 119, /* 744-751 */
140, 161, 166, 158, 136, 108,  91,  88, /* 752-759 */
 98, 119, 139, 146, 144, 130, 114, 107, /* 760-767 */
111, 125, 144, 154, 147, 128,  99,  71, /* 768-775 */
 65,  80, 114, 161, 197, 210, 198, 160, /* 776-783 */
109,  68,  49,  56,  89, 132, 169, 192, /* 784-791 */
190, 169, 142, 116, 102, 103, 108, 115, /* 792-799 */
118, 114, 110, 111, 118, 134, 155, 168, /* 800-807 */
168, 152, 121,  88,  67,  64,  86, 120, /* 808-815 */
156, 180, 185, 165, 136, 106,  87,  90, /* 816-823 */
112, 138, 160, 167, 153, 128, 103,  88, /* 824-831 */
 93, 115, 143, 170, 181, 171, 145, 113, /* 832-839 */
 86,  76,  84, 102, 127, 146, 151, 147, /* 840-847 */
138, 127, 125, 129, 133, 134, 126, 109, /* 848-855 */
 92,  81,  83, 107, 142, 177, 201, 201, /* 856-863 */
174, 132,  87,  54,  48,  70, 108, 154, /* 864-871 */
188, 198, 184, 154, 119,  95,  87,  94, /* 872-879 */
111, 126, 132, 131, 123, 113, 113, 122, /* 880-887 */
137, 151, 156, 146, 129, 106,  88,  86, /* 888-895 */
 98, 122, 147, 163, 164, 152, 130, 111, /* 896-903 */
106, 114, 132, 154, 164, 157, 137, 109, /* 904-911 */
 86,  80,  94, 126, 162, 188, 194, 178, /* 912-919 */
142, 101,  71,  59,  70,  99, 132, 159, /* 920-927 */
172, 167, 153, 135, 122, 116, 118, 119, /* 928-935 */
117, 112, 105, 102, 109, 127, 153, 176, /* 936-943 */
188, 181, 156, 119,  84,  64,  66,  90, /* 944-951 */
127, 162, 185, 186, 165, 134, 105,  86, /* 952-959 */
 87, 103, 124, 142, 147, 137, 120, 104, /* 960-967 */
 96, 104, 122, 141, 156, 158, 144, 125, /* 968-975 */
103,  90,  94, 107, 125, 142, 149, 145, /* 976-983 */
136, 127, 123, 128, 138, 145, 147, 134, /* 984-991 */
113,  92,  78,  82, 103, 136, 169, 189, /* 992-999 */
187, 162, 125,  84,  56,  53,  70, 104, /* 1000-1007 */
142, 169, 177, 170, 148, 125, 109, 103, /* 1008-1015 */
106, 114, 120, 123, 121, 118, 120, 130, /* 1016-1023 */
144, 159, 167, 161, 143, 118,  95,  82, /* 1024-1031 */
 86, 105, 131, 155, 166, 162, 145, 120, /* 1032-1039 */
101,  96, 104, 122, 141, 150, 146, 130, /* 1040-1047 */
108,  93,  90, 103, 128, 155, 173, 175, /* 1048-1055 */
160, 134, 108,  90,  85,  97, 118, 139, /* 1056-1063 */
153, 156, 152, 144, 136, 133, 133, 133, /* 1064-1071 */
128, 119, 104,  93,  90, 101, 124, 152, /* 1072-1079 */
175, 184, 173, 146, 110,  78,  61,  66, /* 1080-1087 */
 92, 126, 158, 178, 178, 161, 137, 114, /* 1088-1095 */
101, 101, 110, 125, 135, 137, 132, 124, /* 1096-1103 */
119, 122, 132, 143, 153, 154, 144, 127, /* 1104-1111 */
109,  98,  98, 109, 125, 141, 149, 146, /* 1112-1119 */
135, 121, 112, 113, 123, 136, 146, 146, /* 1120-1127 */
134, 114,  96,  85,  89, 111, 140, 167, /* 1128-1135 */
182, 177, 156, 125,  94,  75,  75,  91, /* 1136-1143 */
117, 143, 161, 166, 159, 145, 131, 122, /* 1144-1151 */
118, 117, 117, 114, 109, 106, 108, 116, /* 1152-1159 */
133, 152, 166, 168, 156, 133, 105,  83, /* 1160-1167 */
 76,  85, 108, 137, 160, 169, 163, 145, /* 1168-1175 */
124, 106, 100, 108, 123, 138, 146, 143, /* 1176-1183 */
131, 117, 107, 107, 118, 135, 151, 160, /* 1184-1191 */
156, 142, 123, 106,  98, 101, 112, 127, /* 1192-1199 */
138, 143, 141, 135, 131, 129, 133, 137, /* 1200-1207 */
139, 133, 121, 105,  94,  92, 103, 125, /* 1208-1215 */
153, 174, 181, 171, 145, 114,  86,  73, /* 1216-1223 */
 77,  98, 127, 153, 168, 169, 157, 138, /* 1224-1231 */
120, 110, 108, 112, 118, 122, 122, 119, /* 1232-1239 */
118, 121, 129, 140, 149, 152, 145, 129, /* 1240-1247 */
112,  97,  92,  99, 115, 133, 147, 152, /* 1248-1255 */
145, 132, 117, 109, 110, 120, 133, 143, /* 1256-1263 */
145, 135, 119, 103,  95,  99, 115, 137, /* 1264-1271 */
157, 166, 161, 145, 121, 100,  89,  90, /* 1272-1279 */
101, 119, 136, 146, 148, 144, 137, 132, /* 1280-1287 */
129, 127, 125, 120, 113, 105, 100, 103, /* 1288-1295 */
116, 136, 157, 170, 171, 157, 133, 106, /* 1296-1303 */
 86,  79,  90, 112, 138, 159, 167, 161, /* 1304-1311 */
146, 126, 111, 105, 108, 118, 128, 134, /* 1312-1319 */
132, 127, 119, 116, 120, 129, 139, 146, /* 1320-1327 */
146, 139, 126, 114, 107, 108, 116, 128, /* 1328-1335 */
138, 142, 139, 132, 125, 122, 126, 134, /* 1336-1343 */
141, 144, 139, 127, 110,  98,  95, 105, /* 1344-1351 */
125, 149, 167, 173, 163, 143, 116,  94, /* 1352-1359 */
 83,  87, 104, 125, 145, 157, 158, 150, /* 1360-1367 */
139, 127, 121, 118, 118, 118, 117, 114, /* 1368-1375 */
114, 117, 126, 139, 151, 158, 156, 144, /* 1376-1383 */
125, 105,  93,  93, 104, 122, 141, 154, /* 1384-1391 */
157, 148, 132, 118, 109, 109, 118, 130, /* 1392-1399 */
138, 140, 134, 123, 112, 107, 110, 122, /* 1400-1407 */
137, 149, 153, 148, 135, 120, 108, 103, /* 1408-1415 */
107, 116, 127, 135, 138, 138, 135, 133, /* 1416-1423 */
133, 135, 136, 134, 126, 114, 103,  98, /* 1424-1431 */
102, 116, 135, 155, 167, 167, 153, 130, /* 1432-1439 */
106,  89,  84,  93, 112, 135, 152, 160, /* 1440-1447 */
156, 144, 130, 119, 113, 115, 119, 124, /* 1448-1455 */
126, 126, 123, 123, 126, 133, 141, 146, /* 1456-1463 */
145, 139, 127, 115, 107, 106, 112, 125, /* 1464-1471 */
136, 143, 143, 135, 126, 118, 116, 120, /* 1472-1479 */
129, 138, 141, 137, 126, 113, 103, 101, /* 1480-1487 */
110, 126, 144, 157, 160, 152, 135, 117, /* 1488-1495 */
102,  96, 100, 111, 125, 137, 144, 145, /* 1496-1503 */
141, 136, 131, 128, 125, 122, 117, 111, /* 1504-1511 */
106, 106, 113, 125, 140, 154, 159, 154, /* 1512-1519 */
139, 120, 101,  91,  91, 104, 122, 140, /* 1520-1527 */
152, 154, 146, 134, 120, 113, 112, 117, /* 1528-1535 */
125, 130, 132, 128, 122, 117, 117, 121, /* 1536-1543 */
129, 138, 142, 141, 133, 123, 114, 110, /* 1544-1551 */
111, 118, 125, 131, 133, 131, 128, 126, /* 1552-1559 */
126, 130, 135, 137, 135, 127, 116, 105, /* 1560-1567 */
100, 105, 117, 135, 151, 161, 160, 148, /* 1568-1575 */
129, 110,  96,  93, 101, 115, 132, 145, /* 1576-1583 */
151, 150, 143, 134, 126, 122, 120, 119, /* 1584-1591 */
119, 117, 117, 118, 122, 131, 140, 147, /* 1592-1599 */
150, 145, 134, 121, 109, 103, 106, 117, /* 1600-1607 */
130, 142, 148, 146, 139, 128, 120, 118, /* 1608-1615 */
121, 128, 135, 139, 135, 128, 119, 113, /* 1616-1623 */
113, 120, 130, 142, 149, 149, 143, 130, /* 1624-1631 */
119, 111, 108, 112, 120, 128, 134, 137, /* 1632-1639 */
137, 136, 135, 135, 134, 132, 127, 120, /* 1640-1647 */
111, 106, 106, 114, 127, 142, 154, 159, /* 1648-1655 */
154, 139, 121, 105,  95,  96, 107, 123, /* 1656-1663 */
138, 148, 151, 145, 136, 126, 118, 116, /* 1664-1671 */
118, 121, 124, 125, 124, 123, 123, 126, /* 1672-1679 */
132, 137, 140, 139, 133, 125, 116, 112, /* 1680-1687 */
113, 118, 126, 133, 136, 135, 130, 125, /* 1688-1695 */
122, 124, 128, 134, 137, 136, 129, 120, /* 1696-1703 */
112, 107, 110, 120, 134, 147, 154, 152, /* 1704-1711 */
142, 128, 114, 104, 102, 108, 118, 130, /* 1712-1719 */
139, 142, 142, 139, 135, 130, 127, 124, /* 1720-1727 */
120, 116, 113, 112, 115, 121, 132, 142, /* 1728-1735 */
150, 151, 143, 131, 116, 105, 101, 106, /* 1736-1743 */
116, 129, 141, 146, 144, 138, 128, 120, /* 1744-1751 */
118, 118, 123, 128, 130, 129, 124, 120, /* 1752-1759 */
117, 119, 124, 131, 138, 140, 138, 131, /* 1760-1767 */
123, 116, 114, 115, 119, 125, 129, 131, /* 1768-1775 */
130, 129, 130, 131, 134, 135, 133, 129, /* 1776-1783 */
121, 113, 107, 107, 114, 125, 139, 150, /* 1784-1791 */
153, 149, 136, 120, 107, 100, 100, 108, /* 1792-1799 */
121, 133, 142, 145, 141, 135, 129, 123, /* 1800-1807 */
120, 119, 120, 119, 119, 119, 122, 126, /* 1808-1815 */
132, 138, 142, 142, 137, 129, 119, 112, /* 1816-1823 */
110, 115, 122, 131, 137, 139, 137, 131, /* 1824-1831 */
125, 120, 121, 125, 131, 134, 133, 128, /* 1832-1839 */
121, 115, 112, 115, 123, 133, 141, 146, /* 1840-1847 */
143, 136, 126, 117, 111, 111, 116, 122, /* 1848-1855 */
130, 135, 137, 138, 137, 136, 135, 132, /* 1856-1863 */
129, 124, 118, 113, 111, 115, 123, 134, /* 1864-1871 */
144, 151, 151, 143, 131, 117, 107, 103, /* 1872-1879 */
107, 118, 130, 140, 145, 145, 138, 131, /* 1880-1887 */
125, 122, 122, 124, 126, 127, 126, 125, /* 1888-1895 */
124, 125, 129, 133, 137, 139, 137, 132, /* 1896-1903 */
126, 120, 118, 118, 122, 127, 131, 132, /* 1904-1911 */
131, 129, 126, 126, 128, 131, 134, 134, /* 1912-1919 */
130, 122, 115, 111, 110, 117, 126, 138, /* 1920-1927 */
146, 149, 145, 134, 123, 112, 107, 108, /* 1928-1935 */
115, 124, 132, 139, 140, 140, 136, 132, /* 1936-1943 */
128, 126, 122, 120, 117, 115, 115, 119, /* 1944-1951 */
126, 134, 141, 144, 142, 134, 125, 115, /* 1952-1959 */
109, 109, 114, 122, 132, 138, 140, 136, /* 1960-1967 */
130, 125, 122, 121, 124, 128, 130, 129, /* 1968-1975 */
127, 123, 119, 119, 121, 127, 134, 138, /* 1976-1983 */
139, 135, 129, 123, 118, 116, 118, 121, /* 1984-1991 */
125, 128, 130, 130, 131, 132, 133, 133, /* 1992-1999 */
133, 130, 125, 118, 113, 111, 114, 122, /* 2000-2007 */
133, 143, 148, 148, 141, 130, 118, 108, /* 2008-2015 */
106, 110, 118, 128, 136, 141, 141, 137, /* 2016-2023 */
131, 126, 123, 121, 121, 121, 121, 120, /* 2024-2031 */
121, 123, 126, 131, 135, 137, 136, 132, /* 2032-2039 */
126, 119, 116, 115, 118, 125, 130, 133, /* 2040-2047 */
133, 130, 127, 124, 124, 126, 130, 132, /* 2048-2055 */
133, 129, 124, 118, 114, 115, 120, 127, /* 2056-2063 */
135, 142, 143, 139, 131, 123, 116, 113, /* 2064-2071 */
113, 118, 124, 129, 133, 135, 135, 134, /* 2072-2079 */
133, 131, 129, 125, 120, 117, 113, 115, /* 2080-2087 */
119, 127, 136, 142, 145, 142, 136, 125, /* 2088-2095 */
116, 110, 110, 115, 124, 132, 138, 140, /* 2096-2103 */
138, 133, 127, 124, 124, 124, 126, 127, /* 2104-2111 */
127, 125, 124, 123, 124, 128, 132, 135, /* 2112-2119 */
135, 134, 130, 125, 122, 120, 121, 123, /* 2120-2127 */
126, 129, 130, 129, 128, 129, 130, 132, /* 2128-2135 */
134, 134, 131, 126, 120, 116, 114, 117, /* 2136-2143 */
123, 133, 141, 145, 144, 138, 129, 120, /* 2144-2151 */
113, 111, 114, 119, 127, 134, 137, 138, /* 2152-2159 */
137, 133, 130, 128, 125, 123, 121, 120, /* 2160-2167 */
119, 120, 124, 130, 136, 140, 141, 137, /* 2168-2175 */
132, 124, 119, 116, 117, 121, 128, 133, /* 2176-2183 */
136, 136, 133, 129, 126, 125, 125, 127, /* 2184-2191 */
130, 129, 128, 124, 121, 119, 120, 124, /* 2192-2199 */
129, 134, 137, 136, 133, 128, 123, 118, /* 2200-2207 */
118, 118, 122, 125, 128, 129, 131, 132, /* 2208-2215 */
132, 133, 133, 130, 126, 121, 117, 114, /* 2216-2223 */
115, 119, 127, 135, 141, 143, 140, 133, /* 2224-2231 */
124, 115, 111, 111, 115, 122, 129, 135, /* 2232-2239 */
136, 135, 132, 128, 125, 123, 123, 123, /* 2240-2247 */
123, 122, 122, 122, 125, 128, 132, 134, /* 2248-2255 */
135, 134, 130, 126, 121, 119, 120, 122, /* 2256-2263 */
126, 129, 130, 130, 128, 126, 125, 127, /* 2264-2271 */
129, 131, 131, 129, 125, 120, 117, 116, /* 2272-2279 */
119, 123, 131, 136, 139, 139, 134, 127, /* 2280-2287 */
120, 116, 115, 117, 121, 125, 130, 133, /* 2288-2295 */
134, 134, 133, 131, 129, 126, 123, 119, /* 2296-2303 */
117, 116, 119, 123, 129, 136, 140, 140, /* 2304-2311 */
136, 129, 121, 116, 114, 115, 120, 126, /* 2312-2319 */
131, 134, 135, 132, 129, 126, 125, 125, /* 2320-2327 */
126, 127, 127, 126, 124, 123, 123, 125, /* 2328-2335 */
128, 132, 134, 134, 132, 129, 125, 123, /* 2336-2343 */
121, 122, 124, 126, 128, 128, 129, 129, /* 2344-2351 */
130, 131, 133, 132, 131, 128, 123, 119, /* 2352-2359 */
117, 117, 122, 128, 135, 140, 141, 139, /* 2360-2367 */
133, 126, 119, 116, 115, 119, 125, 129, /* 2368-2375 */
134, 135, 135, 134, 132, 129, 127, 124, /* 2376-2383 */
123, 122, 121, 121, 123, 127, 130, 134, /* 2384-2391 */
137, 136, 133, 128, 123, 120, 119, 120, /* 2392-2399 */
124, 128, 131, 133, 132, 130, 128, 127, /* 2400-2407 */
127, 129, 130, 131, 129, 127, 123, 121, /* 2408-2415 */
121, 123, 127, 131, 135, 137, 135, 132, /* 2416-2423 */
127, 123, 120, 120, 121, 123, 127, 129, /* 2424-2431 */
130, 132, 133, 133, 133, 131, 128, 124, /* 2432-2439 */
120, 118, 117, 119, 124, 131, 136, 140, /* 2440-2447 */
140, 136, 129, 122, 117, 115, 117, 121, /* 2448-2455 */
126, 131, 133, 135, 132, 131, 128, 126, /* 2456-2463 */
125, 125, 125, 123, 123, 123, 123, 125, /* 2464-2471 */
128, 130, 132, 132, 131, 128, 125, 122, /* 2472-2479 */
122, 121, 124, 125, 127, 128, 127, 127, /* 2480-2487 */
126, 127, 129, 130, 131, 129, 127, 123, /* 2488-2495 */
119, 117, 118, 122, 127, 132, 136, 137, /* 2496-2503 */
135, 130, 124, 119, 117, 117, 119, 123, /* 2504-2511 */
127, 130, 133, 133, 132, 131, 130, 127, /* 2512-2519 */
124, 122, 120, 118, 120, 123, 127, 132, /* 2520-2527 */
135, 137, 136, 132, 127, 121, 118, 118, /* 2528-2535 */
120, 124, 128, 131, 132, 131, 130, 127, /* 2536-2543 */
126, 125, 126, 127, 127, 126, 125, 123, /* 2544-2551 */
122, 123, 125, 128, 131, 132, 132, 131, /* 2552-2559 */
128, 125, 123, 121, 122, 123, 125, 127, /* 2560-2567 */
127, 129, 130, 131, 132, 131, 131, 128, /* 2568-2575 */
125, 122, 118, 118, 120, 124, 131, 135, /* 2576-2583 */
139, 137, 134, 129, 123, 119, 118, 118, /* 2584-2591 */
122, 126, 131, 132, 134, 132, 131, 129, /* 2592-2599 */
128, 126, 125, 123, 122, 122, 123, 125, /* 2600-2607 */
128, 130, 133, 134, 133, 131, 127, 124, /* 2608-2615 */
122, 122, 123, 126, 128, 130, 130, 130, /* 2616-2623 */
128, 127, 127, 128, 130, 130, 130, 127, /* 2624-2631 */
124, 122, 121, 122, 125, 128, 132, 135, /* 2632-2639 */
135, 133, 130, 126, 123, 121, 121, 123, /* 2640-2647 */
125, 128, 130, 131, 133, 133, 133, 131, /* 2648-2655 */
130, 127, 123, 121, 120, 120, 123, 128, /* 2656-2663 */
132, 136, 137, 136, 132, 126, 122, 119, /* 2664-2671 */
118, 121, 125, 129, 132, 132, 132, 131, /* 2672-2679 */
129, 128, 126, 126, 126, 126, 125, 125, /* 2680-2687 */
125, 125, 126, 129, 131, 132, 132, 131, /* 2688-2695 */
128, 126, 125, 123, 124, 124, 126, 126, /* 2696-2703 */
127, 127, 127, 127, 129, 130, 130, 130, /* 2704-2711 */
128, 126, 122, 119, 120, 121, 125, 129, /* 2712-2719 */
134, 136, 135, 132, 128, 123, 120, 119, /* 2720-2727 */
119, 122, 125, 128, 131, 132, 132, 131, /* 2728-2735 */
130, 128, 126, 124, 122, 121, 121, 121, /* 2736-2743 */
124, 128, 131, 133, 133, 132, 128, 124, /* 2744-2751 */
121, 120, 120, 123, 126, 128, 130, 129, /* 2752-2759 */
129, 128, 127, 127, 127, 128, 127, 127, /* 2760-2767 */
126, 125, 123, 122, 124, 126, 128, 131, /* 2768-2775 */
132, 132, 129, 127, 124, 123, 122, 123, /* 2776-2783 */
123, 125, 126, 127, 129, 130, 130, 130, /* 2784-2791 */
130, 128, 126, 123, 121, 120, 120, 123, /* 2792-2799 */
127, 131, 135, 136, 134, 130, 126, 122, /* 2800-2807 */
119, 119, 121, 125, 128, 130, 132, 132, /* 2808-2815 */
131, 129, 128, 126, 126, 125, 124, 123, /* 2816-2823 */
123, 124, 125, 128, 130, 132, 132, 131, /* 2824-2831 */
128, 127, 124, 123, 123, 124, 127, 127, /* 2832-2839 */
129, 128, 128, 127, 128, 128, 129, 130, /* 2840-2847 */
130, 128, 126, 123, 122, 122, 124, 127, /* 2848-2855 */
130, 132, 134, 133, 131, 127, 124, 122, /* 2856-2863 */
122, 122, 124, 125, 128, 130, 131, 132, /* 2864-2871 */
132, 131, 130, 127, 126, 123, 121, 121, /* 2872-2879 */
123, 125, 129, 133, 135, 135, 133, 129, /* 2880-2887 */
125, 122, 121, 122, 123, 127, 129, 131, /* 2888-2895 */
131, 131, 129, 128, 128, 128, 128, 127, /* 2896-2903 */
126, 126, 125, 125, 125, 126, 129, 131, /* 2904-2911 */
131, 131, 130, 128, 126, 125, 124, 124, /* 2912-2919 */
126, 126, 127, 127, 128, 128, 130, 131, /* 2920-2927 */
131, 131, 130, 127, 125, 122, 121, 121, /* 2928-2935 */
124, 128, 131, 134, 135, 133, 130, 126, /* 2936-2943 */
123, 122, 121, 122, 125, 127, 129, 131, /* 2944-2951 */
131, 131, 130, 129, 127, 126, 125, 124, /* 2952-2959 */
122, 122, 124, 126, 129, 132, 132, 132, /* 2960-2967 */
131, 128, 125, 123, 122, 123, 124, 127, /* 2968-2975 */
128, 129, 128, 128, 127, 127, 127, 128, /* 2976-2983 */
128, 127, 127, 125, 123, 123, 123, 124, /* 2984-2991 */
127, 129, 131, 131, 131, 129, 126, 124, /* 2992-2999 */
123, 123, 123, 124, 125, 127, 128, 129, /* 3000-3007 */
130, 130, 130, 129, 127, 125, 122, 121, /* 3008-3015 */
121, 122, 125, 128, 132, 133, 133, 131, /* 3016-3023 */
128, 125, 122, 121, 121, 122, 125, 128, /* 3024-3031 */
129, 129, 129, 129, 128, 126, 126, 125, /* 3032-3039 */
125, 125, 124, 124, 125, 126, 128, 129, /* 3040-3047 */
130, 131, 129, 128, 126, 125, 124, 124, /* 3048-3055 */
126, 126, 126, 127, 127, 127, 127, 128, /* 3056-3063 */
129, 129, 129, 128, 126, 125, 123, 122, /* 3064-3071 */
122, 125, 127, 130, 132, 132, 132, 129, /* 3072-3079 */
126, 124, 123, 122, 123, 125, 127, 128, /* 3080-3087 */
130, 131, 131, 130, 130, 129, 126, 125, /* 3088-3095 */
123, 122, 122, 125, 127, 129, 132, 133, /* 3096-3103 */
132, 130, 128, 125, 123, 122, 123, 125, /* 3104-3111 */
127, 129, 129, 129, 129, 128, 128, 128, /* 3112-3119 */
128, 128, 127, 126, 126, 125, 125, 126, /* 3120-3127 */
128, 129, 131, 131, 131, 129, 128, 127, /* 3128-3135 */
126, 126, 125, 126, 126, 127, 127, 128, /* 3136-3143 */
129, 129, 130, 130, 130, 128, 126, 124, /* 3144-3151 */
122, 122, 124, 126, 129, 132, 133, 133, /* 3152-3159 */
132, 129, 126, 123, 122, 123, 125, 126, /* 3160-3167 */
128, 129, 131, 131, 130, 130, 129, 128, /* 3168-3175 */
126, 125, 124, 124, 125, 126, 128, 129, /* 3176-3183 */
130, 131, 131, 129, 127, 125, 125, 124, /* 3184-3191 */
125, 126, 127, 128, 128, 128, 128, 128, /* 3192-3199 */
128, 128, 129, 129, 127, 126, 125, 125, /* 3200-3207 */
124, 125, 126, 128, 130, 131, 131, 130, /* 3208-3215 */
128, 126, 124, 123, 123, 124, 125, 127, /* 3216-3223 */
127, 128, 129, 129, 130, 129, 129, 126, /* 3224-3231 */
125, 122, 122, 122, 124, 126, 129, 132, /* 3232-3239 */
132, 132, 129, 126, 125, 123, 122, 123, /* 3240-3247 */
125, 126, 128, 129, 129, 129, 128, 128, /* 3248-3255 */
127, 126, 126, 125, 125, 125, 125, 125, /* 3256-3263 */
126, 128, 128, 129, 129, 128, 127, 126, /* 3264-3271 */
125, 124, 124, 125, 126, 126, 127, 127, /* 3272-3279 */
127, 128, 128, 129, 129, 129, 127, 126, /* 3280-3287 */
123, 122, 122, 124, 125, 128, 131, 131, /* 3288-3295 */
131, 129, 127, 125, 123, 123, 123, 124, /* 3296-3303 */
125, 127, 128, 129, 129, 129, 129, 129, /* 3304-3311 */
127, 126, 125, 124, 124, 124, 126, 128, /* 3312-3319 */
129, 131, 131, 130, 128, 126, 125, 124, /* 3320-3327 */
124, 125, 126, 127, 128, 129, 128, 128, /* 3328-3335 */
128, 128, 128, 128, 128, 127, 126, 125, /* 3336-3343 */
125, 125, 126, 127, 128, 129, 130, 129, /* 3344-3351 */
129, 128, 126, 126, 125, 125, 125, 126, /* 3352-3359 */
127, 128, 128, 129, 130, 130, 130, 129, /* 3360-3367 */
127, 126, 124, 124, 124, 125, 128, 130, /* 3368-3375 */
132, 132, 132, 129, 127, 125, 124, 124, /* 3376-3383 */
125, 125, 128, 128, 129, 129, 129, 129, /* 3384-3391 */
129, 128, 128, 126, 125, 125, 125, 126, /* 3392-3399 */
126, 128, 129, 130, 131, 129, 128, 127, /* 3400-3407 */
126, 126, 126, 126, 127, 127, 128, 128, /* 3408-3415 */
128, 128, 128, 128, 129, 129, 129, 127, /* 3416-3423 */
126, 125, 125, 125, 125, 127, 129, 131, /* 3424-3431 */
131, 130, 129, 127, 126, 125, 125, 125, /* 3432-3439 */
125, 126, 127, 128, 129, 129, 130, 130, /* 3440-3447 */
129, 127, 126, 125, 124, 124, 124, 126, /* 3448-3455 */
128, 129, 131, 131, 129, 128, 126, 125, /* 3456-3463 */
124, 124, 125, 126, 127, 128, 128, 128, /* 3464-3471 */
128, 128, 128, 128, 126, 126, 126, 125, /* 3472-3479 */
125, 125, 126, 126, 128, 129, 129, 129, /* 3480-3487 */
128, 128, 126, 126, 126, 126, 126, 126, /* 3488-3495 */
126, 127, 127, 128, 128, 129, 129, 129, /* 3496-3503 */
127, 126, 125, 123, 123, 124, 125, 127, /* 3504-3511 */
129, 130, 130, 130, 128, 126, 125, 123, /* 3512-3519 */
123, 124, 125, 126, 128, 128, 129, 129, /* 3520-3527 */
129, 129, 128, 126, 125, 125, 124, 124, /* 3528-3535 */
125, 126, 128, 129, 129, 129, 128, 127, /* 3536-3543 */
125, 125, 125, 125, 125, 126, 126, 128, /* 3544-3551 */
128, 128, 127, 128, 128, 128, 128, 127, /* 3552-3559 */
126, 126, 125, 125, 125, 126, 128, 128, /* 3560-3567 */
129, 129, 129, 128, 127, 126, 126, 125, /* 3568-3575 */
125, 125, 126, 127, 128, 128, 129, 129, /* 3576-3583 */
129, 129, 127, 126, 125, 124, 124, 125, /* 3584-3591 */
126, 128, 129, 131, 130, 129, 128, 126, /* 3592-3599 */
125, 125, 125, 125, 126, 128, 128, 129, /* 3600-3607 */
129, 129, 129, 128, 128, 128, 126, 126, /* 3608-3615 */
125, 125, 126, 126, 128, 129, 129, 129, /* 3616-3623 */
129, 128, 126, 126, 126, 126, 126, 127, /* 3624-3631 */
127, 128, 128, 128, 128, 128, 129, 129, /* 3632-3639 */
129, 129, 127, 126, 125, 125, 125, 127, /* 3640-3647 */
128, 129, 130, 130, 130, 129, 127, 126, /* 3648-3655 */
125, 125, 125, 126, 126, 128, 128, 129, /* 3656-3663 */
129, 129, 129, 128, 127, 126, 125, 125, /* 3664-3671 */
125, 125, 128, 129, 130, 130, 130, 129, /* 3672-3679 */
128, 126, 125, 125, 125, 126, 126, 128, /* 3680-3687 */
128, 128, 128, 128, 128, 128, 128, 128, /* 3688-3695 */
126, 126, 126, 125, 126, 126, 127, 128, /* 3696-3703 */
128, 129, 129, 128, 128, 126, 126, 126, /* 3704-3711 */
126, 126, 126, 126, 127, 127, 128, 128, /* 3712-3719 */
129, 129, 129, 127, 126, 125, 124, 124, /* 3720-3727 */
125, 126, 128, 129, 130, 129, 129, 128, /* 3728-3735 */
126, 125, 125, 125, 125, 126, 126, 128, /* 3736-3743 */
128, 128, 128, 128, 128, 126, 126, 125, /* 3744-3751 */
125, 125, 125, 126, 126, 128, 129, 129, /* 3752-3759 */
129, 128, 126, 126, 125, 125, 126, 126, /* 3760-3767 */
126, 126, 127, 127, 127, 127, 128, 128, /* 3768-3775 */
128, 127, 126, 126, 125, 125, 125, 125, /* 3776-3783 */
126, 128, 128, 129, 129, 128, 127, 126, /* 3784-3791 */
126, 125, 125, 125, 125, 126, 127, 128, /* 3792-3799 */
128, 129, 129, 129, 128, 126, 125, 125, /* 3800-3807 */
124, 124, 125, 127, 128, 129, 129, 129, /* 3808-3815 */
128, 126, 126, 125, 125, 125, 126, 126, /* 3816-3823 */
128, 128, 128, 128, 128, 128, 128, 128, /* 3824-3831 */
126, 126, 126, 126, 126, 126, 126, 128, /* 3832-3839 */
128, 129, 128, 128, 128, 126, 126, 126, /* 3840-3847 */
126, 126, 126, 126, 127, 127, 128, 128, /* 3848-3855 */
128, 129, 129, 129, 127, 126, 125, 125, /* 3856-3863 */
125, 125, 127, 128, 129, 129, 129, 129, /* 3864-3871 */
128, 126, 126, 125, 125, 125, 126, 128, /* 3872-3879 */
128, 129, 129, 129, 129, 129, 128, 126, /* 3880-3887 */
126, 125, 125, 126, 126, 128, 129, 129, /* 3888-3895 */
129, 129, 128, 128, 126, 126, 126, 126, /* 3896-3903 */
126, 127, 128, 128, 128, 128, 128, 128, /* 3904-3911 */
128, 128, 128, 127, 126, 126, 126, 126, /* 3912-3919 */
126, 128, 128, 129, 129, 129, 128, 128, /* 3920-3927 */
127, 126, 126, 126, 126, 126, 127, 127, /* 3928-3935 */
128, 128, 129, 129, 129, 128, 127, 126, /* 3936-3943 */
125, 125, 125, 126, 127, 128, 129, 129, /* 3944-3951 */
129, 129, 127, 126, 125, 125, 125, 126, /* 3952-3959 */
126, 128, 128, 128, 129, 129, 128, 128, /* 3960-3967 */
126, 126, 126, 125, 125, 126, 126, 128, /* 3968-3975 */
128, 128, 128, 128, 128, 126, 126, 126, /* 3976-3983 */
126, 126, 126, 126, 126, 127, 127, 127, /* 3984-3991 */
128, 128, 128, 128, 127, 126, 126, 125, /* 3992-3999 */
125, 125, 126, 127, 128, 128, 129, 128, /* 4000-4007 */
128, 127, 126, 126, 125, 125, 125, 126, /* 4008-4015 */
126, 127, 128, 128, 128, 128, 128, 127, /* 4016-4023 */
126, 125, 125, 125, 125, 126, 128, 128, /* 4024-4031 */
129, 129, 128, 128, 126, 125, 125, 125, /* 4032-4039 */
125, 126, 126, 127, 128, 128, 128, 128, /* 4040-4047 */
128, 128, 126, 126, 126, 126, 126, 126, /* 4048-4055 */
126, 126, 128, 128, 128, 128, 128, 128, /* 4056-4063 */
126, 126, 126, 126, 126, 126, 126, 126, /* 4064-4071 */
127, 128, 128, 128, 129, 128, 128, 126, /* 4072-4079 */
126, 125, 125, 125, 126, 128, 128, 129, /* 4080-4087 */
129, 129, 128, 127, 126, 126, 125, 125, /* 4088-4095 */
126, 126, 128, 128, 128, 129, 129, 128, /* 4096-4103 */
128, 127, 126, 126, 125, 125, 126, 127, /* 4104-4111 */
128, 129, 129, 129, 128, 128, 126, 126, /* 4112-4119 */
126, 126, 126, 126, 128, 128, 128, 128, /* 4120-4127 */
128, 128, 128, 128, 128, 128, 126, 126, /* 4128-4135 */
126, 126, 126, 127, 128, 128, 129, 129, /* 4136-4143 */
129, 128, 127, 127, 126, 126, 126, 126, /* 4144-4151 */
126, 127, 128, 128, 129, 129, 129, 129, /* 4152-4159 */
128, 126, 126, 125, 125, 126, 127, 128, /* 4160-4167 */
129, 129, 129, 129, 128, 126, 126, 126, /* 4168-4175 */
126, 126, 126, 128, 128, 128, 128, 128, /* 4176-4183 */
128, 128, 128, 128, 126, 126, 126, 126, /* 4184-4191 */
126, 126, 128, 128, 128, 128, 128, 128, /* 4192-4199 */
126, 126, 126, 126, 126, 126, 126, 126, /* 4200-4207 */
127, 128, 128, 128, 128, 128, 128, 127, /* 4208-4215 */
126, 126, 126, 125, 126, 127, 128, 128, /* 4216-4223 */
128, 129, 128, 128, 126, 126, 126, 125, /* 4224-4231 */
125, 126, 126, 127, 128, 128, 128, 128, /* 4232-4239 */
128, 128, 126, 126, 125, 125, 125, 126, /* 4240-4247 */
126, 128, 128, 129, 128, 128, 127, 126, /* 4248-4255 */
126, 125, 126, 126, 126, 126, 127, 128, /* 4256-4263 */
128, 128, 128, 128, 128, 126, 126, 126, /* 4264-4271 */
126, 126, 126, 126, 127, 128, 128, 128, /* 4272-4279 */
128, 128, 126, 126, 126, 126, 126, 126, /* 4280-4287 */
126, 126, 126, 127, 128, 128, 128, 128, /* 4288-4295 */
128, 127, 126, 125, 125, 125, 125, 127, /* 4296-4303 */
128, 128, 129, 129, 128, 127, 126, 126, /* 4304-4311 */
126, 126, 126, 126, 126, 128, 128, 128, /* 4312-4319 */
128, 128, 128, 128, 126, 126, 126, 125, /* 4320-4327 */
126, 126, 127, 128, 128, 128, 128, 128, /* 4328-4335 */
127, 126, 126, 126, 126, 126, 126, 127, /* 4336-4343 */
127, 128, 128, 128, 128, 128, 128, 128, /* 4344-4351 */
127, 126, 126, 126, 126, 126, 127, 128, /* 4352-4359 */
128, 128, 128, 128, 128, 127, 126}; /* 4360-4366 */


//get and set the frequency from wav conversion tool GUI
int d=0;

//interrupt routine to play next audio sample from array in flash
void audio_sample_marimbaD()
{

    speaker = data_d[d]/255.0;//scale to 0.0 to 1.0 for PWM
    d++;
    if (d>= NUM_ELEMENTS) {
        d = 0;
        sampletick.detach();
        myled = 0;
    }
}