Deluge Firmware
Loading...
Searching...
No Matches
Functions | Variables
lookuptables.cpp File Reference
#include "lookuptables.h"
#include "functions.h"
#include "definitions.h"
Include dependency graph for lookuptables.cpp:

Functions

const int16_t sineWaveDiff[] __attribute__ ((aligned(CACHE_LINE_SIZE)))
 

Variables

const uint16_t centAdjustTableSmall [257]
 
const uint16_t decayTableSmall8 [257]
 
const uint16_t decayTableSmall4 [257]
 
const int16_t sineWaveSmall [257]
 
const int16_t triangleWaveAntiAliasing1 [] = {-26582,-26454,-26071,-25437,-24559,-23443,-22102,-20548,-18796,-16863,-14768,-12531,-10173,-7716,-5186,-2605,0,2605,5186,7716,10173,12531,14768,16863,18796,20548,22102,23443,24559,25437,26071,26454,26582,26454,26071,25437,24559,23443,22102,20548,18796,16863,14768,12531,10173,7716,5186,2605,0,-2605,-5186,-7716,-10173,-12531,-14768,-16863,-18796,-20548,-22102,-23443,-24559,-25437,-26071,-26454,-26582}
 
const int16_t triangleWaveAntiAliasing3 [] = {-29555,-29299,-28543,-27323,-25696,-23735,-21522,-19147,-16694,-14242,-11853,-9572,-7426,-5419,-3534,-1743,0,1743,3534,5419,7426,9572,11853,14242,16694,19147,21522,23735,25696,27323,28543,29299,29555,29299,28543,27323,25696,23735,21522,19147,16694,14242,11853,9572,7426,5419,3534,1743,0,-1743,-3534,-5419,-7426,-9572,-11853,-14242,-16694,-19147,-21522,-23735,-25696,-27323,-28543,-29299,-29555}
 
const int16_t triangleWaveAntiAliasing5 [] ={-30590,-30494,-30209,-29742,-29107,-28320,-27402,-26376,-25267,-24098,-22894,-21676,-20465,-19276,-18120,-17007,-15939,-14917,-13936,-12989,-12068,-11161,-10258,-9348,-8421,-7470,-6489,-5475,-4428,-3351,-2249,-1129,0,1129,2249,3351,4428,5475,6489,7470,8421,9348,10258,11161,12068,12989,13936,14917,15939,17007,18120,19276,20465,21676,22894,24098,25267,26376,27402,28320,29107,29742,30209,30494,30590,30494,30209,29742,29107,28320,27402,26376,25267,24098,22894,21676,20465,19276,18120,17007,15939,14917,13936,12989,12068,11161,10258,9348,8421,7470,6489,5475,4428,3351,2249,1129,0,-1129,-2249,-3351,-4428,-5475,-6489,-7470,-8421,-9348,-10258,-11161,-12068,-12989,-13936,-14917,-15939,-17007,-18120,-19276,-20465,-21676,-22894,-24098,-25267,-26376,-27402,-28320,-29107,-29742,-30209,-30494,-30590}
 
const int16_t triangleWaveAntiAliasing9 [] ={-31471,-31311,-30844,-30105,-29149,-28041,-26850,-25638,-24453,-23327,-22273,-21285,-20346,-19428,-18506,-17555,-16562,-15524,-14448,-13349,-12246,-11158,-10098,-9074,-8084,-7119,-6163,-5201,-4218,-3205,-2159,-1087,0,1087,2159,3205,4218,5201,6163,7119,8084,9074,10098,11158,12246,13349,14448,15524,16562,17555,18506,19428,20346,21285,22273,23327,24453,25638,26850,28041,29149,30105,30844,31311,31471,31311,30844,30105,29149,28041,26850,25638,24453,23327,22273,21285,20346,19428,18506,17555,16562,15524,14448,13349,12246,11158,10098,9074,8084,7119,6163,5201,4218,3205,2159,1087,0,-1087,-2159,-3205,-4218,-5201,-6163,-7119,-8084,-9074,-10098,-11158,-12246,-13349,-14448,-15524,-16562,-17555,-18506,-19428,-20346,-21285,-22273,-23327,-24453,-25638,-26850,-28041,-29149,-30105,-30844,-31311,-31471}
 
const int16_t triangleWaveAntiAliasing15 [] ={-31982,-31726,-31009,-29965,-28768,-27570,-26465,-25471,-24543,-23616,-22636,-21588,-20495,-19403,-18349,-17346,-16376,-15406,-14405,-13363,-12293,-11223,-10179,-9172,-8189,-7207,-6200,-5160,-4097,-3034,-1994,-986,0,986,1994,3034,4097,5160,6200,7207,8189,9172,10179,11223,12293,13363,14405,15406,16376,17346,18349,19403,20495,21588,22636,23616,24543,25471,26465,27570,28768,29965,31009,31726,31982,31726,31009,29965,28768,27570,26465,25471,24543,23616,22636,21588,20495,19403,18349,17346,16376,15406,14405,13363,12293,11223,10179,9172,8189,7207,6200,5160,4097,3034,1994,986,0,-986,-1994,-3034,-4097,-5160,-6200,-7207,-8189,-9172,-10179,-11223,-12293,-13363,-14405,-15406,-16376,-17346,-18349,-19403,-20495,-21588,-22636,-23616,-24543,-25471,-26465,-27570,-28768,-29965,-31009,-31726,-31982}
 
const int16_t triangleWaveAntiAliasing21 [] ={-32225,-31873,-30945,-29747,-28570,-27544,-26620,-25675,-24638,-23543,-22469,-21462,-20495,-19505,-18462,-17391,-16342,-15338,-14355,-13349,-12304,-11243,-10206,-9205,-8214,-7199,-6151,-5096,-4067,-3069,-2073,-1051,0,1051,2073,3069,4067,5096,6151,7199,8214,9205,10206,11243,12304,13349,14355,15338,16342,17391,18462,19505,20495,21462,22469,23543,24638,25675,26620,27544,28570,29747,30945,31873,32225,31873,30945,29747,28570,27544,26620,25675,24638,23543,22469,21462,20495,19505,18462,17391,16342,15338,14355,13349,12304,11243,10206,9205,8214,7199,6151,5096,4067,3069,2073,1051,0,-1051,-2073,-3069,-4067,-5096,-6151,-7199,-8214,-9205,-10206,-11243,-12304,-13349,-14355,-15338,-16342,-17391,-18462,-19505,-20495,-21462,-22469,-23543,-24638,-25675,-26620,-27544,-28570,-29747,-30945,-31873,-32225}
 
