[Csnd] FFT of k-rate signal

Hi

I want to do spectral analysis of a k-rate signal giving me amplitude and frequency value pairs in spectral bands, like a phase vocoder, but only in a certain low-frequency range, e.g. 0-250Hz.

I could of course upsamp and do a pvanal of that, and then just disregard everything above the range I am interested in.

But that seems like a waste of CPU.

Is there a way to do this, e.g. using the fft family of opcodes which operates on arrays?

Best, Andreas

Maybe this could be used?
https://csound.com/docs/manual/rfft.html

fre. 29. jan. 2021 kl. 11:20 skrev Andreas Bergsland <andreas.bergsland@ntnu.no>:

Hi

I want to do spectral analysis of a k-rate signal giving me amplitude and frequency value pairs in spectral bands, like a phase vocoder, but only in a certain low-frequency range, e.g. 0-250Hz.

I could of course upsamp and do a pvanal of that, and then just disregard everything above the range I am interested in.

But that seems like a waste of CPU.

Is there a way to do this, e.g. using the fft family of opcodes which operates on arrays?

Best, Andreas

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