rsc3/doc/help/ugen/controls/mrg2.help.scrbl

47 lines
896 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(mrg2 left right)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
mrg2 defines a node indicating a multiple root graph.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((l (out 0 (mul (sin-osc ar 300 0) 0.1)))
(r (out 1 (mul (sin-osc ar 900 0) 0.1))))
(audition
(mrg2 l r)))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
there is a leftmost rule, so that mrg nodes need not
be terminal.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((l (mul (sin-osc ar 300 0) 0.1))
(r (out 1 (mul (sin-osc ar 900 0) 0.1))))
(audition (out 0 (mrg2 l r))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
the leftmost node may be an mce node
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((l (mul (sin-osc ar (mce2 300 400) 0) 0.1))
(r (out 1 (mul (sin-osc ar 900 0) 0.1))))
(audition (out 0 (mrg2 l r))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
the implementation is not thorough
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((l (mul (sin-osc ar (mce2 300 400) 0) 0.1))
(r (out 1 (mul (sin-osc ar 900 0) 0.1))))
(audition (out 0 (add (mrg2 l r)
(mrg2 l r)))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00