[haskell-art] trouble getting hsc3 to produce sound

Rohan Drape rohan.drape at gmail.com
Mon Mar 16 00:16:54 GMT 2009


hello brent,

just saw your post on planet haskell

> For example, here’s the documentation for pan2:

the unit generator documentation proper is not in haddock.  you don't
want to read it in a browser because you want to be able to play &
edit the examples.

did you read the "Help Files" section of the tutorial?

the ugen help files are under "Help/UGen"

the pan2 help file is at:

http://slavepianos.org/rd/sw/hsc3/Help/UGen/Panner/pan2.help.lhs

and reads:

pan2 in pos level

Two channel equal power panner.  The pan position is bipolar, -1 is
left, +1 is right.  The level is a control rate input.

> do { n <- pinkNoise AR
>    ; audition (out 0 (pan2 n (fSinOsc KR 2 0) 0.3)) }

> do { n <- pinkNoise AR
>    ; let { x = mouseX KR (-1) 1 Linear 0.2
>          ; y = mouseY KR 0 1 Linear 0.2 }
>      in audition (out 0 (pan2 n x y)) }

bests
rohan


More information about the haskell-art mailing list