Closed spessasus closed 1 month ago
@mawe42 I think this is the problem you observed 6 years ago which led to the creation of the custom balance modulator: https://lists.nongnu.org/archive/html/fluid-dev/2018-01/msg00006.html
Opinions?
@mawe42 I think this is the problem you observed 6 years ago which led to the creation of the custom balance modulator: https://lists.nongnu.org/archive/html/fluid-dev/2018-01/msg00006.html
Opinions?
Hm... interesting. I will have time to look at this in more detail over the weekend.
Nevermind, the pan amount is correct. That is, using 1000 leads to the pan being too extreme: see this for detailed info by Christian. Closing this!
FluidSynth version
Execute
fluidsynth --version
and provide the output. 2.3.6Describe the bug
Provide a clear and concise description of the current situation, e.g. how the bug manifests.
Sfspec24.pdf
section 8.4.6:Yet https://github.com/FluidSynth/fluidsynth/blob/66adce6ad9772dd7285370d3f78b6824b907c0e8/src/synth/fluid_synth.c#L396-L409
Spec says 1000, so why is it set to 500?
Amount of 1000 does not mean that the full range of the modulator is 1000, with 0 being -500, 64=0 and 127=500. The range is twice that because of bipolar transform: 0=-1000 64=0 127=1000, like with the pitch modulator.
With the current behavior, you can clearly notice this:
Stereo Square
sounds like it's a bit on the left but not fully.Mono Square
fully goes to the left.This is because, amount of 1000 always forces the sample to be on the desired channel. That is:
500 + (-1000) = -500
which is left.-500 + 1000 = 500
which is right.Where with amount being 500 like fluid sets:
500 + (-500) = 0
which is the middle. That is not what we want.-500 + 500 = 0
which is the middle. That is not what we want.I think this is why creative chose 1000 and not 500.
Expected behavior
Provide a clear and concise description of what you expected to happen. It should be 1000 and both of the attached soundfont's presets should pan in the same way.
Steps to reproduce
Please explain the steps required to duplicate the issue, esp. if you are able to provide a sample application. E.g. how to start fluidsynth, what shell commands to enter, what midi events to send, etc.
Additional context
If you are able to illustrate the bug with an example, please provide simple source code below or as attached file. List any other information that is relevant to your issue, e.g. stack traces, related issues, build logs, suggestions on how to fix, links to related discussions at fluid-dev, etc. None