fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] Help using fluid_synth_activate_key_tuning


From: Tarjei Bærland
Subject: Re: [fluid-dev] Help using fluid_synth_activate_key_tuning
Date: Mon, 14 Oct 2019 12:33:45 +0200

Hi, Marcus!

Thank you, that worked perfectly. I was, as you've seen, missing the step of activating the tuning.

Thanks, again,
Tarjei



man. 14. okt. 2019 kl. 10:25 skrev Marcus Weseloh <address@hidden>:
Hi Tarjei,

Am So., 13. Okt. 2019 um 22:36 Uhr schrieb Tarjei Bærland <address@hidden>:
Hi!

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);
...
(play notes)
 
Hope this helps, all the best
Marcus
_______________________________________________
fluid-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fluid-dev

reply via email to

[Prev in Thread] Current Thread [Next in Thread]