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

Re: [fluid-dev] Channel handling

2018-01-02 Thread Tom M.
> I think what would be best is having each note class on its own channel. fluidsynth only allows to render midi channel(s) to dedicated audio channel(s), the so called multichannel-rendering. To me your problem of note-to-audio-channel-rendering sounds very custom and I cannot think of a way

Re: [fluid-dev] Channel handling

2018-01-02 Thread Aaron Laws
On Tue, Jan 2, 2018 at 7:59 AM, Marcus Weseloh wrote: > Hi Aaron, > > 2018-01-01 20:30 GMT+01:00 Aaron Laws : > >> If a user has 12 channels, this is simple, but I for one don't plan on >> having 12 channels of audio. If, for instance, I only have four channels, >> if I'm only playing four note-c

Re: [fluid-dev] Channel handling

2018-01-02 Thread Marcus Weseloh
Hi Aaron, 2018-01-01 20:30 GMT+01:00 Aaron Laws : > If a user has 12 channels, this is simple, but I for one don't plan on > having 12 channels of audio. If, for instance, I only have four channels, > if I'm only playing four note-classes at a time, each channel should be > occupied. If I add a f

[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

Re: [fluid-dev] Channel handling

2018-01-02 Thread Aaron Laws
On Tue, Jan 2, 2018 at 1:25 AM, Jim Henry wrote: > Hi Aaron, > > > > If you haven’t already, you should look at the Miditzer and the jOrgan > projects. Both are organ simulators the use FluidSynth to produce sound. > The Miditzer is strictly a Wurlitzer theatre organ simulator while jOrgan > is a