[PD] how to get the actual sample rate?

IOhannes m zmoelnig zmoelnig at iem.at
Mon Oct 16 10:10:55 CEST 2017

On 2017-10-16 01:29, hans w. koch wrote:
> sorry to be dense..how´s that supposed to work?

when saving a file with [soundfiler], you can specify a nominal
samplerate for the file; if you don't do that, it will use the system's
samplerate (the "global" rate, alex wants to query).

since Pd-0.48, it will also send the meta information of the soundfile
to the right outlet (along with some other info; anyhow, the first item
in the list is the samplerate, hence the [t f] object to get rid of the
for whatever reasons, it will send that meta info to the right outlet,
even if it failed to create a soundfile, e.g. because it had no write
permissions on the requested path; or because ther's nt even a table
holding the data.

> trying to recreate the ascii patch doesn´t yield aynthing here except 0

iirc, it requires Pd>=0.48.
and btw, the ascii diagram connects the 2nd outlet of [soundfiler].


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20171016/d8d0a9e2/attachment.sig>

More information about the Pd-list mailing list