const int16_t triangleWaveAntiAliasing31 [] ={-32442,-31930,-30766,-29602,-28656,-27710,-26632,-25554,-24571,-23589,-22531,-21473,-20478,-19483,-18433,-17384,-16383,-15381,-14337,-13292,-12287,-11283,-10240,-9198,-8192,-7185,-6144,-5104,-4096,-3088,-2048,-1008,0,1008,2048,3088,4096,5104,6144,7185,8192,9198,10240,11283,12287,13292,14337,15381,16383,17384,18433,19483,20478,21473,22531,23589,24571,25554,26632,27710,28656,29602,30766,31930,32442,31930,30766,29602,28656,27710,26632,25554,24571,23589,22531,21473,20478,19483,18433,17384,16383,15381,14337,13292,12287,11283,10240,9198,8192,7185,6144,5104,4096,3088,2048,1008,0,-1008,-2048,-3088,-4096,-5104,-6144,-7185,-8192,-9198,-10240,-11283,-12287,-13292,-14337,-15381,-16383,-17384,-18433,-19483,-20478,-21473,-22531,-23589,-24571,-25554,-26632,-27710,-28656,-29602,-30766,-31930,-32442}
 
const uint16_t expTableSmall [257]
 
const int16_t tanHSmall []
 
const char * presetScaleNames [] = {"MAJOR", "MINOR", "DORIAN", "PHRYGIAN", "LYDIAN", "MIXOLYDIAN", "LOCRIAN", "RANDOM", "NONE", NULL}
 
const char * presetReverbNames [] = {"SMALL", "MEDI", "LARG", NULL}
 
const int16_t tanH2d [][129]
 
const int16_t oldResonanceCompensation []
 
const uint8_t presetScaleNotes [NUM_PRESET_SCALES][7]
 
const int32_t noteFrequencyTable [12]
 
const int32_t noteIntervalTable [12]
 
const int32_t timeStretchAdjustTable [193]
 
const int32_t attackRateTable [51]
 
const int32_t releaseRateTable [51]
 
const int32_t releaseRateTable64 [65]
 
const int32_t tanTable [65]
 
const int16_t hanningWindow []
 
const int16_t lanczosKernelA2 [257]
 
const int16_t lanczosKernelA4 [257]
 
const int16_t lanczosKernelA8 [513]
 
const int16_t lanczosKernelA16 [1025]
 
const int16_t windowedSincKernelBasicForWavetableBetweenCycles []
 
const uint8_t noteCodeToNoteLetter [12] = {67, 67, 68, 68, 69, 70, 70, 71, 71, 65, 65, 66}
 
const bool noteCodeIsSharp [12] = {0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0}
 
const uint8_t defaultClipGroupColours [] = {102, 168, 24, 84, 186, 36, 126, 12, 147, 48, 72, 157}
 

Function Documentation

◆ __attribute__()

const int16_t sineWaveDiff[] __attribute__ ( (aligned(CACHE_LINE_SIZE))  )

Variable Documentation

◆ attackRateTable

const int32_t attackRateTable[51]
Initial value:
= {
262144, 221969, 187951, 159147, 134757, 114105, 96618, 81811,
69273, 58656, 49667, 42055, 35610, 30153, 25532, 21619,
18306, 15500, 13125, 11113, 9410, 7968, 6747, 5713,
4837, 4096, 3468, 2937, 2487, 2106, 1783, 1510,
1278, 1082, 917, 776, 657, 556, 471, 399,
338, 286, 242, 205, 174, 147, 124, 105,
89, 76, 64, }

◆ centAdjustTableSmall

const uint16_t centAdjustTableSmall[257]
Initial value:
= {
31835, 31842, 31850, 31857, 31864, 31871, 31878, 31885, 31893, 31900, 31907, 31914, 31921, 31929, 31936, 31943,
31950, 31958, 31965, 31972, 31979, 31986, 31994, 32001, 32008, 32015, 32022, 32030, 32037, 32044, 32051, 32059,
32066, 32073, 32080, 32088, 32095, 32102, 32109, 32117, 32124, 32131, 32138, 32146, 32153, 32160, 32167, 32175,
32182, 32189, 32196, 32204, 32211, 32218, 32225, 32233, 32240, 32247, 32255, 32262, 32269, 32276, 32284, 32291,
32298, 32306, 32313, 32320, 32327, 32335, 32342, 32349, 32357, 32364, 32371, 32378, 32386, 32393, 32400, 32408,
32415, 32422, 32430, 32437, 32444, 32452, 32459, 32466, 32474, 32481, 32488, 32496, 32503, 32510, 32518, 32525,
32532, 32540, 32547, 32554, 32562, 32569, 32576, 32584, 32591, 32598, 32606, 32613, 32620, 32628, 32635, 32643,
32650, 32657, 32665, 32672, 32679, 32687, 32694, 32702, 32709, 32716, 32724, 32731, 32738, 32746, 32753, 32761,
32768, 32775, 32783, 32790, 32798, 32805, 32812, 32820, 32827, 32835, 32842, 32849, 32857, 32864, 32872, 32879,
32887, 32894, 32901, 32909, 32916, 32924, 32931, 32938, 32946, 32953, 32961, 32968, 32976, 32983, 32991, 32998,
33005, 33013, 33020, 33028, 33035, 33043, 33050, 33058, 33065, 33073, 33080, 33087, 33095, 33102, 33110, 33117,
33125, 33132, 33140, 33147, 33155, 33162, 33170, 33177, 33185, 33192, 33200, 33207, 33215, 33222, 33230, 33237,
33245, 33252, 33260, 33267, 33275, 33282, 33290, 33297, 33305, 33312, 33320, 33327, 33335, 33342, 33350, 33357,
33365, 33372, 33380, 33387, 33395, 33403, 33410, 33418, 33425, 33433, 33440, 33448, 33455, 33463, 33470, 33478,
33486, 33493, 33501, 33508, 33516, 33523, 33531, 33538, 33546, 33554, 33561, 33569, 33576, 33584, 33591, 33599,
33607, 33614, 33622, 33629, 33637, 33645, 33652, 33660, 33667, 33675, 33683, 33690, 33698, 33705, 33713, 33721,
33728, }

