| I posted too soon.
on further consideration, if you want amplitude following with
smoothing, putting the high pass before the low pass probably makes
more sense, and depending on the slope characteristics of the filters
being used, you might want to experiment with the cutoff frequencies
to trade off tightness and stability
going back to the original question, there's likely something to the
FIR / IIR combo that's escaping me at the moment, and do consider that
most filters are made of chained / sequenced single or double pole FIR
or IIR. I think filter2 or zfilter2 might be a good building block
depending on your comfort with the math. I've a vague idea that some
professionals will use an engineering tool like matlab to design
filter coefficients then plug them into an opcode when they find the
set that work.
On Thu, Jul 16, 2020 at 7:50 AM Justin Smith wrote:
>
> my understanding is that most of the complexity of FFT is in
> decomposing the filters so that partial calculated results can be
> reused
>
> if you only care about one frequency, a band pass suffices, and the
> simple (AKA does the least CPU work) version of that is a low-pass
> followed by a high-pass, with a shared cut-off band
>
> On Thu, Jul 16, 2020 at 2:00 AM Jeanette C. wrote:
> >
> > Hi Jana!
> > Jul 16 2020, Jana Hübenthal has written:
> > ...
> > > Why not use a "normal" bandpass filter, feeding its output into an amplitude follower?
> > That was an idea and that approach was used in telecommunications.
> > >
> > > That would be my approach, from a practical view. Maybe you are more on an academic road, so the real Goertzel may be the one to try.
> > It's not exactly an academic project, but curiosity and the thought that
> > this algorithm in practise should be very efficient and "simple", for a
> > given value of simplicity. :) Otherwise it wouldn't be usable in "slow"
> > embedded hardware.
> >
> > If standard Csound filters can't be used in an easy manner, I probably
> > will go for the filterbank approach.
> > ...
> >
> > Best wishes,
> >
> > Jeanette
> >
> > --
> > * Website: http://juliencoder.de - for summer is a state of sound
> > * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
> > * SoundCloud: https://soundcloud.com/jeanette_c
> > * Twitter: https://twitter.com/jeanette_c_s
> > * Audiobombs: https://www.audiobombs.com/users/jeanette_c
> > * GitHub: https://github.com/jeanette-c
> >
> > There's no time to loose
> > And next week,
> > You might not see me here <3
> > (Britney Spears)
> >
> > Csound mailing list
> > Csound@listserv.heanet.ie
> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> > Send bugs reports to
> > https://github.com/csound/csound/issues
> > Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |