think your compile error is because of
void PlayTunedNote(int note, int amp = DEFAULT_AMPLITUDE, float freqAdj);
should be
void PlayTunedNote(int note, float freqAdj, int amp = DEFAULT_AMPLITUDE);
as the amp parameter is optional
note...
using setFrequency would be the way to go as it do update while the note is playing
use it like this:
float freqAdj = 0.1;
//float freqAdj = -0.1; // or negative adj
setFrequency(noteToFreq(note) + freqAdj);
internally of AudioSynthWavetable...
I have recently been working on a SF2 reader written in c++
to work together with AudioSynthWavetable
https://github.com/manicken/sf2Reader
+ a C# testing software
https://github.com/manicken/sf2ReaderTester
While I have learned about the SF2...