Explicitly include a boost "windows" folder even on linux
[supercollider.git] / HelpSource / Classes / SampleRate.schelp
blobcf0054cad1790099ea2a0d5703cfa83ed167a441
1 class:: SampleRate
2 summary:: Server sample rate.
3 related:: Classes/ControlRate, Classes/RadiansPerSample, Classes/SampleDur, Classes/SubsampleOffset
4 categories::  UGens>Info
7 Description::
9 Returns the current sample rate of the server.
12 classmethods::
14 method::ir
16 Examples::
18 code::
20 // compares a 441 Hz sine tone derived from sample rate (44100 * 0.01, left)
21 // with a 440 Hz tone (right), resultin in a 1 Hz beating
24         var freq;
25         freq = [ SampleRate.ir * 0.01, 440];
26         SinOsc.ar(freq, 0, 0.1)
27 }.play;