Re: [Faudiostream-users] Median filter

2022-01-09 Thread Alik Rustamoff
Hi Julius and Dario, Thank you for your suggestions, took me a little to test because in online faust ide things sound differently for some reason. At first I was thinking about sorting algorithms but didn't know they were just implemented, until Dario's example. Do I get it right that we can not

Re: [Faudiostream-users] Median filter

2022-01-09 Thread Julius Smith
You should be able to subtract median3 from medianFilter(3) in Faust and get 0 as the optimized output - Julius On Sun, Jan 9, 2022 at 1:49 AM Dario Sanfilippo wrote: > Hello, Julius and Alik. > > I'm new to median filters but we should be able to use the recently added > sorting algorithm for

Re: [Faudiostream-users] Median filter

2022-01-09 Thread Dario Sanfilippo
Hello, Julius and Alik. I'm new to median filters but we should be able to use the recently added sorting algorithm for arbitrary window lenghts; does the following look correct to you? import("stdfaust.lib"); windowLen = 11; // it should be odd for symmetry medianFilter(L, x) = (x <: par(i, L,

Re: [Faudiostream-users] Median filter

2022-01-09 Thread Julius Smith
Hi Alik, This came up for me at some point: // Test order 3 median smoother: median3(a,b,c) = select3(s,b,a,c) with { cf(a,b) = 2*(a wrote: > What is the way to make a median filter in faust? > > ___ > Faudiostream-users mailing list >

[Faudiostream-users] Median filter

2022-01-09 Thread Alik Rustamoff
What is the way to make a median filter in faust? ___ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users