samplerate~ should do.

If you use something like [block~ 128 1 2] to upsample by a factor of 2 than samplerate~ shout give you that upsampled rate.

Paulo

On 20/05/2010 13:24, Mathieu Bouchard wrote:

is there a way to get the current sampling rate of a specific canvas ?

this is for making rate-independent abstractions that use rate-dependent objects.

 _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list