◆ decayTableSmall4

const uint16_t decayTableSmall4[257]
Initial value:
= {
65535, 64782, 64037, 63300, 62571, 61850, 61137, 60431, 59733, 59043, 58360, 57684,
57016, 56354, 55700, 55053, 54413, 53780, 53153, 52534, 51921, 51314, 50715, 50121,
49534, 48954, 48379, 47811, 47249, 46693, 46143, 45599, 45061, 44528, 44001, 43480,
42965, 42455, 41951, 41452, 40958, 40470, 39987, 39509, 39036, 38569, 38106, 37649,
37196, 36748, 36305, 35867, 35434, 35005, 34581, 34161, 33746, 33336, 32930, 32528,
32130, 31737, 31348, 30964, 30583, 30206, 29834, 29466, 29101, 28741, 28384, 28031,
27682, 27337, 26995, 26657, 26323, 25993, 25666, 25342, 25022, 24705, 24392, 24082,
23776, 23473, 23173, 22876, 22583, 22292, 22005, 21721, 21440, 21162, 20887, 20615,
20346, 20080, 19816, 19556, 19298, 19043, 18791, 18541, 18295, 18050, 17809, 17570,
17334, 17100, 16869, 16640, 16414, 16190, 15968, 15749, 15532, 15318, 15106, 14896,
14689, 14483, 14280, 14079, 13881, 13684, 13490, 13297, 13107, 12919, 12732, 12548,
12366, 12186, 12007, 11831, 11657, 11484, 11313, 11144, 10977, 10812, 10648, 10486,
10326, 10168, 10012, 9857, 9703, 9552, 9402, 9254, 9107, 8962, 8818, 8676,
8535, 8396, 8259, 8123, 7988, 7855, 7724, 7593, 7464, 7337, 7211, 7086,
6963, 6841, 6720, 6600, 6482, 6365, 6250, 6135, 6022, 5910, 5800, 5690,
5582, 5474, 5368, 5264, 5160, 5057, 4956, 4855, 4756, 4658, 4560, 4464,
4369, 4275, 4182, 4090, 3998, 3908, 3819, 3731, 3644, 3557, 3472, 3388,
3304, 3221, 3140, 3059, 2979, 2900, 2821, 2744, 2667, 2591, 2516, 2442,
2369, 2296, 2224, 2153, 2083, 2014, 1945, 1877, 1810, 1743, 1677, 1612,
1548, 1484, 1421, 1359, 1297, 1236, 1175, 1116, 1057, 998, 940, 883,
827, 771, 715, 660, 606, 553, 500, 447, 395, 344, 293, 243,
193, 144, 96, 48, 0, }

◆ decayTableSmall8

const uint16_t decayTableSmall8[257]
Initial value:
= {
65535, 64125, 62746, 61396, 60075, 58782, 57517, 56279, 55067, 53882, 52722, 51586,
50476, 49388, 48325, 47284, 46265, 45268, 44293, 43338, 42404, 41490, 40595, 39720,
38863, 38025, 37205, 36402, 35616, 34848, 34095, 33359, 32639, 31934, 31244, 30569,
29909, 29262, 28630, 28011, 27405, 26812, 26232, 25665, 25109, 24566, 24034, 23513,
23004, 22506, 22018, 21540, 21073, 20616, 20169, 19731, 19303, 18884, 18474, 18072,
17680, 17295, 16919, 16551, 16191, 15839, 15494, 15156, 14826, 14503, 14186, 13877,
13574, 13278, 12988, 12704, 12426, 12154, 11888, 11628, 11373, 11124, 10880, 10642,
10408, 10180, 9956, 9737, 9523, 9313, 9108, 8908, 8711, 8519, 8331, 8147,
7967, 7791, 7618, 7450, 7284, 7123, 6965, 6810, 6659, 6510, 6365, 6223,
6085, 5949, 5816, 5686, 5558, 5434, 5312, 5192, 5076, 4961, 4850, 4740,
4633, 4528, 4426, 4325, 4227, 4131, 4037, 3945, 3855, 3767, 3681, 3596,
3514, 3433, 3354, 3276, 3201, 3127, 3054, 2983, 2914, 2846, 2779, 2714,
2651, 2588, 2527, 2468, 2409, 2352, 2296, 2242, 2188, 2136, 2084, 2034,
1985, 1937, 1890, 1844, 1799, 1755, 1712, 1670, 1628, 1588, 1548, 1510,
1472, 1435, 1399, 1363, 1328, 1294, 1261, 1229, 1197, 1166, 1135, 1105,
1076, 1048, 1020, 992, 966, 939, 914, 889, 864, 840, 817, 794,
771, 749, 727, 706, 686, 665, 646, 626, 607, 589, 571, 553,
536, 519, 502, 486, 470, 454, 439, 424, 410, 395, 381, 368,
354, 341, 328, 316, 304, 292, 280, 268, 257, 246, 235, 225,
214, 204, 194, 185, 175, 166, 157, 148, 139, 131, 123, 114,
106, 99, 91, 84, 76, 69, 62, 55, 49, 42, 36, 29,
23, 17, 11, 6, 0, }

◆ defaultClipGroupColours

const uint8_t defaultClipGroupColours[] = {102, 168, 24, 84, 186, 36, 126, 12, 147, 48, 72, 157}

◆ expTableSmall

