Hi Element - just wanted to follow up with this. The reverb setting had no effect. However, I think I've found a bug in the integration code with the FluidSynth library -- so it may have nothing to do with FluidSynth after all. If I find something interesting that is related to FluidSynth, I'll let you know. Again, thank you for all your help with this so far. --Ien
On Thu, May 19, 2016 at 10:25 PM, Element Green <elem...@elementsofsound.org > wrote: > Yeah, that is probably the best way to enable/disable it. I think there > might be a C API call as well. > > Element > > On Thu, May 19, 2016 at 8:21 PM, Ien Cheng <i...@alum.mit.edu> wrote: > >> Thanks, that definitely sounds worth trying. The best (only?) way to turn >> off reverb is via the synth.reverb.active setting? >> >> >> On Thu, May 19, 2016 at 10:17 PM, Element Green < >> elem...@elementsofsound.org> wrote: >> >>> Hmm, reading back over your original problem description, I think the >>> first question should be whether the voice is really continuing or not. It >>> could actually be one of the effects, such as reverb, which is causing the >>> sound to extend on for a long time. Try turning off the reverb and chorus >>> units to see if that "fixes" the problem. Each instrument has its own >>> reverb send calculation, so you might not notice this until an instrument >>> has the reverb setting above a certain level. >>> >>> Element >>> >>> >>> >>> On Thu, May 19, 2016 at 7:36 PM, Ien Cheng <i...@alum.mit.edu> wrote: >>> >>>> Thanks - >>>> >>>> Yeah, I'm not getting any problems with the files in MuseScore, which I >>>> know uses FluidSynth. >>>> >>>> The context I'm getting the problem is in an Android app -- using this >>>> fluidsynth-android >>>> <https://bitbucket.org/kunstmusik/fluidsynth-android> repo. I wonder >>>> if it has something to do with the lower processing power of the phone? >>>> >>>> --Ien >>>> >>>> On Wed, May 18, 2016 at 12:53 PM, Element Green < >>>> elem...@elementsofsound.org> wrote: >>>> >>>>> Hello Ien, >>>>> >>>>> I got your samples you sent me, for reference: >>>>> FluidR3 GM2-2-0-52-Ahh Choir.sf2 >>>>> 8bitsf-0-0-PIANO 1.sf2 >>>>> >>>>> With the choir instrument, the default release on the global >>>>> instrument zone is 3 seconds. The velocity of the key being pressed >>>>> determines the release time of the volume envelope, as set by the Preset >>>>> Zones. From 3 seconds (maximum velocity) to 1.8 seconds (lowest >>>>> velocity). >>>>> >>>>> The 8 bit piano sound has a release of a half a second. >>>>> >>>>> Both of these seem to work as expected (tested in Swami and the >>>>> fluidsynth shell with noteon/noteoff commands). In the problem scenario >>>>> you are talking about, how are you sending notes to FluidSynth? Are you >>>>> playing a MIDI file or pressing keys on a keyboard or something else? >>>>> >>>>> Cheers. >>>>> >>>>> Element >>>>> >>>>> >>>>> On Wed, May 18, 2016 at 10:23 AM, Ien Cheng <i...@alum.mit.edu> wrote: >>>>> >>>>>> HI Element Green! >>>>>> >>>>>> Thanks for your continued help with this. Much appreciated. >>>>>> >>>>>> As requested, attached at two soundfonts showing this problem. >>>>>> >>>>>> Let me know if I can provide anything further to help figure this out! >>>>>> >>>>>> --Ien >>>>>> >>>>>> >>>>>> ---------- Forwarded message ---------- >>>>>> From: Element Green <elem...@elementsofsound.org> >>>>>> Date: Wed, May 18, 2016 at 11:56 AM >>>>>> Subject: Re: [fluid-dev] Problem with certain "loud" soundfonts not >>>>>> stopping after note off >>>>>> To: FluidSynth mailing list <fluid-dev@nongnu.org> >>>>>> >>>>>> >>>>>> Hello Ien, >>>>>> >>>>>> In such a situation I would load up the SoundFont into an editor >>>>>> (such as Swami) and have a look at the release time for the particular >>>>>> instrument you are using. Note that the calculation of the release time >>>>>> is >>>>>> based on the release value of the matching instrument zone multiplied by >>>>>> the release multiplier in the preset. If you could personally send me >>>>>> the >>>>>> SoundFont or let me know how I could obtain it, I would be happy to check >>>>>> this for you (just let me know what which preset and note you are >>>>>> playing). >>>>>> >>>>>> Best regards, >>>>>> >>>>>> Element Green >>>>>> >>>>>> >>>>>> On Wed, May 18, 2016 at 9:35 AM, Ien Cheng <i...@alum.mit.edu> wrote: >>>>>> >>>>>>> Hi Element Green - >>>>>>> >>>>>>> Thanks for your quick reply! >>>>>>> >>>>>>> It could well be something to do with release time. However, the >>>>>>> sound is definitely continuing indefinitely. Perhaps the sounds aren't >>>>>>> trailing off properly to go below the perceptible threshhold? Are there >>>>>>> any >>>>>>> settings I can play with to tune this behavior to solve this problem? >>>>>>> >>>>>>> --Ien >>>>>>> >>>>>>> On Wed, May 18, 2016 at 11:17 AM, Element Green < >>>>>>> elem...@elementsofsound.org> wrote: >>>>>>> >>>>>>>> Hello Ien, >>>>>>>> >>>>>>>> FluidSynth does some pre-calculations on sample data to determine >>>>>>>> when the sound becomes "imperceptible" ("reaches the noise floor"). >>>>>>>> I'm >>>>>>>> not really familiar with this code and have often wondered how well it >>>>>>>> works. For example, in the case of Swami, I don't believe I'm >>>>>>>> pre-calculating these values and I've questioned whether this is >>>>>>>> working >>>>>>>> right (in the case of Swami's use of FluidSynth at least). At any >>>>>>>> rate, if >>>>>>>> an instrument has a long release time, FluidSynth will try to optimize >>>>>>>> things to turn off the voice when it is no longer "perceptible". It >>>>>>>> will >>>>>>>> also prioritize voices to terminate if it runs out of the allocated >>>>>>>> polyphony. It seems you are saying that a sound continues past the >>>>>>>> note >>>>>>>> off though, which likely has to do with the instrument's release time. >>>>>>>> Are >>>>>>>> you certain that FluidSynth is maintaining the voice past the end of >>>>>>>> the >>>>>>>> designated release interval? >>>>>>>> >>>>>>>> Best regards, >>>>>>>> >>>>>>>> Element Green >>>>>>>> >>>>>>>> On Wed, May 18, 2016 at 9:07 AM, Ien Cheng <i...@alum.mit.edu> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Hi everyone - >>>>>>>>> >>>>>>>>> I'm seeing an odd problem where the synth is not stopping the >>>>>>>>> sound after note off with certain "loud" soundfonts. Specifically, >>>>>>>>> with the >>>>>>>>> standard GM grand piano soundfont, everything works great, notes on >>>>>>>>> and >>>>>>>>> notes off as expected. >>>>>>>>> >>>>>>>>> Switch to a soundfont that has a sharper or fuller sound (like a >>>>>>>>> 8bit arcade sound or a full choral ahh sound) and the synth doesn't >>>>>>>>> turn >>>>>>>>> off the notes -- or it sounds like the echo or tail of the sound just >>>>>>>>> continues indefinitely even after the note off. >>>>>>>>> >>>>>>>>> I notice that if I reduce the gain, the problem goes away. >>>>>>>>> >>>>>>>>> Is this some kind of flooding or other problem? >>>>>>>>> >>>>>>>>> Apologies if I'm not asking correctly or with the right >>>>>>>>> terminology! Any help or tips appreciated. >>>>>>>>> >>>>>>>>> --Ien >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> fluid-dev mailing list >>>>>>>>> fluid-dev@nongnu.org >>>>>>>>> https://lists.nongnu.org/mailman/listinfo/fluid-dev >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> fluid-dev mailing list >>>>>>>> fluid-dev@nongnu.org >>>>>>>> https://lists.nongnu.org/mailman/listinfo/fluid-dev >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> fluid-dev mailing list >>>>>>> fluid-dev@nongnu.org >>>>>>> https://lists.nongnu.org/mailman/listinfo/fluid-dev >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> fluid-dev mailing list >>>>>> fluid-dev@nongnu.org >>>>>> https://lists.nongnu.org/mailman/listinfo/fluid-dev >>>>>> >>>>>> >>>>>> >>>>> >>>> >>> >> >
_______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/fluid-dev