Explicitly include a boost "windows" folder even on linux
[supercollider.git] / HelpSource / Classes / K2A.schelp
blobdd3e647ad31cce111adb9301d9be90e17527a98d
1 class:: K2A
2 summary:: Control to audio rate converter.
3 related:: Classes/A2K
4 categories::  UGens>Conversion
7 Description::
9 To be able to play a control rate UGen into an audio rate UGen,
10 sometimes the rate must be converted. K2A converts via linear
11 interpolation.
14 classmethods::
16 method::ar
18 argument::in
19 The input signal.
21 Examples::
23 code::
24 { K2A.ar(WhiteNoise.kr(0.3)) }.scope;
27 // compare:
31         [
32                 K2A.ar(WhiteNoise.kr(0.3)),
33                 WhiteNoise.ar(0.3)
34         ]
35 }.scope;
41         var freq, blockSize, sampleRate;
42         blockSize = Server.internal.options.blockSize; // usually 64
43         sampleRate = Server.internal.sampleRate;
44         freq = MouseX.kr(0.1, 40, 1) / blockSize * sampleRate;
45         [
46                 K2A.ar(LFNoise0.kr(freq)),
47                 LFNoise0.ar(freq)
48         ] * 0.3
49 }.scope;