const uint16_t expTableSmall[257]
Initial value:
= {
32768, 32857, 32946, 33035, 33125, 33215, 33305, 33395, 33486, 33576, 33667, 33759, 33850, 33942, 34034, 34126,
34219, 34312, 34405, 34498, 34591, 34685, 34779, 34874, 34968, 35063, 35158, 35253, 35349, 35445, 35541, 35637,
35734, 35831, 35928, 36025, 36123, 36221, 36319, 36417, 36516, 36615, 36715, 36814, 36914, 37014, 37114, 37215,
37316, 37417, 37518, 37620, 37722, 37824, 37927, 38030, 38133, 38236, 38340, 38444, 38548, 38653, 38757, 38863,
38968, 39074, 39180, 39286, 39392, 39499, 39606, 39714, 39821, 39929, 40037, 40146, 40255, 40364, 40473, 40583,
40693, 40804, 40914, 41025, 41136, 41248, 41360, 41472, 41584, 41697, 41810, 41923, 42037, 42151, 42265, 42380,
42495, 42610, 42726, 42841, 42958, 43074, 43191, 43308, 43425, 43543, 43661, 43780, 43898, 44017, 44137, 44256,
44376, 44497, 44617, 44738, 44859, 44981, 45103, 45225, 45348, 45471, 45594, 45718, 45842, 45966, 46091, 46216,
46341, 46467, 46593, 46719, 46846, 46973, 47100, 47228, 47356, 47484, 47613, 47742, 47871, 48001, 48131, 48262,
48393, 48524, 48655, 48787, 48920, 49052, 49185, 49319, 49452, 49586, 49721, 49856, 49991, 50126, 50262, 50399,
50535, 50672, 50810, 50947, 51085, 51224, 51363, 51502, 51642, 51782, 51922, 52063, 52204, 52346, 52488, 52630,
52773, 52916, 53059, 53203, 53347, 53492, 53637, 53782, 53928, 54074, 54221, 54368, 54515, 54663, 54811, 54960,
55109, 55258, 55408, 55558, 55709, 55860, 56012, 56163, 56316, 56468, 56622, 56775, 56929, 57083, 57238, 57393,
57549, 57705, 57861, 58018, 58176, 58333, 58491, 58650, 58809, 58968, 59128, 59289, 59449, 59611, 59772, 59934,
60097, 60260, 60423, 60587, 60751, 60916, 61081, 61247, 61413, 61579, 61746, 61914, 62081, 62250, 62419, 62588,
62757, 62928, 63098, 63269, 63441, 63613, 63785, 63958, 64132, 64306, 64480, 64655, 64830, 65006, 65182, 65359,
65535, }

◆ hanningWindow

const int16_t hanningWindow[]
Initial value:
= {
0, 5, 20, 44, 79, 123, 177, 241, 315, 398, 491, 593, 705, 827, 958, 1098,
1247, 1406, 1573, 1749, 1935, 2128, 2331, 2542, 2761, 2989, 3224, 3468, 3719, 3978, 4244, 4518,
4799, 5086, 5381, 5682, 5990, 6304, 6624, 6950, 7281, 7618, 7961, 8308, 8660, 9017, 9379, 9744,
10114, 10487, 10864, 11244, 11628, 12014, 12403, 12794, 13187, 13583, 13980, 14378, 14778, 15178, 15580, 15981,
16384, 16786, 17187, 17589, 17989, 18389, 18787, 19184, 19580, 19973, 20364, 20753, 21139, 21523, 21903, 22280,
22653, 23023, 23388, 23750, 24107, 24459, 24806, 25149, 25486, 25817, 26143, 26463, 26777, 27085, 27386, 27681,
27968, 28249, 28523, 28789, 29048, 29299, 29543, 29778, 30006, 30225, 30436, 30639, 30832, 31018, 31194, 31361,
31520, 31669, 31809, 31940, 32062, 32174, 32276, 32369, 32452, 32526, 32590, 32644, 32688, 32723, 32747, 32762,
32767, 32762, 32747, 32723, 32688, 32644, 32590, 32526, 32452, 32369, 32276, 32174, 32062, 31940, 31809, 31669,
31520, 31361, 31194, 31018, 30832, 30639, 30436, 30225, 30006, 29778, 29543, 29299, 29048, 28789, 28523, 28249,
27968, 27681, 27386, 27085, 26777, 26463, 26143, 25817, 25486, 25149, 24806, 24459, 24107, 23750, 23388, 23023,
22653, 22280, 21903, 21523, 21139, 20753, 20364, 19973, 19580, 19184, 18787, 18389, 17989, 17589, 17187, 16786,
16383, 15981, 15580, 15178, 14778, 14378, 13980, 13583, 13187, 12794, 12403, 12014, 11628, 11244, 10864, 10487,
10114, 9744, 9379, 9017, 8660, 8308, 7961, 7618, 7281, 6950, 6624, 6304, 5990, 5682, 5381, 5086,
4799, 4518, 4244, 3978, 3719, 3468, 3224, 2989, 2761, 2542, 2331, 2128, 1935, 1749, 1573, 1406,
1247, 1098, 958, 827, 705, 593, 491, 398, 315, 241, 177, 123, 79, 44, 20, 5,
0, }

◆ lanczosKernelA16

const int16_t lanczosKernelA16[1025]

◆ lanczosKernelA2

