Hi again, I thought it might be helpful to add more doc on the shelf shape (Bode stick-diagram style). See filter.lib at "lowshelf" for details. There is also a new convenience function
lowshelf_other_freq(N, L0, fx) = db2linear(linear2db(fx) + L0/N); which gives the "other" corner frequency besides fx. (The first corner frequency is fx when L0>0 but fx the second corner frequency when L0<0.) Please feel free to suggest a shelf API that is less confusing! - Julius At 12:37 PM 12/19/2013, Julius Smith wrote: >Hi Jonatan, > >The current implementation of shelf filters is simply as two-channel >Butterworth filter-banks in which one band is unity gain. The >filter transition frequencies in filterbank are simple -3 dB >frequencies at the band edges. When you ask for a shelf level of 0 >dB, the transition frequency should be at the midpoint of the two >bands by symmetry, but it will then drift one way or another as the >shelf level is changed. > >It would make sense to fix the shelf gain level and design to a >specific midpoint transition frequency. The filter poles could even >move dynamically to maintain this relationship. However, this is >not the way it currently works. > >You can predict the midpoint frequency using a Bode plot as LLmid = >LLfreq + (LHfreq-LLfreq) / 2, where L* means log(*). The transition >shape is close to -6 dB per octave per pole, but all you need to >know for midpoint prediction is that the shape is substantially >linear on a log-log plot of the magnitude frequency response (aka Bode plot). > >- Julius > >At 05:14 AM 12/19/2013, Jonatan Liljedahl wrote: >>When looking at the spectral output of noise filtered through the >>low_shelf and high_shelf filters from filter.lib, it seems the center >>frequency does not correspond. However, using >> >>lowshelf(3, Lgain, Lfreq*1.5) : highshelf(3,Hgain,Hfreq/1.5) >> >>gives me more accurate results. The given frequency is in the center >>of the slope. >> >>Does this make sense? Is there a more accurate factor than 1.5? >> >>Cheers >>-- >>/Jonatan >>http://kymatica.com >> >>------------------------------------------------------------------------------ >>Rapidly troubleshoot problems before they affect your business. Most IT >>organizations don't have a clear picture of how application performance >>affects their revenue. With AppDynamics, you get 100% visibility into your >>Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >>AppDynamics Pro! >>http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>_______________________________________________ >>Faudiostream-users mailing list >>[email protected] >>https://lists.sourceforge.net/lists/listinfo/faudiostream-users > > >Julius O. Smith III <[email protected]> >Professor of Music and, by courtesy, Electrical Engineering >CCRMA, Stanford University >http://ccrma.stanford.edu/~jos/ Julius O. Smith III <[email protected]> Professor of Music and, by courtesy, Electrical Engineering CCRMA, Stanford University http://ccrma.stanford.edu/~jos/ ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Faudiostream-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/faudiostream-users
