fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] Getting severe clicking/static with FluidSynth (on Andro


From: Ien Cheng
Subject: Re: [fluid-dev] Getting severe clicking/static with FluidSynth (on Android)
Date: Wed, 1 Feb 2017 08:34:21 -0500

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" <address@hidden> 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" <address@hidden>
> A : "FluidSynth mailing list" <address@hidden>
> Copie à : "Ceresa Jean-Jacques" <address@hidden>
> 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 <address@hidden> 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 <address@hidden> 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" <address@hidden>
> > A : "FluidSynth mailing list" <address@hidden>
> > 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 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

> >
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
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>
>

> _______________________________________________
> fluid-dev mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>
>

>

> _______________________________________________
> fluid-dev mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>
>

>

_______________________________________________
fluid-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fluid-dev


reply via email to

[Prev in Thread] Current Thread [Next in Thread]