Thanks all for this great info.

One more general question -- is there any way to programmatically detect
when there is static, clicks, pops, or other kinds of unintended audio
artifacts due to CPU load or other problems?

I'm going to instrument the thread that is running FluidSynth to get a
cycle time or frames per second rate. Other ideas welcome.

The issue is we are getting different behavior on different Android devices
so it would be very helpful to be able to detect problems programmatically.

Thanks, Ien

On Jan 31, 2017 12:53 PM, "Ceresa Jean-Jacques" <
jean-jacques.cer...@orange.fr> wrote:

> Hello Ien,
>
>
>
> In conjonction with the informations given by Element (i.e  "high cpu
> load"), it is important to note that
>
> "reverb" and "chorus" processing effects consume cpu time. For example the
> "reverb load" is about 4 times than
>
> a simple "voice load".
>
>
>
> The following commands turn off effects processing.
>
> >reverb off
>
> >chorus off
>
>
>
> regards
>
> jean-jacques
>
>
>
>
>
>
>
> > Message du 31/01/17 17:46
> > De : "Element Green" <elem...@elementsofsound.org>
> > A : "FluidSynth mailing list" <fluid-dev@nongnu.org>
> > Copie à : "Ceresa Jean-Jacques" <jean-jacques.cer...@orange.fr>
> > Objet : Re: [fluid-dev] Getting severe clicking/static with FluidSynth
> (on Android)
> >
> >
> Hello Ien,
>
> >
> This sounds like the typical symptoms of running out of CPU.  Checking the
> CPU load would easily confirm this.  One question I have is if your
> hardware platform has a floating point unit.  Without that, FluidSynth will
> run pretty inefficiently.  This also can relate to how FluidSynth was
> built, as far as wait floating point support it is using.  For example, you
> could have a hardware floating point unit, but if FluidSynth is not built
> to take advantage of it because it wasn't built with it enabled, then its
> the same as not having one.
>
> >
> If all that checks out.  Then perhaps there are more voices being
> synthesized simultaneously than the system can handle.  This can happen if
> there are too many notes being played or if the instruments have long
> release times.  This can be adjusted by setting the polyphony amount to
> something which your system can handle.  When the number of voices exceeds
> this number, the least perceptible notes will be terminated.
>
> >
> I hope that helps.
>
> >
> Best regards,
>
> >
> Element Green
>
> >
>
> >
> On Mon, Jan 30, 2017 at 5:15 PM, Ien Cheng <i...@alum.mit.edu> wrote:
> >
>>
>> Thanks Ceresa, I will try that. Any reason why a high gain would be fine
>> for the first 15 seconds and then start to deteriorate? (Asking to help
>> myself understand how it all works...) --Ien
>>
>> >
>> On Mon, Jan 30, 2017 at 7:12 PM, Ceresa Jean-Jacques <
>> jean-jacques.cer...@orange.fr> wrote:
>> >
>>>
>>> > Hi, Ien
>>>
>>> >
>>>
>>> > After a quick glance on the recording please try with a lower gain
>>> value.
>>>
>>> > You can set the gain value using the command "gain".
>>>
>>> > Example:
>>>
>>> > > gain 0.5
>>>
>>> > or
>>>
>>> > > gain 0.2
>>>
>>> >
>>>
>>> > regards.
>>>
>>> >
>>>
>>> > jjc
>>>
>>> >
>>>
>>> > Message du 30/01/17 16:03
>>> > > De : "Ien Cheng" <i...@alum.mit.edu>
>>> > > A : "FluidSynth mailing list" <fluid-dev@nongnu.org>
>>> > > Copie à :
>>> > > Objet : [fluid-dev] Getting severe clicking/static with FluidSynth
>>> (on Android)
>>>
>>> > >
>>> > >
>>> Hi all,
>>>
>>> > >
>>> I'm using the synth to play a piece of music with a series of note
>>> on/off commands, using a harp soundfont. This is on an Android phone using 
>>> this
>>> Android wrapper <https://bitbucket.org/kunstmusik/fluidsynth-android>
>>> for FluidSynth.
>>>
>>> > >
>>> It starts off great, with clean sound, but after around 15, there starts
>>> to be clipping/clicking/static sounds which quickly worsen to the point of
>>> being unusable. Here is a recording <https://clyp.it/x3pkmnvy>.
>>>
>>> > >
>>> I'm hoping this is a common problem due to some kind of mistake with the
>>> settings. Any hints or help on how to solve this would be much 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

Reply via email to