Csound Csound-dev Csound-tekno Search About

Crude spectrum analysis with FFT

Date2015-08-30 15:41
From"F. Silvain"
SubjectCrude spectrum analysis with FFT
Hey hey everyone,
I wonder, is there already a UDO, that does spectrum analysis with textual 
output?

My use case: I have mixed a song and would now like to see, if I have "wholes" 
in the frequency spectrum.

My idea: use FFT and analyse the separate bins for amplitude peaks and write 
that to the console or a textfile.

Is the idea feasable, is there existing code I could start from? If not, wht 
pitfall should I avoid in this approach? i.e. analyse too many bands, too few? 
Which methods are most adequate? I suppose mean and peak values. Anything 
else, that would yield practical information?

Thank you for staying with me. Any help is very much appreciated!

Ta-ta
----
Ffanci
* Homepage: https://freeshell.de/~silvain
* Twitter:  http://twitter.com/ffanci_silvain
* GitHub:   https://github.com/fsilvain

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-30 19:50
FromVictor Lazzarini
SubjectRe: Crude spectrum analysis with FFT
What kind of “wholes” are you looking for. It is it likely that the magnitudes of the spectral
analysis will give you plenty of wholes, in between the peaks. 
Maybe you are thinking more in terms of the spectral envelope, which is a smooth line
connecting the peaks?

========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 30 Aug 2015, at 15:41, F. Silvain  wrote:
> 
> Hey hey everyone,
> I wonder, is there already a UDO, that does spectrum analysis with textual 
> output?
> 
> My use case: I have mixed a song and would now like to see, if I have "wholes" 
> in the frequency spectrum.
> 
> My idea: use FFT and analyse the separate bins for amplitude peaks and write 
> that to the console or a textfile.
> 
> Is the idea feasable, is there existing code I could start from? If not, wht 
> pitfall should I avoid in this approach? i.e. analyse too many bands, too few? 
> Which methods are most adequate? I suppose mean and peak values. Anything 
> else, that would yield practical information?
> 
> Thank you for staying with me. Any help is very much appreciated!
> 
> Ta-ta
> ----
> Ffanci
> * Homepage: https://freeshell.de/~silvain
> * Twitter:  http://twitter.com/ffanci_silvain
> * GitHub:   https://github.com/fsilvain
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-30 19:59
FromVictor Lazzarini
SubjectRe: Crude spectrum analysis with FFT
Ops, but is it a hole you are looking for? 
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 30 Aug 2015, at 19:50, Victor Lazzarini  wrote:
> 
> What kind of “wholes” are you looking for. It is it likely that the magnitudes of the spectral
> analysis will give you plenty of wholes, in between the peaks. 
> Maybe you are thinking more in terms of the spectral envelope, which is a smooth line
> connecting the peaks?
> 
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 30 Aug 2015, at 15:41, F. Silvain  wrote:
>> 
>> Hey hey everyone,
>> I wonder, is there already a UDO, that does spectrum analysis with textual 
>> output?
>> 
>> My use case: I have mixed a song and would now like to see, if I have "wholes" 
>> in the frequency spectrum.
>> 
>> My idea: use FFT and analyse the separate bins for amplitude peaks and write 
>> that to the console or a textfile.
>> 
>> Is the idea feasable, is there existing code I could start from? If not, wht 
>> pitfall should I avoid in this approach? i.e. analyse too many bands, too few? 
>> Which methods are most adequate? I suppose mean and peak values. Anything 
>> else, that would yield practical information?
>> 
>> Thank you for staying with me. Any help is very much appreciated!
>> 
>> Ta-ta
>> ----
>> Ffanci
>> * Homepage: https://freeshell.de/~silvain
>> * Twitter:  http://twitter.com/ffanci_silvain
>> * GitHub:   https://github.com/fsilvain
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-31 12:17
From"F. Silvain"
SubjectRe: Crude spectrum analysis with FFT
Victor Lazzarini, Aug 30 2015:

> Ops, but is it a hole you are looking for?
Oh yes, of course it was. One of my favourite mistakes even at school. :)

I'm looking for frequency bands, which could do with a little extra. Making use of unexplored headroom...
...

Ta-ta
----
Ffanci
* Homepage: https://freeshell.de/~silvain
* Twitter:  http://twitter.com/ffanci_silvain
* GitHub:   https://github.com/fsilvain

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-31 12:26
FromVictor Lazzarini
SubjectRe: Crude spectrum analysis with FFT
If you are looking for magnitudes below a certain threshold, you could
use pvsanal & pvsftr, then read the table to check it.

========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 31 Aug 2015, at 12:17, F. Silvain  wrote:
> 
> Victor Lazzarini, Aug 30 2015:
> 
>> Ops, but is it a hole you are looking for?
> Oh yes, of course it was. One of my favourite mistakes even at school. :)
> 
> I'm looking for frequency bands, which could do with a little extra. Making use of unexplored headroom...
> ...
> 
> Ta-ta
> ----
> Ffanci
> * Homepage: https://freeshell.de/~silvain
> * Twitter:  http://twitter.com/ffanci_silvain
> * GitHub:   https://github.com/fsilvain
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-31 12:30
FromVictor Lazzarini
SubjectRe: Crude spectrum analysis with FFT
I meant pvsanal & pvsftw
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 31 Aug 2015, at 12:26, Victor Lazzarini  wrote:
> 
> If you are looking for magnitudes below a certain threshold, you could
> use pvsanal & pvsftr, then read the table to check it.
> 
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 31 Aug 2015, at 12:17, F. Silvain  wrote:
>> 
>> Victor Lazzarini, Aug 30 2015:
>> 
>>> Ops, but is it a hole you are looking for?
>> Oh yes, of course it was. One of my favourite mistakes even at school. :)
>> 
>> I'm looking for frequency bands, which could do with a little extra. Making use of unexplored headroom...
>> ...
>> 
>> Ta-ta
>> ----
>> Ffanci
>> * Homepage: https://freeshell.de/~silvain
>> * Twitter:  http://twitter.com/ffanci_silvain
>> * GitHub:   https://github.com/fsilvain
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-31 13:17
From"F. Silvain"
SubjectRe: Crude spectrum analysis with FFT
Victor Lazzarini, Aug 31 2015:

> I meant pvsanal & pvsftw
Thank you, I will give this a go.

Would anyone have practical hints for the analysis? A factor or term to multiply somewhere to get more human readable results? Or anything of that sort?

Thank you.
...

Ta-ta
----
Ffanci
* Homepage: https://freeshell.de/~silvain
* Twitter:  http://twitter.com/ffanci_silvain
* GitHub:   https://github.com/fsilvain

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here