Hi Andrews, please cc the fluid dev list when replying : some people out there will have better ideas than me. Your solution should work. But you will hit the channel number limit quite fast (64 channels by default I think). And I don't see any other solution... Le 16 déc. 08 à 12:27, Andrew R Kelley a écrit : Antoine,
I came up with a solution of cycling through channels for each new note. I'm not sure if this good practice or not, and I don't even know how to find out the maximum channel that will work. But essentially I call noteon in channel 1, panned to the left, and then when I want to play another note panned to the right, I play it in channel 2. Let me know if there is a better solution!
Thanks, Andrew
On Tue, Dec 16, 2008 at 3:54 AM, Andrew R Kelley <address@hidden> wrote: Antoine,
The problem with that method is that if you play a note, which is panned completely to the left, and then soon after play a note which is panned completely to the right, using fluid_synth_cc will cause the first note to pan to the right, which is undesirable. Does that make sense? I want to be able to play two notes almost simultaneously and have them panned to different locations. Thanks, AndrewOn Tue, Dec 16, 2008 at 3:21 AM, Antoine Schmitt <address@hidden> wrote:
Hello Andrew, I think that there is already no problem to set the pan on a channel and then issue a noteon (which will reflect the given pan).
short ctrl = 0x0A; // PAN_MSB fluid_synth_cc(synth, chan, ctrl, pan); fluid_synth_noteon(synth, chan, key, vel);
Or didn't I understand your question ? Le 16 déc. 08 à 11:03, Andrew R Kelley a écrit : Hi, I am a developer for LMMS ( lmms.sourceforge.net) and we are using fluidsynth for SF2 support. It works great. I have a question. Is it possible to send fluidsynth a panning value when a note is turned on and have fluidsynth return audio that is panned to the amount specified? If not, would you accept a patch to fluidsynth adding this feature? Thanks, Andrew Kelley _______________________________________________ fluid-dev mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/fluid-dev
_______________________________________________ fluid-dev mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/fluid-dev
|