Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / HelpSource / Classes / Dibrown.schelp
blob91989d43fc7deb9ce0a0bbb457146a235b643c90
1 class:: Dibrown
2 summary:: Demand rate brownian movement generator.
3 related:: Classes/Dbrown, Classes/Demand, Classes/Duty, Classes/TDuty
4 categories:: UGens>Demand
6 Description::
7 link::Classes/Dbrown::  returns numbers in the continuous range between
8 code::lo::  and  code::hi:: ,
9 Dibrown returns integer values.
12 The arguments can be a number or any other UGen.
15 See link::Classes/Pbrown::,  link::Classes/BrownNoise::  for structurally related
16 equivalents.
19 classmethods::
21 method::new
23 argument::lo
25 Minimum value.
28 argument::hi
30 Maximum value.
33 argument::step
35 Maximum step for each new value.
38 argument::length
40 Number of values to create. Use code::inf:: for an infinite number.
43 Examples::
45 code::
49         var a, freq, trig;
50         a = Dibrown(0, 15, 1, inf);
51         trig = Impulse.kr(MouseX.kr(1, 40, 1));
52         freq = Demand.kr(trig, 0, a) * 30 + 340;
53         SinOsc.ar(freq) * 0.1
55 }.play;