rsc3/doc/help/ugen/ternary-ops/mul-add.help.scrbl

22 lines
373 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(mul-add a b c)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Functionally equivalent to (add (mul a b) c).
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((f (mul-add (lf-saw kr (mce2 10 9) 0) 200 400)))
(audition (out 0 (mul (sin-osc ar f 0) 0.1))))
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 ((f (add (mul (lf-saw kr (mce2 10 9) 0) 200) 400)))
(audition (out 0 (mul (sin-osc ar f 0) 0.1))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00