Csound Csound-dev Csound-tekno Search About

[Csnd] get base frequency of a wave file

Date2012-06-24 09:50
Fromzappfinger
Subject[Csnd] get base frequency of a wave file
I am playing with loscil and wave samples. Is there an opcode to get the base
frequency of a wave file?
That is required AFAIK to play samples at different rates using loscil.
Of course I know or can find out what the base frequencies are of my sample
files, just wandering if this could be automated...

Richard

--
View this message in context: http://csound.1045644.n5.nabble.com/get-base-frequency-of-a-wave-file-tp5713903.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-06-24 11:53
FromOeyvind Brandtsegg
SubjectRe: [Csnd] get base frequency of a wave file
Hi Richard,

You can use ftcps() to get the base frequency of a loaded sample. The
information is stored in the audio file and ftcps() merely readys
what's there. So, the stored base frequency does not necessarily
reflect perceived pitch (unless someone did put the proper value
there).

best
Oeyvind

2012/6/24 zappfinger :
> I am playing with loscil and wave samples. Is there an opcode to get the base
> frequency of a wave file?
> That is required AFAIK to play samples at different rates using loscil.
> Of course I know or can find out what the base frequencies are of my sample
> files, just wandering if this could be automated...
>
> Richard
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/get-base-frequency-of-a-wave-file-tp5713903.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> 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


Date2012-06-24 12:13
Fromzappfinger
Subject[Csnd] Re: get base frequency of a wave file
Hi Oeyvind,

Ok, thanks, I see that the info should be in the present in the file.

Richard

--
View this message in context: http://csound.1045644.n5.nabble.com/get-base-frequency-of-a-wave-file-tp5713903p5713906.html
Sent from the Csound - General mailing list archive at Nabble.com.