rsc3/doc/help/ugen/panners/pan-b2.help.scrbl

25 lines
585 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(pan-b2 in azimuth gain)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
2D Ambisonic B-format panner. Encode a mono signal to two
dimensional ambisonic B-format. The azimuth parameter is the
position around the circle from -1 to +1. -1 is behind, -0.5 is
left, 0 is forward, +0.5 is right, +1 is behind.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let* ((p (pink-noise ar))
(encoded (pan-b2 p (mouse-x kr -1 1 0 0.1) 0.1))
(decoded (decode-b2 4
(mce-channel encoded 0)
(mce-channel encoded 1)
(mce-channel encoded 2)
0.5)))
(audition (out 0 decoded)))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00