Skip to content

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.


  • Download via Deken.

    Open Pd and go to ToolsFind Externals. Search for else and install it. Then create an object with declare -lib else -path else. Finally, use sr~ or any other object from else.

  • Library developed mainly by Alexandre Torres Porres.
  • Report Bugs/Errors here!
  • Available for .

Similar


    Comments

    Contributors