8. Noise

8. Noise

{WhiteNoise.ar(0.5)}.scope
{PinkNoise.ar(0.4)}.scope//-3dB per octave
{BrownNoise.ar(0.5)}.scope//-6dB per octave
{GrayNoise.ar(0.4)}.scope//randomly flipping bits

{Dust.ar(MouseX.kr(10,500),mul:0.9)}.scope//마우스가 오른쪽으로 가면 펄스농도가 짙어진다.

Dust as trigger for an envelope:

    EnvGen.ar(envelope, gate, levelScale, levelBias, timeScale, doneAction)
       gate is usually a trigger for the envelope (triggers when <= 0 goes to > 0)
Env.perc(0.001,0.05).plot.test
(
{SinOsc.ar(440, mul:EnvGen.kr(Env.perc(0.001,1.0),
                                                Dust.kr(MouseX.kr(0.5,5))))
}.scope
)
//——————————————
메뉴얼 참조
Dust        : random impulses

Dust.ar(density, mul, add)
Generates random impulses from 0 to +1.
density – average number of impulses per second

MouseX: cursor ugen
superclass: UGen
        *kr(minval, maxval, warp, lag)
        
        minval, maxval        range between left and right end of screen
        warp                        mapping curve. 0 is linear, 1 is exponential (for freq or times e.g)
                                        alternative: ‘linear’, ‘exponential’
        lag                                lag factor to dezpipper cursor movement
//——————————————
http://csound.x-y.net
Ji Youn Kang,
Csound Max Community

Leave a Comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.