Re: [PD] Obtaining the sample rate

2007-09-30 Thread Derek Holzer
[samplerate~]

Outputs current sample rate when sent a bang.

best,
d.


-- 
derek holzer ::: http://www.umatic.nl ::: http://blog.myspace.com/macumbista
---Oblique Strategy # 104:
Listen in total darkness, or in a very large room, very quietly

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Obtaining the sample rate

2007-09-29 Thread Hans-Christoph Steiner

It's called samplerate~

.hc


On Sep 29, 2007, at 10:47 PM, Ken Restivo wrote:

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

 ___
 PD-list@iem.at mailing list
 UNSUBSCRIBE and account-management - http://lists.puredata.info/ 
 listinfo/pd-list



 


All information should be free.  - the hacker ethic





___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Obtaining the sample rate

2007-09-29 Thread Ken Restivo
-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-

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list