Csound Csound-dev Csound-tekno Search About

[Csnd] FFT output to table

Date2013-12-04 18:50
FromRoger Kelly
Subject[Csnd] FFT output to table
Is there anyway to use some opcode similiar to dispfft on a wavefile and keep the values in a Csound table or get the to a file?

Basically, I want to use Csound to do get the FFT bins of frequencies.


Date2013-12-04 22:41
FromOeyvind Brandtsegg
SubjectRe: [Csnd] FFT output to table
Could it be pvsftw you're looking for?
best
Oeyvind

2013/12/4 Roger Kelly :
> Is there anyway to use some opcode similiar to dispfft on a wavefile and
> keep the values in a Csound table or get the to a file?
>
> Basically, I want to use Csound to do get the FFT bins of frequencies.
>



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

Date2013-12-05 00:45
FromRoger Kelly
SubjectRe: [Csnd] FFT output to table
Yes I think your advice is correct.  I should be able to do the below sequence:
This sequence of op codes would give me the FFT bin into a table from a wav file. Does this sequence of opcodes seem right?
gifil     ftgen     0, 0, 0, 1, "fox.wav", 0, 0, 1
fsig      pvstanal  p4, 1, p5, gifil, p6, p7
kflag	pvsftw	fsig,ifn






On Wed, Dec 4, 2013 at 4:41 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
Could it be pvsftw you're looking for?
best
Oeyvind

2013/12/4 Roger Kelly <loraxman@gmail.com>:
> Is there anyway to use some opcode similiar to dispfft on a wavefile and
> keep the values in a Csound table or get the to a file?
>
> Basically, I want to use Csound to do get the FFT bins of frequencies.
>



--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2013-12-05 09:26
FromOeyvind Brandtsegg
SubjectRe: [Csnd] FFT output to table
The sequence look fine, do remember that the table contents will be
continuously updated with a new set of bins (at the f-rate, according
to your analysis parameters)
.
If you want to export the table, you might want to export only for a
specific location in your sound? Otherwise you will have a table file
for each fft frame and that's a lot of data (may or may not be a
problem)

Oeyvind

2013/12/5 Roger Kelly :
> Yes I think your advice is correct.  I should be able to do the below
> sequence:
>
> This sequence of op codes would give me the FFT bin into a table from a wav
> file. Does this sequence of opcodes seem right?
>
> gifil     ftgen     0, 0, 0, 1, "fox.wav", 0, 0, 1
> fsig      pvstanal  p4, 1, p5, gifil, p6, p7
>
> kflag	pvsftw	fsig,ifn
>
>
>
>
>
>
>
>
> On Wed, Dec 4, 2013 at 4:41 PM, Oeyvind Brandtsegg
>  wrote:
>>
>> Could it be pvsftw you're looking for?
>> best
>> Oeyvind
>>
>> 2013/12/4 Roger Kelly :
>> > Is there anyway to use some opcode similiar to dispfft on a wavefile and
>> > keep the values in a Csound table or get the to a file?
>> >
>> > Basically, I want to use Csound to do get the FFT bins of frequencies.
>> >
>>
>>
>>
>> --
>>
>> Oeyvind Brandtsegg
>> Professor of Music Technology
>> NTNU
>> 7491 Trondheim
>> Norway
>> Cell: +47 92 203 205
>>
>> http://flyndresang.no/
>> http://www.partikkelaudio.com/
>> http://soundcloud.com/brandtsegg
>> http://soundcloud.com/t-emp
>>
>>
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>             https://sourceforge.net/p/csound/tickets/
>> csound5:
>>             https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

Date2013-12-05 14:46
Fromjoachim heintz
SubjectRe: [Csnd] FFT output to table
if you are working with csound6, i'd recommend to use arrays instead 
tables. victor has written the pvs2array / pvsfromarray opcodes. there 
is a description in the flossmanuals array chapter, and an example:
http://en.flossmanuals.net/csound/arrays
EXAMPLE 03E12_pvs_to_from_array.csd

	joachim


Am 05.12.2013 01:45, schrieb Roger Kelly:
> Yes I think your advice is correct.  I should be able to do the below sequence:
>
> This sequence of op codes would give me the FFT bin into a table from a wav file. Does this sequence of opcodes seem right?
>
> gifilftgen      0, 0, 0, 1, "fox.wav", 0, 0, 1
> fsigpvstanal   p4, 1, p5, gifil, p6, p7
>
> kflag	pvsftw	fsig,ifn
>
>
>
>
>
>
>
>
> On Wed, Dec 4, 2013 at 4:41 PM, Oeyvind Brandtsegg
> > wrote:
>
>     Could it be pvsftw you're looking for?
>     best
>     Oeyvind
>
>     2013/12/4 Roger Kelly >:
>      > Is there anyway to use some opcode similiar to dispfft on a
>     wavefile and
>      > keep the values in a Csound table or get the to a file?
>      >
>      > Basically, I want to use Csound to do get the FFT bins of
>     frequencies.
>      >
>
>
>
>     --
>
>     Oeyvind Brandtsegg
>     Professor of Music Technology
>     NTNU
>     7491 Trondheim
>     Norway
>     Cell: +47 92 203 205 
>
>     http://flyndresang.no/
>     http://www.partikkelaudio.com/
>     http://soundcloud.com/brandtsegg
>     http://soundcloud.com/t-emp
>
>
>     Send bugs reports to the Sourceforge bug trackers
>     csound6:
>     https://sourceforge.net/p/csound/tickets/
>     csound5:
>     https://sourceforge.net/p/csound/bugs/
>     Discussions of bugs and features can be posted here
>     To unsubscribe, send email sympa@lists.bath.ac.uk
>      with body "unsubscribe csound"
>
>
>