how to find/get the samplerate number that SuperCollider is running into a patch as a variable?
Asked
Active
Viewed 241 times
1 Answers
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