Hi I'm working with WAVEFORM_ARBITRARY, I have used the milow wavetables (Thank )
https://github.com/mihow/audio-patches/tree/master/Teensy/CustomWavetable
Now I want my own wavetables, but I do not know how to get this kind of data from a WAV, like it has? What program can I use? I do not even understand these figures that appear in the .h
const int16_t AKWF_cello_0001[257] = {
-35, 782, 2274, 3066, 4472, 6150, 7266, 7481, 7257,
6923, 6415, 5629, 4613, 3706, 3071, 3357, 4845, 7561, 10867,
13533, 15696, 17734, 18669, 18854, 18760, 19617, 21384, 23526, 26659,
29816, 32208, 32688, 31570, 29928, 28656, 27624, 26016, 24008, 22328,
21262, 20200, 18822, 17165, 15455, 13811, 12414, 10693, 8444, 5873,
3071, 280, -2792, -5623, -7743, -8928, -9539,-10819,-12907,-15836,
-18949,-22558,-25862,-28072,-29296,-29242,-28109,-26819,-26329,-25850,
-25006,-24355,-24821,-25712,-26449,-26796,-26439,-24847,-22220,-19948,
-17827,-16254,-16953,-18441,-19776,-20998,-21247,-20823,-19570,-17947,
-16753,-15783,-14617,-13490,-12596,-11502,-10320, -8987, -7376, -6152,
-4044, -933, 1629, 2949, 3746, 5104, 6584, 7244, 7912, 8737,
8883, 8201, 7256, 6692, 5959, 5009, 4549, 4382, 3595, 1956,
-324, -2383, -3985, -4994, -5574, -5313, -4436, -3778, -4273, -4781,
-5061, -5427, -5626, -5563, -4619, -2676, -471, 1838, 4501, 5782,
7078, 6814, 6244, 5924, 5807, 7270, 7392, 8134, 8273, 8760,
10731, 10974, 11927, 11655, 11740, 12454, 12650, 12791, 13521, 15953,
17704, 18675, 18065, 19877, 20233, 20099, 20499, 18905, 18099, 16009,
15291, 13709, 10469, 10044, 9393, 7583, 4070, -252, -2875, -5240,
-6049, -5359, -3033, -393, 1491, 2121, 2059, 1238, -554, -524,
-138, 1871, 4813, 7148, 10391, 12053, 11377, 8392, 3827, -340,
-4231, -7194, -9300,-10242,-11004,-13035,-15760,-18899,-21577,-24165,
-25513,-25279,-23477,-21512,-19672,-16851,-14505,-12956,-12179,-11460,
-10221, -9112, -7789, -6138, -4209, -1803, -484, 342, -351, -1657,
-2348, -2493, -2049, -1083, 1373, 4258, 5907, 5789, 4393, 2931,
1951, 704, -463, -894, -570, -555, -862, -1605, -2315, -3361,
-4063, -3853, -3392, -2603, -1718, -891, -227, -35
};
It is clear that they have to do with the position of the wave, and I suppose with tone, time and amplitude, but I am somewhat lost, some idea
https://github.com/mihow/audio-patches/tree/master/Teensy/CustomWavetable
Now I want my own wavetables, but I do not know how to get this kind of data from a WAV, like it has? What program can I use? I do not even understand these figures that appear in the .h
const int16_t AKWF_cello_0001[257] = {
-35, 782, 2274, 3066, 4472, 6150, 7266, 7481, 7257,
6923, 6415, 5629, 4613, 3706, 3071, 3357, 4845, 7561, 10867,
13533, 15696, 17734, 18669, 18854, 18760, 19617, 21384, 23526, 26659,
29816, 32208, 32688, 31570, 29928, 28656, 27624, 26016, 24008, 22328,
21262, 20200, 18822, 17165, 15455, 13811, 12414, 10693, 8444, 5873,
3071, 280, -2792, -5623, -7743, -8928, -9539,-10819,-12907,-15836,
-18949,-22558,-25862,-28072,-29296,-29242,-28109,-26819,-26329,-25850,
-25006,-24355,-24821,-25712,-26449,-26796,-26439,-24847,-22220,-19948,
-17827,-16254,-16953,-18441,-19776,-20998,-21247,-20823,-19570,-17947,
-16753,-15783,-14617,-13490,-12596,-11502,-10320, -8987, -7376, -6152,
-4044, -933, 1629, 2949, 3746, 5104, 6584, 7244, 7912, 8737,
8883, 8201, 7256, 6692, 5959, 5009, 4549, 4382, 3595, 1956,
-324, -2383, -3985, -4994, -5574, -5313, -4436, -3778, -4273, -4781,
-5061, -5427, -5626, -5563, -4619, -2676, -471, 1838, 4501, 5782,
7078, 6814, 6244, 5924, 5807, 7270, 7392, 8134, 8273, 8760,
10731, 10974, 11927, 11655, 11740, 12454, 12650, 12791, 13521, 15953,
17704, 18675, 18065, 19877, 20233, 20099, 20499, 18905, 18099, 16009,
15291, 13709, 10469, 10044, 9393, 7583, 4070, -252, -2875, -5240,
-6049, -5359, -3033, -393, 1491, 2121, 2059, 1238, -554, -524,
-138, 1871, 4813, 7148, 10391, 12053, 11377, 8392, 3827, -340,
-4231, -7194, -9300,-10242,-11004,-13035,-15760,-18899,-21577,-24165,
-25513,-25279,-23477,-21512,-19672,-16851,-14505,-12956,-12179,-11460,
-10221, -9112, -7789, -6138, -4209, -1803, -484, 342, -351, -1657,
-2348, -2493, -2049, -1083, 1373, 4258, 5907, 5789, 4393, 2931,
1951, 704, -463, -894, -570, -555, -862, -1605, -2315, -3361,
-4063, -3853, -3392, -2603, -1718, -891, -227, -35
};
It is clear that they have to do with the position of the wave, and I suppose with tone, time and amplitude, but I am somewhat lost, some idea