rsc3/doc/help/ugen/panners/pan2.help.scrbl

24 lines
442 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(pan2 in pos level)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Two channel equal power panner. The pan position is bipolar, -1 is
left, +1 is right. The level is a control rate input.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((p (f-sin-osc kr 2 0)))
(audition (out 0 (pan2 (pink-noise ar) p 0.3))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((x (mouse-x kr -1 1 0 0.1))
(y (mouse-y kr 0 1 0 0.1)))
(audition (out 0 (pan2 (pink-noise ar) x y))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00