sr~
The sr~
object in Pure Data allows users to set and retrieve the global audio sample rate. It outputs the sample rate frequency (in Hz or kHz) or period (in ms or seconds) upon initialization, receiving a bang, or when the sample rate changes. Unlike samplerate~
, sr~
always reflects the system's global sample rate, not local up/downsampling rates.
AI Generated
This content was generated with the assistance of AI. If you notice any errors, please report them or submit a fix using Submit. Check the prompt used here.