[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fluid-dev] Multiple Synthesizers
From: |
Garth Hjelte |
Subject: |
Re: [fluid-dev] Multiple Synthesizers |
Date: |
Mon, 29 Sep 2014 09:43:15 -0500 |
At 01:28 AM 9/29/2014, you wrote:
>> Can you have different Fluidsynth Synthesizers open at one time?
>> If I could make another synthesizer, then I'd have more room. Is that doable?
>In general, yes. You can certainly make several fluid_synth_t objects
>and they will just work independently of each other. Each one will have
>a separate reverb and chorus engine, e g.
OK, great.
>If you want to mix output from several fluid_synth_t into the same audio
>driver, you will have to do this yourself. Use the
>new_fluid_audio_driver2 call, and from that callback, call
>fluid_synth_write_* for all of the synths. (Note that the callback will
>be called from a real-time priority thread.)
I don't need to technically "mix" simultaneous audio, I only need more Bank
slots than 128, technically. So for example say I have 70 SoundFonts loaded
(which in my case would take up 70 Bank slots), and then the user wants to play
a Preset from a totally full SoundFont, and that Preset was in the 60th Bank.
Loading that SoundFont would be fine in one fluid_synth_t but the 130th bank
would be inaccessible (or would it? If it would be, then my other objects would
be affected). The solution would be to load the SoundFont into a new
fluid_synth_t object, thus not affecting my other loads.
So back to considering "mix output", I am using a prebuilt DLL and dylib and I
don't use fluid_synth_write_* - the output just goes right into the driver set
via new_fluid_audio_driver. I don't go that deep. But I'm not mixing both
synths, they never play at the same time, but in a way I am. Will creating more
than one synth create a conflict?
Garth Hjelte
Sampler User