On Thu, 2012-10-04 at 16:23 +0200, Patrice Colet wrote:
Thank you roman, didn't try this one...
I'd like to know what was the bug
http://sourceforge.net/tracker/?func=detail&atid=478070&aid=2950978&...
because it gives wrong sample resolution
Didn't know about this one. Please report it, so that hopefully it gets fixed. Does it work correctly with [ext13/wavinfo]?
Roman
----- Mail original -----
De: "Roman Haefeli" reduzent@gmail.com À: pd-list@iem.at Envoyé: Jeudi 4 Octobre 2012 15:49:25 Objet: Re: [PD] getting sample rate of file loaded into an array
Hi Patrice and Rick
Unfortunately, there are several different types of wav files, also the header size is not always the same.
IIRC, [ext13/wavinfo] assumes a fixed size of the typical 44 byte header and probably because of other reasons as well does not recognize many real-world wav-files. Sometimes it gives totally strange numbers instead of reporting an error.
[iemlib/soundfile_info] seems to support a much wider range of wav-files around and also I reported once a bug and it got fixed.
For reasons above I encourage you to use [iemlib/soundfile_info].
Roman
On Wed, 2012-10-03 at 14:09 -1000, Rick T wrote:
Thanks
On Wed, Oct 3, 2012 at 1:45 PM, Patrice Colet colet.patrice@free.fr wrote: [ext13/wavinfo]
or more complicated for the fun, with [mrpeach/binfile] and https://ccrma.stanford.edu/courses/422/projects/WaveFormat/ it's attached ^^ Colet Patrice ----- Mail original ----- > De: "Rick T" <ratulloch@gmail.com> > À: "PD List" <pd-list@iem.at> > Envoyé: Jeudi 4 Octobre 2012 00:26:15 > Objet: [PD] getting sample rate of file loaded into an > array > > > Greetings All > > I load a wavefile into an array using openpanel but how > can I go > about getting the sample rate of the wav file? > > I'm trying to load the sample rate data into an expr > object > Example: expr (sample rate) / f$1 > > Aloh > Rick > > _______________________________________________ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list >
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list