Page 1 of 1
MIDI Volume - How to change default?
Posted: 06 Mar 2012 00:50
by jabberwock82
According to FluidSynth's user manual, the default master gain (volume) is 0.2 (out of 0-10). That makes MIDI files extremely faint. I can bump up the volume and the equalizer gain, but then I nearly blow out my eardrums when I switch to a different song and forget to lower it.
Is there a way to set this via VLC configuration (or even Lua scripting)?
Thanks.
--
John
Re: MIDI Volume - How to change default?
Posted: 06 Mar 2012 08:33
by Rémi Denis-Courmont
Hmm... no. We could override it to 1.0, but I wonder why it defaults 0.2 in the first place?
Re: MIDI Volume - How to change default?
Posted: 06 Mar 2012 15:03
by jabberwock82
I can't get to the site right now, but it sounded like they wanted to protect against MIDI files with erroneous volume settings. There's a switch for the command-line version (-g, I think), but I don't know how you'd set that on a plugin.
Re: MIDI Volume - How to change default?
Posted: 06 Mar 2012 15:48
by Rémi Denis-Courmont
You can't without changing the VLC plugin source code.
Re: MIDI Volume - How to change default?
Posted: 08 Mar 2012 07:57
by Lotesdelere
the default master gain (volume) is 0.2 (out of 0-10). That makes MIDI files extremely faint. I can bump up the volume and the equalizer gain, but then I nearly blow out my eardrums when I switch to a different song and forget to lower it.
I second that as the default volume for MIDI files is way too low.
Re: MIDI Volume - How to change default?
Posted: 08 Mar 2012 09:56
by Rémi Denis-Courmont
Patch welcome.
Re: MIDI Volume - How to change default?
Posted: 08 Mar 2012 15:11
by jabberwock82
Yeah, I was considering whether I want to try to dig into something like that. Can you point me to the right files? If I decide to take a whack at it, I'll start a new thread under an appropriate development forum.
I don't know how parameters are passed to a plug-in, but I was thinking in VLC we could add a single "FluidSynth command line options" preference string, rather than trying to account for every FluidSynth option.
Re: MIDI Volume - How to change default?
Posted: 12 Mar 2012 21:28
by Rémi Denis-Courmont
There is no generic way to expose arbitrary command line parameters: VLC needs to know them at installation time for storage in the plugins cache. You would have to use an ugly and unfriendly syntax like for arbitrary V4L2 device controls. Also some options would break VLC (thread-safety off) or should really be set automatically (multiple cores) using the existing VLC infrastructure. The options should be static anyway so that they can be localized by the VLC translation team.
That being said, I don't disagree that the default gain is too low. Feel free to file bugs or send patches.
Re: MIDI Volume - How to change default?
Posted: 13 Mar 2012 02:18
by jabberwock82
Good points. Coming up with a patch is probably beyond my capabilities, though. I'll file a bug/enhancement request.
Re: MIDI Volume - How to change default?
Posted: 13 Mar 2012 19:46
by Rémi Denis-Courmont
Nevermind, I added a gain setting with 0.8 default in VLC 2.0.1.
Re: MIDI Volume - How to change default?
Posted: 13 Mar 2012 20:25
by jabberwock82
Thanks!