rsc3/doc/help/ugen/delays/buf-delay-c.help.scrbl

35 lines
750 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(buf-delay-c buf in delaytime)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Buffer based simple delay line with cubic interpolation.
Simple delay line with cubic interpolation which uses a buffer for
its internal memory. See also buf-delay-n which uses no
interpolation, and buf-delay-l which uses linear interpolation. Cubic
interpolation is more computationally expensive than linear, but
more accurate.
See also delay-c.
buf - buffer number.
in - the input signal.
delaytime - delay time in seconds.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(with-sc3
(lambda (fd)
(async fd (b-alloc 0 44100 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 ((z (mul3 (decay (dust ar 1) 0.5) 0.3 (white-noise ar))))
(audition (out 0 (add (buf-delay-c 0 z 0.2) z))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00