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

16 lines
406 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(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.
(let ((p (f-sin-osc kr 2 0)))
(audition (out 0 (pan2 (pink-noise ar) p 0.3))))
(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))))