[PD] Obtaining the sample rate

Ken Restivo ken at restivo.org
Sun Sep 30 04:47:12 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In my PD documentation-reading and websurfing travels, I happened upon an external or some other way to obtain the sample rate from PD programmatically, instead of hardcoding it (bad! bad! bad!) in PD patches.

But I didn't write it down, and my bookmark list is so stuffed with crap that there's no way I'd ever return if I went in there to look.

So I'll ask here: how does one obtain the current sample rate of the audio engine, from within a PD patch?

Thanks.

(By the way, I'm writing a jack_metro abstraction, which is basically a metro that is sync'ed to JACK's sample-accurate clock, unless of course someone has already done it, so please let me know if they have).

- -ken
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG/w4we8HF+6xeOIcRAudeAJ0TpeuSKtdQAqbQHW7F8p8GAfCWBQCgwvim
H6Et3VRqkHBdOjeYxhL3O80=
=1puv
-----END PGP SIGNATURE-----




More information about the Pd-list mailing list