rsc3/doc/help/ugen/envelopes/x-line.help.scrbl

24 lines
588 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(x-line rate start end dur doneAction)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Exponential line generator. Generates an exponential curve from
the start value to the end value. Both the start and end values
must be non-zero and have the same sign.
start - starting value
end - ending value
dur - duration in seconds
doneAction - a doneAction to be evaluated when the x-line is
completed. See env-gen for details.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((f (x-line kr 200 17000 10 remove-synth)))
(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