fluid-dev
[Top][All Lists]
Advanced

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

Re: [fluid-dev] Help with setting volume control


From: scott andrew franco
Subject: Re: [fluid-dev] Help with setting volume control
Date: Tue, 30 Jul 2019 23:35:05 -0700
User-agent: MailAPI

So running a program to research the issue:
 

/* show the device fluidsynth connects to (usually "default") */
r = fluid_settings_copystr(settings, "audio.alsa.device", buff, 200);
printf("r: %d\n", r);
printf("The alsa PCM device for Fluidsynth is: %s\n", buff);

r = fluid_settings_copystr(settings, "synth.gain", buff, 200);
printf("r: %d\n", r);
printf("The gain for Fluidsynth is: %s\n", buff);

r = fluid_settings_setstr(settings, "synth.gain", "10");
printf("r: %d\n", r);

r = fluid_settings_copystr(settings, "synth.gain", buff, 200);
printf("r: %d\n", r);
printf("The gain for Fluidsynth is: %s\n", buff);

r = fluid_settings_copystr(settings, "nonsense", buff, 200);
printf("r: %d\n", r);
printf("The gain for Fluidsynth is: %s\n", buff);

 

Result:

 

./test
fluidsynth: warning: Failed to set thread to high priority
fluidsynth: warning: Failed to pin the sample data to RAM; swapping is possible.
r: 1
The alsa PCM device for Fluidsynth is: default
r: 0
The gain for Fluidsynth is:
r: 0
r: 0
The gain for Fluidsynth is:
r: 0
The gain for Fluidsynth is:

 

So "synth.gain" does not appear to exist. I got this name from:

http://www.fluidsynth.org/api/fluidsettings.xml

?

 
--------- Original Message ---------
Subject: [fluid-dev] Help with setting volume control
From: "scott andrew franco" <address@hidden>
Date: 7/30/19 6:58 pm
To: address@hidden

Hi,
 
I am using Fluidsynth library in my program (Petit_ami on sourceforge). It is working well, but
my result is very low volume output.
 
A search found many other references to low volume, and the standard answer I found was to turn up
the gain on the command line version of fluidsynth (I believe -g or "gain" option). Of course that does not
apply to users of fluidsynth as a library.
 
I have had good luck finding various parameters via the settings call. The
"synth.gain" parameter should do it:
 
"The gain is applied to the final or master output of the synthesizer. It is set to a low value by default to avoid the saturation of the output when many notes are played."
 
It is 0-10, but is defaulted to 0.2.
 
However, changing this parameter had no effect on the output volume, I tried all the way up to 10.
 
Other details: I am using alsa device. The device it is using (by examining "audio.alsa.device") shows as "default".
 
Any help appreciated.
 
Scott A. Franco
San Jose, CA
 
 
_______________________________________________ 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]