const int16_t lanczosKernelA2[257]
Initial value:
= {
0, -2, -8, -19, -34, -53, -78, -107, -141, -180, -224, -272, -326, -384, -447, -515,
-587, -663, -743, -827, -914, -1004, -1097, -1193, -1291, -1390, -1490, -1591, -1692, -1793, -1893, -1991,
-2087, -2180, -2270, -2355, -2436, -2512, -2581, -2643, -2698, -2744, -2782, -2809, -2826, -2832, -2826, -2808,
-2776, -2730, -2670, -2595, -2503, -2396, -2271, -2129, -1969, -1791, -1594, -1378, -1142, -887, -611, -316,
0, 336, 693, 1070, 1467, 1884, 2322, 2779, 3255, 3751, 4265, 4797, 5347, 5915, 6498, 7097,
7712, 8340, 8982, 9636, 10301, 10977, 11663, 12357, 13058, 13765, 14477, 15192, 15910, 16630, 17349, 18066,
18781, 19491, 20196, 20895, 21585, 22265, 22935, 23592, 24236, 24865, 25478, 26073, 26650, 27207, 27743, 28257,
28748, 29215, 29656, 30072, 30460, 30820, 31152, 31454, 31727, 31968, 32179, 32358, 32505, 32619, 32701, 32751,
32767, 32751, 32701, 32619, 32505, 32358, 32179, 31968, 31727, 31454, 31152, 30820, 30460, 30072, 29656, 29215,
28748, 28257, 27743, 27207, 26650, 26073, 25478, 24865, 24236, 23592, 22935, 22265, 21585, 20895, 20196, 19491,
18781, 18066, 17349, 16630, 15910, 15192, 14477, 13765, 13058, 12357, 11663, 10977, 10301, 9636, 8982, 8340,
7712, 7097, 6498, 5915, 5347, 4797, 4265, 3751, 3255, 2779, 2322, 1884, 1467, 1070, 693, 336,
0, -316, -611, -887, -1142, -1378, -1594, -1791, -1969, -2129, -2271, -2396, -2503, -2595, -2670, -2730,
-2776, -2808, -2826, -2832, -2826, -2809, -2782, -2744, -2698, -2643, -2581, -2512, -2436, -2355, -2270, -2180,
-2087, -1991, -1893, -1793, -1692, -1591, -1490, -1390, -1291, -1193, -1097, -1004, -914, -827, -743, -663,
-587, -515, -447, -384, -326, -272, -224, -180, -141, -107, -78, -53, -34, -19, -8, -2,
0, }

◆ lanczosKernelA4

const int16_t lanczosKernelA4[257]
Initial value:
= {
0, -2, -8, -19, -33, -52, -74, -101, -130, -163, -197, -234, -271, -309, -346, -381,
-415, -445, -471, -492, -508, -516, -517, -510, -494, -468, -433, -387, -330, -263, -186, -98,
0, 107, 222, 346, 475, 610, 749, 890, 1032, 1173, 1311, 1444, 1570, 1687, 1793, 1886,
1963, 2023, 2064, 2084, 2081, 2055, 2003, 1925, 1819, 1686, 1525, 1336, 1120, 877, 608, 315,
0, -336, -689, -1058, -1439, -1828, -2222, -2616, -3007, -3391, -3761, -4115, -4446, -4751, -5023, -5259,
-5453, -5601, -5698, -5740, -5723, -5644, -5498, -5283, -4997, -4637, -4202, -3691, -3104, -2440, -1700, -886,
0, 956, 1980, 3066, 4211, 5410, 6658, 7948, 9275, 10631, 12010, 13404, 14806, 16207, 17600, 18977,
20328, 21647, 22925, 24154, 25326, 26435, 27474, 28434, 29311, 30099, 30793, 31388, 31880, 32266, 32544, 32711,
32767, 32711, 32544, 32266, 31880, 31388, 30793, 30099, 29311, 28434, 27474, 26435, 25326, 24154, 22925, 21647,
20328, 18977, 17600, 16207, 14806, 13404, 12010, 10631, 9275, 7948, 6658, 5410, 4211, 3066, 1980, 956,
0, -886, -1700, -2440, -3104, -3691, -4202, -4637, -4997, -5283, -5498, -5644, -5723, -5740, -5698, -5601,
-5453, -5259, -5023, -4751, -4446, -4115, -3761, -3391, -3007, -2616, -2222, -1828, -1439, -1058, -689, -336,
0, 315, 608, 877, 1120, 1336, 1525, 1686, 1819, 1925, 2003, 2055, 2081, 2084, 2064, 2023,
1963, 1886, 1793, 1687, 1570, 1444, 1311, 1173, 1032, 890, 749, 610, 475, 346, 222, 107,
0, -98, -186, -263, -330, -387, -433, -468, -494, -510, -517, -516, -508, -492, -471, -445,
-415, -381, -346, -309, -271, -234, -197, -163, -130, -101, -74, -52, -33, -19, -8, -2,
0, }

◆ lanczosKernelA8

const int16_t lanczosKernelA8[513]

◆ noteCodeIsSharp

const bool noteCodeIsSharp[12] = {0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0}

◆ noteCodeToNoteLetter

const uint8_t noteCodeToNoteLetter[12] = {67, 67, 68, 68, 69, 70, 70, 71, 71, 65, 65, 66}

◆ noteFrequencyTable

const int32_t noteFrequencyTable[12]
Initial value:
= {
1027294024, 1088380105, 1153098554, 1221665363, 1294309365, 1371273005,
1452813141, 1539201906, 1630727614, 1727695724, 1830429858, 1939272882, }

◆ noteIntervalTable

const int32_t noteIntervalTable[12]
Initial value:
= {
1073741824, 1137589835, 1205234447, 1276901417, 1352829926, 1433273380,
1518500250, 1608794974, 1704458901, 1805811301, 1913190429, 2026954652, }

◆ oldResonanceCompensation

const int16_t oldResonanceCompensation[]
Initial value:
= {
8192,
4915,
2764,
1024,
0, 0, 0, 0, 0
}

◆ presetReverbNames

const char* presetReverbNames[] = {"SMALL", "MEDI", "LARG", NULL}

◆ presetScaleNames

const char* presetScaleNames[] = {"MAJOR", "MINOR", "DORIAN", "PHRYGIAN", "LYDIAN", "MIXOLYDIAN", "LOCRIAN", "RANDOM", "NONE", NULL}

◆ presetScaleNotes

const uint8_t presetScaleNotes[NUM_PRESET_SCALES][7]
Initial value:
= {
{0, 2, 4, 5, 7, 9, 11},
{0, 2, 3, 5, 7, 8, 10},
{0, 2, 3, 5, 7, 9, 10},
{0, 1, 3, 5, 7, 8, 10},
{0, 2, 4, 6, 7, 9, 11},
{0, 2, 4, 5, 7, 9, 10},
{0, 1, 3, 5, 6, 8, 10},
}

◆ releaseRateTable

const int32_t releaseRateTable[51]
Initial value:
= {
32691, 4604, 2444, 1648, 1234, 980, 809, 685,
592, 519, 460, 412, 372, 338, 309, 283,
261, 241, 224, 208, 194, 181, 169, 159,
149, 140, 132, 124, 117, 110, 104, 98,
93, 88, 83, 78, 74, 70, 66, 62,
59, 56, 53, 50, 47, 44, 41, 39,
36, 34, 32, }

