MIDI Volume - How to change default?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
jabberwock82
New Cone
New Cone
Posts: 6
Joined: 04 Mar 2012 17:25

MIDI Volume - How to change default?

Postby jabberwock82 » 06 Mar 2012 00:50

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15323
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: MIDI Volume - How to change default?

Postby Rémi Denis-Courmont » 06 Mar 2012 08:33

Hmm... no. We could override it to 1.0, but I wonder why it defaults 0.2 in the first place?
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jabberwock82
New Cone
New Cone
Posts: 6
Joined: 04 Mar 2012 17:25

Re: MIDI Volume - How to change default?

Postby jabberwock82 » 06 Mar 2012 15:03

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15323
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: MIDI Volume - How to change default?

Postby Rémi Denis-Courmont » 06 Mar 2012 15:48

You can't without changing the VLC plugin source code.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Lotesdelere
Cone Master
Cone Master
Posts: 10107
Joined: 08 Sep 2006 04:39
Location: Europe

Re: MIDI Volume - How to change default?

Postby Lotesdelere » 08 Mar 2012 07:57

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15323
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: MIDI Volume - How to change default?

Postby Rémi Denis-Courmont » 08 Mar 2012 09:56

Patch welcome.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jabberwock82
New Cone
New Cone
Posts: 6
Joined: 04 Mar 2012 17:25

Re: MIDI Volume - How to change default?

Postby jabberwock82 » 08 Mar 2012 15:11

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15323
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: MIDI Volume - How to change default?

Postby Rémi Denis-Courmont » 12 Mar 2012 21:28

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jabberwock82
New Cone
New Cone
Posts: 6
Joined: 04 Mar 2012 17:25

Re: MIDI Volume - How to change default?

Postby jabberwock82 » 13 Mar 2012 02:18

Good points. Coming up with a patch is probably beyond my capabilities, though. I'll file a bug/enhancement request.

Rémi Denis-Courmont
Developer
Developer
Posts: 15323
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: MIDI Volume - How to change default?

Postby Rémi Denis-Courmont » 13 Mar 2012 19:46

Nevermind, I added a gain setting with 0.8 default in VLC 2.0.1.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jabberwock82
New Cone
New Cone
Posts: 6
Joined: 04 Mar 2012 17:25

Re: MIDI Volume - How to change default?

Postby jabberwock82 » 13 Mar 2012 20:25

Thanks!


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 40 guests