| 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
|