music mixer code
Dependencies: mbed wave_player mbed-rtos SimpleRGB 4DGL-uLCD-SE PinDetect
Diff: marimbaAmin.h
- Revision:
- 10:5f5e199e1b9c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/marimbaAmin.h Mon Dec 09 16:43:04 2019 +0000 @@ -0,0 +1,380 @@ +/********************************************************************** +* Written by WAVToCode +* Date: Sat Dec 07 05:41:37 PM +* FileName: marimbaAmin_8k_8bit_unsigned.C +* Interleaved: N/A +* Signed: No +* No. of channels: 1 +* No. of samples: 2800 +* Bits/Sample: 8 +**********************************************************************/ + +#define NUM_ELEMENTS 2800 + +const unsigned char data_a[NUM_ELEMENTS] = { +127, 127, 127, 127, 127, 127, 127, 127, /* 0-7 */ +127, 127, 127, 127, 127, 127, 127, 127, /* 8-15 */ +127, 127, 127, 127, 127, 127, 127, 127, /* 16-23 */ +128, 127, 128, 127, 128, 127, 128, 127, /* 24-31 */ +127, 127, 127, 127, 127, 127, 127, 127, /* 32-39 */ +127, 127, 127, 128, 127, 128, 127, 128, /* 40-47 */ +127, 128, 127, 128, 127, 128, 127, 127, /* 48-55 */ +127, 127, 127, 127, 127, 127, 127, 127, /* 56-63 */ +127, 128, 130, 127, 124, 125, 129, 130, /* 64-71 */ +133, 135, 136, 110, 103, 125, 146, 147, /* 72-79 */ +124, 99, 102, 110, 146, 166, 160, 119, /* 80-87 */ + 88, 89, 129, 203, 139, 121, 113, 105, /* 88-95 */ +107, 115, 142, 163, 164, 136, 88, 58, /* 96-103 */ +102, 159, 212, 173, 93, 37, 69, 147, /* 104-111 */ +209, 190, 120, 66, 77, 143, 187, 177, /* 112-119 */ +116, 68, 68, 120, 175, 172, 141, 113, /* 120-127 */ +111, 116, 104, 110, 124, 152, 177, 169, /* 128-135 */ +107, 57, 53, 129, 202, 202, 130, 57, /* 136-143 */ + 62, 143, 213, 199, 106, 24, 35, 135, /* 144-151 */ +232, 236, 153, 56, 40, 92, 157, 171, /* 152-159 */ +148, 115, 127, 149, 146, 107, 75, 88, /* 160-167 */ +143, 178, 162, 108, 82, 113, 168, 180, /* 168-175 */ +120, 47, 40, 126, 221, 251, 166, 49, /* 176-183 */ + 0, 66, 172, 224, 182, 104, 70, 109, /* 184-191 */ +159, 167, 118, 71, 82, 139, 180, 171, /* 192-199 */ +129, 95, 103, 128, 130, 104, 86, 121, /* 200-207 */ +187, 210, 161, 67, 19, 63, 166, 229, /* 208-215 */ +200, 107, 51, 79, 157, 194, 157, 81, /* 216-223 */ + 53, 104, 182, 213, 168, 91, 54, 83, /* 224-231 */ +136, 162, 149, 131, 131, 146, 139, 107, /* 232-239 */ + 74, 91, 148, 198, 188, 127, 68, 78, /* 240-247 */ +138, 188, 172, 104, 57, 88, 172, 223, /* 248-255 */ +189, 88, 24, 48, 135, 207, 203, 135, /* 256-263 */ + 77, 71, 110, 142, 136, 115, 115, 140, /* 264-271 */ +160, 144, 105, 84, 104, 149, 163, 132, /* 272-279 */ + 91, 96, 146, 191, 176, 101, 35, 51, /* 280-287 */ +139, 223, 224, 142, 51, 32, 95, 172, /* 288-295 */ +189, 143, 89, 85, 126, 162, 152, 109, /* 296-303 */ + 80, 98, 137, 154, 139, 119, 120, 140, /* 304-311 */ +142, 113, 77, 79, 137, 201, 209, 140, /* 312-319 */ + 55, 32, 94, 183, 216, 166, 85, 57, /* 320-327 */ +106, 175, 193, 143, 75, 61, 113, 179, /* 328-335 */ +199, 156, 99, 80, 104, 135, 142, 132, /* 336-343 */ +131, 150, 162, 138, 93, 68, 99, 165, /* 344-351 */ +200, 170, 97, 57, 89, 163, 200, 163, /* 352-359 */ + 86, 49, 95, 178, 223, 179, 92, 45, /* 360-367 */ + 75, 148, 199, 182, 131, 99, 107, 131, /* 368-375 */ +139, 122, 113, 131, 157, 160, 126, 86, /* 376-383 */ + 85, 127, 166, 159, 107, 70, 89, 151, /* 384-391 */ +196, 168, 86, 31, 58, 145, 214, 203, /* 392-399 */ +126, 58, 60, 118, 172, 173, 131, 101, /* 400-407 */ +110, 144, 160, 140, 106, 99, 123, 147, /* 408-415 */ +145, 121, 113, 131, 156, 148, 103, 63, /* 416-423 */ + 74, 138, 202, 198, 124, 50, 41, 105, /* 424-431 */ +179, 194, 140, 82, 74, 123, 171, 168, /* 432-439 */ +118, 77, 85, 135, 175, 169, 134, 107, /* 440-447 */ +111, 127, 131, 118, 113, 135, 171, 177, /* 448-455 */ +136, 79, 63, 105, 170, 195, 155, 92, /* 456-463 */ + 68, 108, 167, 181, 134, 73, 62, 115, /* 464-471 */ +181, 196, 146, 84, 61, 96, 145, 166, /* 472-479 */ +148, 121, 117, 132, 136, 118, 101, 108, /* 480-487 */ +142, 167, 158, 118, 90, 105, 147, 168, /* 488-495 */ +146, 97, 77, 114, 175, 198, 154, 82, /* 496-503 */ + 47, 85, 157, 199, 175, 115, 75, 89, /* 504-511 */ +131, 154, 141, 113, 107, 128, 149, 144, /* 512-519 */ +120, 104, 115, 138, 143, 126, 108, 119, /* 520-527 */ +152, 171, 149, 97, 66, 93, 158, 201, /* 528-535 */ +182, 116, 65, 75, 130, 177, 169, 122, /* 536-543 */ + 88, 98, 138, 163, 146, 107, 86, 102, /* 544-551 */ +134, 152, 141, 122, 115, 123, 125, 113, /* 552-559 */ + 99, 109, 142, 171, 163, 118, 74, 75, /* 560-567 */ +123, 174, 177, 133, 88, 86, 129, 170, /* 568-575 */ +166, 119, 79, 85, 133, 176, 175, 134, /* 576-583 */ + 93, 85, 110, 137, 143, 134, 127, 133, /* 584-591 */ +135, 122, 102, 96, 117, 151, 163, 140, /* 592-599 */ +104, 91, 118, 154, 161, 129, 89, 86, /* 600-607 */ +129, 179, 186, 142, 85, 67, 102, 157, /* 608-615 */ +183, 162, 123, 102, 111, 132, 139, 130, /* 616-623 */ +121, 129, 143, 146, 132, 114, 114, 132, /* 624-631 */ +144, 135, 112, 105, 129, 164, 173, 138, /* 632-639 */ + 88, 69, 103, 161, 192, 168, 114, 80, /* 640-647 */ + 94, 135, 163, 152, 121, 104, 118, 146, /* 648-655 */ +154, 138, 111, 104, 117, 135, 140, 134, /* 656-663 */ +129, 135, 139, 127, 104, 91, 110, 149, /* 664-671 */ +176, 160, 112, 77, 87, 130, 166, 160, /* 672-679 */ +120, 90, 100, 138, 163, 150, 110, 84, /* 680-687 */ + 96, 134, 163, 157, 129, 106, 104, 118, /* 688-695 */ +127, 127, 126, 134, 144, 142, 121, 98, /* 696-703 */ + 98, 124, 154, 156, 129, 100, 100, 129, /* 704-711 */ +157, 153, 116, 85, 91, 132, 171, 171, /* 712-719 */ +131, 89, 82, 112, 147, 159, 141, 119, /* 720-727 */ +114, 123, 131, 127, 118, 119, 132, 143, /* 728-735 */ +138, 122, 113, 121, 138, 142, 124, 104, /* 736-743 */ +104, 132, 163, 164, 129, 88, 79, 112, /* 744-751 */ +157, 174, 149, 110, 92, 108, 137, 149, /* 752-759 */ +135, 115, 111, 126, 143, 143, 127, 114, /* 760-767 */ +115, 125, 132, 129, 126, 131, 143, 144, /* 768-775 */ +127, 102, 95, 118, 154, 169, 149, 110, /* 776-783 */ + 89, 103, 138, 158, 146, 115, 100, 115, /* 784-791 */ +144, 156, 139, 109, 96, 110, 138, 152, /* 792-799 */ +145, 128, 117, 118, 122, 121, 120, 127, /* 800-807 */ +142, 151, 141, 117, 100, 107, 134, 154, /* 808-815 */ +149, 123, 105, 114, 141, 157, 143, 112, /* 816-823 */ + 93, 107, 143, 167, 158, 126, 99, 99, /* 824-831 */ +121, 142, 144, 135, 126, 126, 129, 127, /* 832-839 */ +118, 115, 122, 135, 141, 131, 118, 116, /* 840-847 */ +128, 140, 134, 115, 101, 110, 141, 162, /* 848-855 */ +154, 119, 90, 91, 121, 152, 157, 138, /* 856-863 */ +112, 107, 120, 136, 136, 124, 115, 121, /* 864-871 */ +135, 142, 136, 124, 118, 121, 127, 127, /* 872-879 */ +123, 125, 137, 148, 143, 121, 99, 100, /* 880-887 */ +126, 154, 162, 140, 110, 100, 116, 141, /* 888-895 */ +148, 132, 113, 111, 129, 149, 149, 129, /* 896-903 */ +108, 106, 121, 138, 144, 138, 130, 127, /* 904-911 */ +127, 123, 116, 116, 128, 146, 152, 139, /* 912-919 */ +116, 105, 115, 137, 148, 137, 117, 110, /* 920-927 */ +125, 146, 150, 131, 105, 97, 115, 144, /* 928-935 */ +157, 145, 121, 107, 111, 124, 133, 132, /* 936-943 */ +128, 130, 135, 134, 125, 115, 115, 127, /* 944-951 */ +138, 138, 128, 119, 124, 136, 141, 129, /* 952-959 */ +110, 103, 118, 145, 158, 145, 115, 96, /* 960-967 */ +102, 126, 144, 143, 128, 116, 118, 127, /* 968-975 */ +132, 124, 116, 115, 125, 135, 136, 129, /* 976-983 */ +122, 122, 127, 126, 121, 117, 124, 140, /* 984-991 */ +149, 140, 117, 100, 105, 129, 149, 150, /* 992-999 */ +131, 113, 111, 124, 138, 135, 122, 113, /* 1000-1007 */ +118, 134, 144, 138, 123, 111, 113, 124, /* 1008-1015 */ +132, 133, 131, 131, 133, 130, 121, 112, /* 1016-1023 */ +115, 129, 145, 147, 134, 115, 111, 122, /* 1024-1031 */ +137, 140, 129, 116, 118, 132, 146, 143, /* 1032-1039 */ +124, 108, 107, 123, 141, 147, 137, 124, /* 1040-1047 */ +116, 119, 124, 126, 126, 128, 135, 138, /* 1048-1055 */ +133, 121, 115, 119, 130, 137, 133, 124, /* 1056-1063 */ +122, 129, 141, 140, 126, 110, 109, 126, /* 1064-1071 */ +146, 153, 141, 119, 108, 115, 129, 139, /* 1072-1079 */ +137, 128, 124, 128, 132, 129, 122, 118, /* 1080-1087 */ +122, 131, 135, 132, 127, 125, 129, 129, /* 1088-1095 */ +124, 116, 116, 128, 143, 148, 135, 116, /* 1096-1103 */ +105, 113, 131, 145, 141, 128, 118, 121, /* 1104-1111 */ +129, 135, 129, 119, 116, 124, 136, 140, /* 1112-1119 */ +134, 123, 117, 118, 124, 127, 127, 129, /* 1120-1127 */ +134, 135, 129, 117, 110, 115, 129, 142, /* 1128-1135 */ +141, 128, 115, 116, 126, 135, 132, 122, /* 1136-1143 */ +115, 121, 135, 143, 138, 123, 111, 113, /* 1144-1151 */ +125, 138, 140, 134, 127, 124, 124, 124, /* 1152-1159 */ +121, 123, 129, 136, 137, 129, 121, 118, /* 1160-1167 */ +124, 131, 132, 127, 121, 124, 134, 141, /* 1168-1175 */ +137, 123, 111, 113, 128, 143, 147, 136, /* 1176-1183 */ +122, 115, 121, 129, 134, 132, 129, 129, /* 1184-1191 */ +132, 133, 129, 124, 122, 126, 130, 132, /* 1192-1199 */ +129, 129, 130, 132, 130, 122, 115, 117, /* 1200-1207 */ +129, 141, 144, 132, 117, 111, 118, 131, /* 1208-1215 */ +138, 135, 125, 121, 126, 132, 132, 126, /* 1216-1223 */ +119, 119, 127, 134, 136, 131, 125, 122, /* 1224-1231 */ +122, 123, 124, 125, 130, 136, 136, 128, /* 1232-1239 */ +117, 113, 118, 131, 138, 135, 125, 118, /* 1240-1247 */ +121, 129, 132, 127, 118, 116, 124, 135, /* 1248-1255 */ +139, 132, 121, 114, 116, 124, 132, 133, /* 1256-1263 */ +132, 129, 127, 125, 121, 119, 123, 129, /* 1264-1271 */ +135, 134, 127, 122, 121, 127, 130, 128, /* 1272-1279 */ +122, 120, 126, 135, 138, 132, 119, 112, /* 1280-1287 */ +115, 128, 138, 139, 131, 122, 120, 123, /* 1288-1295 */ +127, 127, 127, 127, 130, 132, 131, 127, /* 1296-1303 */ +123, 124, 127, 129, 128, 127, 129, 133, /* 1304-1311 */ +135, 129, 121, 115, 119, 131, 141, 140, /* 1312-1319 */ +130, 119, 117, 123, 131, 134, 130, 126, /* 1320-1327 */ +126, 129, 132, 130, 124, 121, 122, 128, /* 1328-1335 */ +133, 134, 131, 128, 127, 125, 123, 123, /* 1336-1343 */ +125, 132, 138, 137, 129, 120, 117, 124, /* 1344-1351 */ +132, 136, 132, 126, 124, 128, 132, 132, /* 1352-1359 */ +126, 120, 121, 128, 136, 138, 132, 124, /* 1360-1367 */ +120, 121, 126, 129, 131, 132, 132, 130, /* 1368-1375 */ +127, 122, 120, 124, 130, 134, 132, 127, /* 1376-1383 */ +124, 125, 129, 129, 126, 121, 122, 128, /* 1384-1391 */ +135, 138, 130, 120, 115, 119, 129, 135, /* 1392-1399 */ +134, 129, 124, 124, 124, 125, 124, 124, /* 1400-1407 */ +127, 130, 131, 129, 125, 124, 124, 126, /* 1408-1415 */ +127, 125, 125, 129, 134, 134, 128, 120, /* 1416-1423 */ +117, 121, 132, 138, 137, 129, 122, 121, /* 1424-1431 */ +125, 130, 130, 127, 127, 128, 132, 132, /* 1432-1439 */ +129, 124, 122, 124, 128, 130, 132, 131, /* 1440-1447 */ +130, 128, 125, 122, 121, 125, 132, 137, /* 1448-1455 */ +135, 127, 121, 120, 125, 131, 132, 129, /* 1456-1463 */ +127, 127, 130, 132, 130, 125, 121, 123, /* 1464-1471 */ +129, 135, 135, 131, 125, 123, 123, 125, /* 1472-1479 */ +127, 129, 131, 132, 130, 125, 121, 120, /* 1480-1487 */ +124, 129, 132, 129, 125, 124, 127, 129, /* 1488-1495 */ +127, 123, 121, 122, 128, 135, 134, 128, /* 1496-1503 */ +121, 118, 121, 127, 131, 132, 129, 127, /* 1504-1511 */ +126, 124, 124, 123, 124, 127, 129, 129, /* 1512-1519 */ +127, 125, 124, 125, 125, 124, 122, 124, /* 1520-1527 */ +129, 132, 132, 126, 119, 118, 122, 129, /* 1528-1535 */ +134, 132, 127, 124, 123, 126, 127, 127, /* 1536-1543 */ +127, 127, 129, 131, 130, 127, 124, 124, /* 1544-1551 */ +125, 127, 128, 129, 130, 131, 129, 125, /* 1552-1559 */ +121, 121, 125, 132, 135, 132, 127, 122, /* 1560-1567 */ +122, 126, 130, 129, 127, 126, 127, 131, /* 1568-1575 */ +131, 129, 124, 123, 124, 129, 132, 133, /* 1576-1583 */ +131, 128, 126, 125, 125, 126, 129, 132, /* 1584-1591 */ +133, 131, 127, 123, 124, 127, 131, 131, /* 1592-1599 */ +129, 127, 127, 130, 131, 129, 124, 123, /* 1600-1607 */ +125, 130, 135, 134, 129, 124, 123, 125, /* 1608-1615 */ +128, 131, 132, 131, 129, 129, 127, 125, /* 1616-1623 */ +125, 127, 129, 130, 129, 129, 128, 128, /* 1624-1631 */ +128, 127, 124, 124, 127, 130, 134, 132, /* 1632-1639 */ +127, 121, 121, 124, 129, 132, 131, 127, /* 1640-1647 */ +126, 126, 126, 127, 126, 126, 127, 129, /* 1648-1655 */ +129, 129, 127, 125, 125, 125, 126, 127, /* 1656-1663 */ +129, 131, 131, 129, 125, 121, 121, 126, /* 1664-1671 */ +130, 132, 129, 126, 123, 124, 126, 128, /* 1672-1679 */ +127, 126, 125, 127, 129, 129, 127, 124, /* 1680-1687 */ +123, 124, 127, 129, 129, 129, 128, 126, /* 1688-1695 */ +124, 123, 124, 127, 130, 132, 129, 126, /* 1696-1703 */ +124, 124, 127, 129, 129, 127, 127, 128, /* 1704-1711 */ +130, 130, 127, 124, 123, 125, 129, 132, /* 1712-1719 */ +132, 128, 125, 124, 125, 127, 129, 129, /* 1720-1727 */ +129, 129, 129, 127, 125, 125, 127, 129, /* 1728-1735 */ +129, 129, 128, 129, 129, 128, 126, 124, /* 1736-1743 */ +124, 127, 131, 133, 131, 127, 123, 123, /* 1744-1751 */ +126, 129, 130, 129, 128, 127, 127, 127, /* 1752-1759 */ +126, 126, 126, 127, 129, 129, 129, 127, /* 1760-1767 */ +127, 126, 125, 124, 126, 127, 129, 131, /* 1768-1775 */ +129, 125, 122, 123, 126, 129, 131, 129, /* 1776-1783 */ +127, 125, 126, 127, 127, 126, 126, 127, /* 1784-1791 */ +129, 129, 129, 127, 125, 124, 124, 127, /* 1792-1799 */ +129, 129, 129, 129, 127, 124, 123, 125, /* 1800-1807 */ +127, 129, 130, 129, 126, 125, 126, 127, /* 1808-1815 */ +128, 127, 127, 127, 129, 130, 129, 127, /* 1816-1823 */ +124, 124, 127, 129, 132, 131, 129, 127, /* 1824-1831 */ +126, 126, 126, 128, 129, 129, 129, 129, /* 1832-1839 */ +127, 126, 126, 127, 128, 127, 127, 128, /* 1840-1847 */ +129, 129, 128, 126, 124, 124, 127, 130, /* 1848-1855 */ +132, 131, 127, 125, 125, 126, 128, 129, /* 1856-1863 */ +129, 129, 129, 128, 127, 127, 126, 127, /* 1864-1871 */ +128, 129, 129, 129, 129, 128, 127, 126, /* 1872-1879 */ +125, 127, 129, 131, 131, 129, 126, 124, /* 1880-1887 */ +124, 127, 129, 129, 129, 127, 127, 127, /* 1888-1895 */ +127, 127, 126, 127, 127, 129, 129, 129, /* 1896-1903 */ +128, 126, 125, 126, 127, 129, 129, 129, /* 1904-1911 */ +129, 127, 125, 124, 125, 127, 129, 129, /* 1912-1919 */ +129, 127, 126, 126, 127, 127, 126, 126, /* 1920-1927 */ +127, 129, 129, 128, 126, 124, 124, 126, /* 1928-1935 */ +128, 129, 129, 129, 127, 126, 125, 125, /* 1936-1943 */ +127, 128, 129, 129, 128, 127, 126, 126, /* 1944-1951 */ +127, 127, 127, 127, 127, 129, 129, 128, /* 1952-1959 */ +125, 124, 124, 127, 129, 129, 129, 127, /* 1960-1967 */ +125, 125, 126, 127, 128, 129, 129, 129, /* 1968-1975 */ +128, 127, 126, 126, 127, 127, 129, 129, /* 1976-1983 */ +129, 129, 129, 127, 126, 125, 126, 129, /* 1984-1991 */ +131, 131, 129, 126, 125, 125, 127, 129, /* 1992-1999 */ +129, 129, 127, 128, 128, 127, 126, 126, /* 2000-2007 */ +126, 127, 129, 129, 129, 128, 127, 126, /* 2008-2015 */ +126, 126, 127, 129, 129, 129, 128, 125, /* 2016-2023 */ +125, 126, 128, 129, 129, 128, 127, 127, /* 2024-2031 */ +127, 127, 126, 126, 126, 127, 129, 129, /* 2032-2039 */ +128, 126, 125, 125, 126, 127, 129, 129, /* 2040-2047 */ +129, 128, 126, 125, 125, 126, 127, 129, /* 2048-2055 */ +129, 128, 127, 126, 127, 127, 127, 126, /* 2056-2063 */ +127, 127, 129, 129, 128, 126, 124, 125, /* 2064-2071 */ +127, 129, 129, 129, 127, 126, 126, 126, /* 2072-2079 */ +126, 127, 128, 129, 129, 128, 127, 126, /* 2080-2087 */ +126, 127, 127, 127, 127, 129, 129, 129, /* 2088-2095 */ +127, 126, 125, 126, 129, 129, 129, 129, /* 2096-2103 */ +127, 126, 126, 127, 128, 129, 129, 129, /* 2104-2111 */ +129, 128, 128, 127, 126, 127, 127, 129, /* 2112-2119 */ +129, 129, 128, 128, 127, 126, 126, 127, /* 2120-2127 */ +129, 129, 129, 128, 126, 126, 127, 128, /* 2128-2135 */ +129, 129, 128, 128, 128, 128, 128, 127, /* 2136-2143 */ +126, 127, 129, 129, 129, 129, 127, 126, /* 2144-2151 */ +126, 127, 128, 129, 129, 129, 129, 127, /* 2152-2159 */ +126, 126, 127, 128, 129, 129, 128, 127, /* 2160-2167 */ +127, 127, 127, 127, 127, 127, 129, 129, /* 2168-2175 */ +129, 128, 126, 125, 126, 127, 129, 129, /* 2176-2183 */ +129, 128, 127, 127, 126, 127, 127, 128, /* 2184-2191 */ +129, 129, 128, 127, 127, 127, 127, 127, /* 2192-2199 */ +127, 127, 129, 129, 128, 127, 125, 125, /* 2200-2207 */ +126, 128, 129, 129, 128, 127, 126, 126, /* 2208-2215 */ +127, 127, 127, 127, 127, 128, 128, 127, /* 2216-2223 */ +126, 126, 126, 127, 127, 128, 128, 128, /* 2224-2231 */ +127, 126, 125, 126, 127, 128, 129, 129, /* 2232-2239 */ +127, 126, 125, 126, 127, 127, 127, 127, /* 2240-2247 */ +127, 128, 128, 127, 126, 126, 126, 127, /* 2248-2255 */ +129, 129, 128, 127, 126, 126, 126, 127, /* 2256-2263 */ +127, 129, 129, 128, 127, 126, 126, 126, /* 2264-2271 */ +127, 128, 128, 127, 127, 127, 127, 127, /* 2272-2279 */ +126, 126, 127, 127, 129, 129, 127, 126, /* 2280-2287 */ +125, 126, 127, 127, 128, 128, 128, 127, /* 2288-2295 */ +127, 126, 126, 127, 128, 128, 129, 128, /* 2296-2303 */ +127, 127, 127, 127, 127, 127, 127, 129, /* 2304-2311 */ +129, 129, 127, 126, 125, 126, 128, 129, /* 2312-2319 */ +129, 128, 127, 127, 127, 127, 127, 127, /* 2320-2327 */ +127, 128, 128, 128, 127, 127, 127, 127, /* 2328-2335 */ +127, 128, 129, 129, 129, 128, 127, 126, /* 2336-2343 */ +127, 128, 129, 129, 129, 128, 127, 127, /* 2344-2351 */ +127, 128, 128, 128, 128, 129, 129, 128, /* 2352-2359 */ +128, 127, 127, 127, 128, 129, 129, 129, /* 2360-2367 */ +128, 127, 127, 127, 127, 128, 129, 129, /* 2368-2375 */ +129, 128, 127, 127, 128, 128, 129, 129, /* 2376-2383 */ +128, 128, 128, 128, 128, 127, 127, 127, /* 2384-2391 */ +129, 129, 129, 128, 127, 126, 127, 127, /* 2392-2399 */ +127, 128, 129, 128, 128, 127, 126, 126, /* 2400-2407 */ +127, 128, 128, 128, 128, 128, 128, 127, /* 2408-2415 */ +127, 127, 127, 127, 129, 129, 129, 127, /* 2416-2423 */ +126, 126, 127, 128, 128, 128, 128, 127, /* 2424-2431 */ +127, 127, 127, 127, 127, 127, 127, 128, /* 2432-2439 */ +128, 127, 127, 126, 126, 127, 127, 127, /* 2440-2447 */ +128, 128, 128, 127, 126, 126, 127, 128, /* 2448-2455 */ +129, 128, 127, 127, 127, 127, 127, 127, /* 2456-2463 */ +127, 127, 128, 128, 128, 127, 126, 126, /* 2464-2471 */ +127, 127, 127, 128, 128, 127, 127, 126, /* 2472-2479 */ +126, 126, 127, 128, 128, 128, 127, 126, /* 2480-2487 */ +126, 127, 127, 127, 127, 127, 128, 128, /* 2488-2495 */ +128, 127, 126, 126, 127, 128, 129, 128, /* 2496-2503 */ +128, 127, 127, 127, 127, 127, 127, 128, /* 2504-2511 */ +128, 128, 127, 127, 127, 127, 127, 127, /* 2512-2519 */ +127, 128, 128, 128, 127, 127, 126, 127, /* 2520-2527 */ +127, 128, 129, 128, 127, 126, 126, 127, /* 2528-2535 */ +128, 128, 128, 128, 128, 128, 127, 127, /* 2536-2543 */ +127, 127, 127, 128, 128, 128, 128, 127, /* 2544-2551 */ +127, 127, 127, 127, 128, 128, 129, 128, /* 2552-2559 */ +127, 126, 126, 127, 128, 128, 128, 128, /* 2560-2567 */ +127, 127, 127, 127, 127, 127, 128, 128, /* 2568-2575 */ +128, 128, 127, 127, 127, 127, 127, 128, /* 2576-2583 */ +128, 128, 128, 128, 127, 127, 127, 127, /* 2584-2591 */ +128, 129, 128, 128, 127, 127, 127, 127, /* 2592-2599 */ +127, 127, 128, 128, 128, 128, 127, 127, /* 2600-2607 */ +127, 127, 128, 129, 129, 128, 128, 127, /* 2608-2615 */ +127, 127, 127, 128, 129, 129, 128, 128, /* 2616-2623 */ +127, 127, 127, 128, 128, 128, 128, 128, /* 2624-2631 */ +128, 128, 127, 127, 127, 127, 128, 129, /* 2632-2639 */ +128, 128, 127, 127, 127, 127, 128, 128, /* 2640-2647 */ +128, 128, 128, 127, 127, 127, 127, 128, /* 2648-2655 */ +128, 128, 128, 128, 128, 127, 127, 127, /* 2656-2663 */ +127, 128, 128, 128, 128, 127, 127, 127, /* 2664-2671 */ +127, 127, 128, 128, 128, 127, 127, 127, /* 2672-2679 */ +127, 127, 127, 127, 128, 128, 128, 127, /* 2680-2687 */ +127, 127, 127, 127, 127, 128, 128, 128, /* 2688-2695 */ +128, 127, 127, 127, 127, 128, 128, 128, /* 2696-2703 */ +128, 127, 127, 127, 127, 127, 127, 128, /* 2704-2711 */ +128, 128, 128, 127, 127, 127, 127, 127, /* 2712-2719 */ +128, 128, 128, 127, 127, 127, 127, 127, /* 2720-2727 */ +127, 128, 128, 128, 127, 127, 127, 127, /* 2728-2735 */ +127, 127, 127, 128, 128, 128, 128, 127, /* 2736-2743 */ +127, 127, 127, 128, 128, 128, 128, 127, /* 2744-2751 */ +127, 127, 127, 127, 127, 128, 128, 128, /* 2752-2759 */ +127, 127, 127, 127, 127, 127, 128, 128, /* 2760-2767 */ +128, 127, 127, 127, 127, 127, 127, 128, /* 2768-2775 */ +128, 128, 127, 127, 127, 127, 127, 128, /* 2776-2783 */ +128, 128, 128, 127, 127, 127, 127, 127, /* 2784-2791 */ +127, 127, 128, 128, 127, 127, 127, 127}; /* 2792-2799 */ + +//get and set the frequency from wav conversion tool GUI +int a=0; + +//interrupt routine to play next audio sample from array in flash +void audio_sample_marimbaA() +{ + + speaker = data_a[a]/255.0;//scale to 0.0 to 1.0 for PWM + a++; + if (a>= NUM_ELEMENTS) { + a = 0; + sampletick.detach(); + myled = 0; + } +}