I thought that it would be useful for something like what you see below. Those are some of the frequency-dependent coefficients of the ISO226 equal-loudness curves, but really I mostly wanted to better understand pattern matching.
Cheers, Dario import("stdfaust.lib"); ifthenelse(cond,then,else) = ceil(cond) , else , then : select2; ifthenelseif((c, t, e)) = ifthenelse(c, t, ifthenelseif(e)); ifthenelseif(e) = e; a_f(f) = ifthenelseif(( f < 25, .532, f < 31.5, .506, f < 40, .480, f < 50, .455, f < 63, .432, f < 80, .409, f < 100, .387, f < 125, .367, f < 160, .349, f < 200, .330, f < 250, .315, f < 315, .301, f < 400, .288, f < 500, .286, f < 630, .267, f < 800, .259, f < 1000, .253, .250)); process = a_f(hslider("f", 0, 0, 1000, 1)); On Wed, 20 May 2020 at 15:08, Oleg Nesterov <o...@redhat.com> wrote: > On 05/20, Dario Sanfilippo wrote: > > > > Was there already something like that > > not that I'm aware of, > > > or was there a simpler way of doing > > it? > > Sorry, I don't understand... doing what?? > > why do you want this helper? > > Oleg. > >
_______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users