Am So., 13. Okt. 2019 um 22:36 Uhr schrieb Tarjei Bærland <address@hidden
I want to use fluidsynth to explore different tunings with my mathematics classes. As a start, I've modified ~example.c~ to include a 'tuning' of all notes being tuned at 200 cents, and not knowing how banks and progs work, I try to set the tuning for the full range for both bank and prog.
However, the random notes are still tuned distinctly, and I'm at a loss as to what my errors are. I have tried googling, but I can't find a clear example of fluid_synth_activate_key_tuning in use.
All help would be much appreciated!
Fluidsynth channels don't have a default tuning set, so you need to select a tuning bank and program for a particular channel to hear the effects.
Simply create your key tuning for a single for bank/prog, no need to do it for all tuning banks and progs. Then call fluid_synth_activate_tuning() to select tuning bank 0, prog 0 for the channel you are playing your notes on. So roughly like this:
int tuning_bank = 0;
int tuning_prog = 0;
int channel = 0;
fluid_synth_activate_key_tuning(synth, tuning_bank, tuning_prog, "Test", tuning, 1);
fluid_synth_activate_tuning(synth, channel, tuning_bank, tuning_prog, 1);
Hope this helps, all the best