◆ releaseRateTable64

const int32_t releaseRateTable64[65]
Initial value:
= {
1959518848, 240577040, 126456408, 84972672, 63518640, 50408868, 41567836, 35202512,
30400724, 26649400, 23637820, 21166812, 19102814, 17352918, 15850494, 14546511,
13404089, 12394955, 11497068, 10692993, 9968758, 9313033, 8716538, 8171592,
7671792, 7211749, 6786901, 6393359, 6027784, 5687299, 5369406, 5071928,
4792960, 4530827, 4284050, 4051316, 3831462, 3623446, 3426337, 3239300,
3061582, 2892503, 2731448, 2577859, 2431229, 2291096, 2157036, 2028664,
1905625, 1787593, 1674270, 1565377, 1460662, 1359888, 1262836, 1169305,
1079105, 992062, 908014, 826807, 748301, 672363, 598870, 527703,
458757, }

◆ sineWaveSmall

const int16_t sineWaveSmall[257]
Initial value:
= {
0, 804, 1608, 2410, 3212, 4011, 4808, 5602, 6393, 7179, 7962, 8739, 9512, 10278, 11039, 11793,
12539, 13279, 14010, 14732, 15446, 16151, 16846, 17530, 18204, 18868, 19519, 20159, 20787, 21403, 22005, 22594,
23170, 23731, 24279, 24811, 25329, 25832, 26319, 26790, 27245, 27683, 28105, 28510, 28898, 29268, 29621, 29956,
30273, 30571, 30852, 31113, 31356, 31580, 31785, 31971, 32137, 32285, 32412, 32521, 32609, 32678, 32728, 32757,
32767, 32757, 32728, 32678, 32609, 32521, 32412, 32285, 32137, 31971, 31785, 31580, 31356, 31113, 30852, 30571,
30273, 29956, 29621, 29268, 28898, 28510, 28105, 27683, 27245, 26790, 26319, 25832, 25329, 24811, 24279, 23731,
23170, 22594, 22005, 21403, 20787, 20159, 19519, 18868, 18204, 17530, 16846, 16151, 15446, 14732, 14010, 13279,
12539, 11793, 11039, 10278, 9512, 8739, 7962, 7179, 6393, 5602, 4808, 4011, 3212, 2410, 1608, 804,
0, -804, -1608, -2410, -3212, -4011, -4808, -5602, -6393, -7179, -7962, -8739, -9512, -10278, -11039, -11793,
-12539, -13279, -14010, -14732, -15446, -16151, -16846, -17530, -18204, -18868, -19519, -20159, -20787, -21403, -22005, -22594,
-23170, -23731, -24279, -24811, -25329, -25832, -26319, -26790, -27245, -27683, -28105, -28510, -28898, -29268, -29621, -29956,
-30273, -30571, -30852, -31113, -31356, -31580, -31785, -31971, -32137, -32285, -32412, -32521, -32609, -32678, -32728, -32757,
-32767, -32757, -32728, -32678, -32609, -32521, -32412, -32285, -32137, -31971, -31785, -31580, -31356, -31113, -30852, -30571,
-30273, -29956, -29621, -29268, -28898, -28510, -28105, -27683, -27245, -26790, -26319, -25832, -25329, -24811, -24279, -23731,
-23170, -22594, -22005, -21403, -20787, -20159, -19519, -18868, -18204, -17530, -16846, -16151, -15446, -14732, -14010, -13279,
-12539, -11793, -11039, -10278, -9512, -8739, -7962, -7179, -6393, -5602, -4808, -4011, -3212, -2410, -1608, -804,
0, }

◆ tanH2d

const int16_t tanH2d[][129]

◆ tanHSmall

const int16_t tanHSmall[]
Initial value:
= {
-32767, -32766, -32764, -32762, -32761, -32759, -32757, -32755, -32753, -32750, -32748, -32745, -32742, -32739, -32736, -32733,
-32729, -32725, -32721, -32717, -32712, -32707, -32702, -32697, -32691, -32684, -32677, -32670, -32663, -32655, -32646, -32637,
-32627, -32616, -32605, -32594, -32581, -32568, -32553, -32538, -32522, -32505, -32487, -32467, -32447, -32425, -32401, -32377,
-32350, -32322, -32292, -32260, -32227, -32191, -32152, -32112, -32069, -32023, -31974, -31922, -31867, -31808, -31746, -31680,
-31610, -31535, -31456, -31372, -31282, -31187, -31087, -30980, -30867, -30747, -30619, -30484, -30341, -30190, -30029, -29859,
-29679, -29488, -29287, -29074, -28849, -28611, -28359, -28094, -27814, -27519, -27208, -26881, -26536, -26174, -25792, -25392,
-24972, -24531, -24069, -23586, -23080, -22552, -22000, -21425, -20826, -20202, -19555, -18882, -18185, -17463, -16717, -15946,
-15152, -14335, -13495, -12633, -11750, -10847, -9926, -8986, -8031, -7060, -6077, -5082, -4077, -3065, -2047, -1024,
0, 1024, 2047, 3065, 4077, 5082, 6077, 7060, 8031, 8986, 9926, 10847, 11750, 12633, 13495, 14335,
15152, 15946, 16717, 17463, 18185, 18882, 19555, 20202, 20826, 21425, 22000, 22552, 23080, 23586, 24069, 24531,
24972, 25392, 25792, 26174, 26536, 26881, 27208, 27519, 27814, 28094, 28359, 28611, 28849, 29074, 29287, 29488,
29679, 29859, 30029, 30190, 30341, 30484, 30619, 30747, 30867, 30980, 31087, 31187, 31282, 31372, 31456, 31535,
31610, 31680, 31746, 31808, 31867, 31922, 31974, 32023, 32069, 32112, 32152, 32191, 32227, 32260, 32292, 32322,
32350, 32377, 32401, 32425, 32447, 32467, 32487, 32505, 32522, 32538, 32553, 32568, 32581, 32594, 32605, 32616,
32627, 32637, 32646, 32655, 32663, 32670, 32677, 32684, 32691, 32697, 32702, 32707, 32712, 32717, 32721, 32725,
32729, 32733, 32736, 32739, 32742, 32745, 32748, 32750, 32753, 32755, 32757, 32759, 32761, 32762, 32764, 32766,
32767, }

