Re: [fluid-dev] Panning with stereo samples

2018-01-06 Thread Marcus Weseloh
Hi Antoine, 2018-01-06 14:20 GMT+01:00 Antoine Schmitt : > Just jumping in this discussion, in case it is useful, there was a > discussion already a few years ago on this topic : > > http://lists.nongnu.org/archive/html/fluid-dev/2012-06/msg00026.html > Thanks! Yes, I've read all those messages

Re: [fluid-dev] Panning with stereo samples

2018-01-06 Thread Antoine Schmitt
Just jumping in this discussion, in case it is useful, there was a discussion already a few years ago on this topic : http://lists.nongnu.org/archive/html/fluid-dev/2012-06/msg00026.html > Le 4 janv. 2018 à 01:06, Marcus W

Re: [fluid-dev] Panning with stereo samples

2018-01-03 Thread Marcus Weseloh
2018-01-02 21:22 GMT+01:00 Tom M. : > I think the cleanest and least hacky implementation would be to use the > modulator functionality by introducing some non-standard > "GEN_CUSTOM_BALANCE" generator. Do we need a default CC8 to > GEN_CUSTOM_BALANCE modulator with an optional setting to switch t

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Marcus Weseloh
Hi Aere, I'm responding publicly to your private message to me, to keep this discussion open and not have unfinished threads dangling on the mailing list. You asked if there are other well-defined controls that you can use, as your drop-down only offers those and not the undefined ones. There are

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Tom M.
> Using the Modulation control with the FluidR3_GM soundfont, causes a > distorted sound for melodic instruments with vibrato. The creator of the > FluidR3_GM soundfont, went with the idea that a sampled vibrato is > better than what you get using the modulation control, so if you use > modulat

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Marcus Weseloh
Hi Aere, having read your document, I now understand what you mean. Ok, you use the currently unused CC 8 in your midi router for different purposes, controlling expression. And you fear that if we implement balance properly now, that you can't use your setup anymore, because CC 8 will now have a

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Aere Greenway
On 01/02/2018 01:22 PM, Tom M. wrote: Concerning the balance control, I'm wondering whether to implement it as a new non-standard generator or rather as a stand-alone control. Any preferences? I think the cleanest and least hacky implementation would be to use the modulator functionality by in

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Marcus Weseloh
Hi Aere, 2018-01-02 21:41 GMT+01:00 Aere Greenway : > Having noticed that Qsynth doesn't act on the CC8 "Balance" control > message (using the FluidR3_GM soundfont), I have used the balance control > to control the relative loudness of a background voice, in relation to the > foreground voice, as

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Aere Greenway
On 01/02/2018 12:41 PM, Marcus Weseloh wrote: 2018-01-02 19:31 GMT+01:00 Tom M. >: > Ok, so instead of completely ignoring CC10 for _LEFT and _RIGHT samples we would fallback to CC8? I would be fine with that as well. Ok, assuming nobody comes forward who thinks

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Marcus Weseloh
2018-01-02 20:41 GMT+01:00 Marcus Weseloh : > Ok, assuming nobody comes forward who thinks this is a bad idea, I'll > draft a pull-request in the near future. > Never mind, I found good arguments against that idea myself. First of all, the SoundFont 2.04 specs say: "If sfSampleType indicates a l

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Tom M.
> Concerning the balance control, I'm wondering whether to implement it as a > new non-standard generator or rather as a stand-alone control. Any > preferences? I think the cleanest and least hacky implementation would be to use the modulator functionality by introducing some non-standard "GEN_

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Marcus Weseloh
2018-01-02 19:31 GMT+01:00 Tom M. : > Ok, so instead of completely ignoring CC10 for _LEFT and _RIGHT samples we would fallback to CC8? I would be fine with that as well. Ok, assuming nobody comes forward who thinks this is a bad idea, I'll draft a pull-request in the near future. Concerning the b

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Tom M.
> If we were to implement the special casing for stereo pairs on the panning > control so that it affects balance instead, the resulting sound would be much > closer to the sound that the composer intended. Ok, so instead of completely ignoring CC10 for _LEFT and _RIGHT samples we would fallbac

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Marcus Weseloh
2018-01-02 17:09 GMT+01:00 Tom M. : > > And what if he uses a MIDI keyboard as input that only has a panning control, but no balance control? > > Setup a midi_router rule? Agreed, that would work. It's very technical and not very user friendly, but it's the right solution for this case. Ok, let m

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Tom M.
> And what if he uses a MIDI keyboard as input that only has a panning control, > but no balance control? Setup a midi_router rule? > So in my opinion [...] the panning control shouldn't affect stereo sample > pairs at all, as they are not "a single sound source". Admittedly an argument that

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Marcus Weseloh
2018-01-02 15:02 GMT+01:00 Tom M. : > Why do you think it's wrong? According to the MIDI spec > > "A Pan Controller [...] determines where a single sound source will be located in a stereo field." > > The "single sound source" is what I understand as "voice", as this is always a "mono" sound source

Re: [fluid-dev] Panning with stereo samples

2018-01-02 Thread Tom M.
> 1. We leave it as is, with the weird and in my opinion wrong behaviour Why do you think it's wrong? According to the MIDI spec "A Pan Controller [...] determines where a single sound source will be located in a stereo field." The "single sound source" is what I understand as "voice", as this

[fluid-dev] Panning with stereo samples

2018-01-02 Thread Marcus Weseloh
Hi all, the panning control (CC 10) currently doesn't really work that well with SoundFonts containing stereo sound (actually with any instrument that has samples with off-center panning). When an instrument is made up of two samples, one panned hard left (-50) and the other hard right (50) and w