1

how to find/get the samplerate number that SuperCollider is running into a patch as a variable?

Dan Stowell
  • 4,618
  • 2
  • 20
  • 30

1 Answers1

2

Use the SampleRate.ir ugen, which always returns the current sample rate.

Note that using s.sampleRate is not the best answer - it gets you the sample rate at the time the synthdef is compiled, not the sample rate at the time the synth is running...

Dan Stowell
  • 4,618
  • 2
  • 20
  • 30