◆ tanTable

const int32_t tanTable[65]
Initial value:
= {
0, 6040817, 12087756, 18146962, 24224633, 30327039, 36460554, 42631679,
48847074, 55113581, 61438264, 67828436, 74291696, 80835969, 87469544, 94201124,
101039871, 107995463, 115078152, 122298831, 129669107, 137201382, 144908946, 152806078,
160908164, 169231824, 177795063, 186617437, 195720245, 205126751, 214862435, 224955281,
235436122, 246339020, 257701735, 269566249, 281979405, 294993645, 308667898, 323068637,
338271146, 354361056, 371436208, 389608933, 409008861, 429786415, 452117178, 476207408,
502301079, 530688941, 561720325, 595818723, 633502600, 675413648, 722355745, 775349708,
835711820, 905169129, 986033315, 1081471022, 1195939485, 1335918723, 1511206022, 1737350377,
2040599645, }

◆ timeStretchAdjustTable

const int32_t timeStretchAdjustTable[193]
Initial value:
= {
1048576, 1110928, 1176987, 1246974, 1321123, 1399681,
1482910, 1571089, 1664511, 1763488, 1868350, 1979448,
2097152, 2221855, 2353974, 2493948, 2642246, 2799362,
2965821, 3142178, 3329021, 3526975, 3736700, 3958896,
4194304, 4443710, 4707947, 4987896, 5284492, 5598724,
5931642, 6284355, 6658043, 7053950, 7473400, 7917792,
8388608, 8887421, 9415894, 9975792, 10568984, 11197448,
11863283, 12568711, 13316085, 14107901, 14946800, 15835583,
16777216, 17774841, 18831788, 19951585, 21137968, 22394897,
23726566, 25137421, 26632170, 28215802, 29893600, 31671166,
33554432, 35549682, 37663576, 39903169, 42275935, 44789793,
47453133, 50274843, 53264341, 56431603, 59787201, 63342333,
67108864, 71099365, 75327153, 79806339, 84551870, 89579586,
94906266, 100549686, 106528681, 112863206, 119574402, 126684666,
134217728, 142198729, 150654306, 159612677, 169103741, 179159172,
189812531, 201099372, 213057363, 225726413, 239148804, 253369332,
268435456, }

◆ triangleWaveAntiAliasing1

const int16_t triangleWaveAntiAliasing1[] = {-26582,-26454,-26071,-25437,-24559,-23443,-22102,-20548,-18796,-16863,-14768,-12531,-10173,-7716,-5186,-2605,0,2605,5186,7716,10173,12531,14768,16863,18796,20548,22102,23443,24559,25437,26071,26454,26582,26454,26071,25437,24559,23443,22102,20548,18796,16863,14768,12531,10173,7716,5186,2605,0,-2605,-5186,-7716,-10173,-12531,-14768,-16863,-18796,-20548,-22102,-23443,-24559,-25437,-26071,-26454,-26582}

◆ triangleWaveAntiAliasing15

const int16_t triangleWaveAntiAliasing15[] ={-31982,-31726,-31009,-29965,-28768,-27570,-26465,-25471,-24543,-23616,-22636,-21588,-20495,-19403,-18349,-17346,-16376,-15406,-14405,-13363,-12293,-11223,-10179,-9172,-8189,-7207,-6200,-5160,-4097,-3034,-1994,-986,0,986,1994,3034,4097,5160,6200,7207,8189,9172,10179,11223,12293,13363,14405,15406,16376,17346,18349,19403,20495,21588,22636,23616,24543,25471,26465,27570,28768,29965,31009,31726,31982,31726,31009,29965,28768,27570,26465,25471,24543,23616,22636,21588,20495,19403,18349,17346,16376,15406,14405,13363,12293,11223,10179,9172,8189,7207,6200,5160,4097,3034,1994,986,0,-986,-1994,-3034,-4097,-5160,-6200,-7207,-8189,-9172,-10179,-11223,-12293,-13363,-14405,-15406,-16376,-17346,-18349,-19403,-20495,-21588,-22636,-23616,-24543,-25471,-26465,-27570,-28768,-29965,-31009,-31726,-31982}

◆ triangleWaveAntiAliasing21

const int16_t triangleWaveAntiAliasing21[] ={-32225,-31873,-30945,-29747,-28570,-27544,-26620,-25675,-24638,-23543,-22469,-21462,-20495,-19505,-18462,-17391,-16342,-15338,-14355,-13349,-12304,-11243,-10206,-9205,-8214,-7199,-6151,-5096,-4067,-3069,-2073,-1051,0,1051,2073,3069,4067,5096,6151,7199,8214,9205,10206,11243,12304,13349,14355,15338,16342,17391,18462,19505,20495,21462,22469,23543,24638,25675,26620,27544,28570,29747,30945,31873,32225,31873,30945,29747,28570,27544,26620,25675,24638,23543,22469,21462,20495,19505,18462,17391,16342,15338,14355,13349,12304,11243,10206,9205,8214,7199,6151,5096,4067,3069,2073,1051,0,-1051,-2073,-3069,-4067,-5096,-6151,-7199,-8214,-9205,-10206,-11243,-12304,-13349,-14355,-15338,-16342,-17391,-18462,-19505,-20495,-21462,-22469,-23543,-24638,-25675,-26620,-27544,-28570,-29747,-30945,-31873,-32225}

◆ triangleWaveAntiAliasing3

const int16_t triangleWaveAntiAliasing3[] = {-29555,-29299,-28543,-27323,-25696,-23735,-21522,-19147,-16694,-14242,-11853,-9572,-7426,-5419,-3534,-1743,0,1743,3534,5419,7426,9572,11853,14242,16694,19147,21522,23735,25696,27323,28543,29299,29555,29299,28543,27323,25696,23735,21522,19147,16694,14242,11853,9572,7426,5419,3534,1743,0,-1743,-3534,-5419,-7426,-9572,-11853,-14242,-16694,-19147,-21522,-23735,-25696,-27323,-28543,-29299,-29555}

