Hi, Oleg. :-)

On Fri, 18 Dec 2020 at 19:10, Oleg Nesterov <o...@redhat.com> wrote:

> Hi Dario,
>
> this motivated me to look at your library again ;)
>

I hope you found a couple of good things, and please do let me know if you
see anything that can be improved or fixed.


>
> On 12/18, Alik Rustamoff wrote:
> >
> > Hi, Dario, I, btw, ended up using blti filter from your edge of chaos
> > library. Good collection. No noises just does the job.
>
> Then I think that fi.svf.hp() should work equally well. Can you try it?
> See
> https://github.com/grame-cncm/faustlibraries/blob/master/filters.lib#L2611
>
> And this probably means that Dario was right, and the problem was caused
> by quantisation.
>
> Because IIUC in theory (and unless you modulate HPFfreq) these 3 filters
>
>         fi.highpass(2, f)
>         fi.svf.hp(f, 1/sqrt(2))
>         svf2blti(f, 1/sqrt(2), 1) : ba.selectn(10,1)
>
> should have the same transfer function / impulse response.
>

The IR of the filters with -double is the following, with a 20 Hz CF:

Darios-MBP:edgeofchaos dariosanfilippo1$ ./test_hp -sr 96000 -s 9600 -n 1

channel 1, channel 2, channel 3
-1.4107325142354377e-11, -1.4107325144178732e-11, -1.4107325144183914e-11

I thought that our SVF filters might have had exactly the same
calculations, but there's still some difference in the response. I used
Pirkle, which text did you use?

If I run faustbench -double on your filter and mine, I get the following
results:

yours: Best value is : 1176.06 with -double -vec -fun -lv 0 -vs 128
mine: Best value is : 1324.58 with -double -vec -fun -lv 0 -vs 64

If I'm not wrong, a higher value indicates a faster DSP, but that's for
some specific settings.

I see that the "DSP size" indicated in the benchmark is always the same for
both filters; what does that indicate? I don't think it's the number of
calculations as it changed when using -single or -double for the bench test.

Ciao,
Dario



> Oleg.
>
>

-- 
Dr Dario Sanfilippo
http://dariosanfilippo.com
_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to