/usr/share/SuperCollider/HelpSource/Classes/SampleRate.schelp is in supercollider-common 1:3.6.3~repack-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | class:: SampleRate
summary:: Server sample rate.
related:: Classes/ControlRate, Classes/RadiansPerSample, Classes/SampleDur, Classes/SubsampleOffset
categories:: UGens>Info
Description::
Returns the current sample rate of the server.
classmethods::
method::ir
Examples::
code::
// compares a 441 Hz sine tone derived from sample rate (44100 * 0.01, left)
// with a 440 Hz tone (right), resultin in a 1 Hz beating
(
{
var freq;
freq = [ SampleRate.ir * 0.01, 440];
SinOsc.ar(freq, 0, 0.1)
}.play;
)
::
|