◆ triangleWaveAntiAliasing31

const int16_t triangleWaveAntiAliasing31[] ={-32442,-31930,-30766,-29602,-28656,-27710,-26632,-25554,-24571,-23589,-22531,-21473,-20478,-19483,-18433,-17384,-16383,-15381,-14337,-13292,-12287,-11283,-10240,-9198,-8192,-7185,-6144,-5104,-4096,-3088,-2048,-1008,0,1008,2048,3088,4096,5104,6144,7185,8192,9198,10240,11283,12287,13292,14337,15381,16383,17384,18433,19483,20478,21473,22531,23589,24571,25554,26632,27710,28656,29602,30766,31930,32442,31930,30766,29602,28656,27710,26632,25554,24571,23589,22531,21473,20478,19483,18433,17384,16383,15381,14337,13292,12287,11283,10240,9198,8192,7185,6144,5104,4096,3088,2048,1008,0,-1008,-2048,-3088,-4096,-5104,-6144,-7185,-8192,-9198,-10240,-11283,-12287,-13292,-14337,-15381,-16383,-17384,-18433,-19483,-20478,-21473,-22531,-23589,-24571,-25554,-26632,-27710,-28656,-29602,-30766,-31930,-32442}

◆ triangleWaveAntiAliasing5

const int16_t triangleWaveAntiAliasing5[] ={-30590,-30494,-30209,-29742,-29107,-28320,-27402,-26376,-25267,-24098,-22894,-21676,-20465,-19276,-18120,-17007,-15939,-14917,-13936,-12989,-12068,-11161,-10258,-9348,-8421,-7470,-6489,-5475,-4428,-3351,-2249,-1129,0,1129,2249,3351,4428,5475,6489,7470,8421,9348,10258,11161,12068,12989,13936,14917,15939,17007,18120,19276,20465,21676,22894,24098,25267,26376,27402,28320,29107,29742,30209,30494,30590,30494,30209,29742,29107,28320,27402,26376,25267,24098,22894,21676,20465,19276,18120,17007,15939,14917,13936,12989,12068,11161,10258,9348,8421,7470,6489,5475,4428,3351,2249,1129,0,-1129,-2249,-3351,-4428,-5475,-6489,-7470,-8421,-9348,-10258,-11161,-12068,-12989,-13936,-14917,-15939,-17007,-18120,-19276,-20465,-21676,-22894,-24098,-25267,-26376,-27402,-28320,-29107,-29742,-30209,-30494,-30590}

◆ triangleWaveAntiAliasing9

const int16_t triangleWaveAntiAliasing9[] ={-31471,-31311,-30844,-30105,-29149,-28041,-26850,-25638,-24453,-23327,-22273,-21285,-20346,-19428,-18506,-17555,-16562,-15524,-14448,-13349,-12246,-11158,-10098,-9074,-8084,-7119,-6163,-5201,-4218,-3205,-2159,-1087,0,1087,2159,3205,4218,5201,6163,7119,8084,9074,10098,11158,12246,13349,14448,15524,16562,17555,18506,19428,20346,21285,22273,23327,24453,25638,26850,28041,29149,30105,30844,31311,31471,31311,30844,30105,29149,28041,26850,25638,24453,23327,22273,21285,20346,19428,18506,17555,16562,15524,14448,13349,12246,11158,10098,9074,8084,7119,6163,5201,4218,3205,2159,1087,0,-1087,-2159,-3205,-4218,-5201,-6163,-7119,-8084,-9074,-10098,-11158,-12246,-13349,-14448,-15524,-16562,-17555,-18506,-19428,-20346,-21285,-22273,-23327,-24453,-25638,-26850,-28041,-29149,-30105,-30844,-31311,-31471}

◆ windowedSincKernelBasicForWavetableBetweenCycles

const int16_t windowedSincKernelBasicForWavetableBetweenCycles[]
Initial value:
= {
0, -1, -3, -5, -8, -10, -14, -18, -22, -27, -33, -40, -48, -58, -68, -80,
-93, -108, -124, -141, -161, -182, -204, -229, -255, -283, -313, -344, -378, -412, -448, -486,
-524, -564, -604, -645, -687, -728, -769, -810, -850, -888, -924, -958, -989, -1017, -1041, -1060,
-1075, -1083, -1085, -1079, -1066, -1044, -1012, -970, -917, -853, -775, -684, -579, -459, -322, -170,
0, 188, 395, 621, 867, 1134, 1422, 1732, 2063, 2417, 2793, 3192, 3614, 4059, 4526, 5016,
5529, 6063, 6619, 7197, 7795, 8413, 9049, 9704, 10377, 11065, 11768, 12485, 13214, 13954, 14703, 15460,
16223, 16990, 17760, 18530, 19300, 20066, 20827, 21581, 22326, 23060, 23781, 24487, 25176, 25846, 26494, 27120,
27721, 28296, 28842, 29358, 29843, 30295, 30713, 31094, 31439, 31746, 32014, 32243, 32430, 32577, 32682, 32745,
32767, 32745, 32682, 32577, 32430, 32243, 32014, 31746, 31439, 31094, 30713, 30295, 29843, 29358, 28842, 28296,
27721, 27120, 26494, 25846, 25176, 24487, 23781, 23060, 22326, 21581, 20827, 20066, 19300, 18530, 17760, 16990,
16223, 15460, 14703, 13954, 13214, 12485, 11768, 11065, 10377, 9704, 9049, 8413, 7795, 7197, 6619, 6063,
5529, 5016, 4526, 4059, 3614, 3192, 2793, 2417, 2063, 1732, 1422, 1134, 867, 621, 395, 188,
0, -170, -322, -459, -579, -684, -775, -853, -917, -970, -1012, -1044, -1066, -1079, -1085, -1083,
-1075, -1060, -1041, -1017, -989, -958, -924, -888, -850, -810, -769, -728, -687, -645, -604, -564,
-524, -486, -448, -412, -378, -344, -313, -283, -255, -229, -204, -182, -161, -141, -124, -108,
-93, -80, -68, -58, -48, -40, -33, -27, -22, -18, -14, -10, -8, -5, -3, -1,
0, }