Csound Csound-dev Csound-tekno Search About

[Csnd] FFT of k-rate signal

Date2021-01-29 10:20
FromAndreas Bergsland
Subject[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

 


Date2021-01-29 13:19
FromOeyvind Brandtsegg
SubjectRe: [Csnd] FFT of k-rate signal

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