rsc3/doc/help/ugen/delays/comb-n.help.scrbl

69 lines
1.3 KiB
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(comb-n in maxDelayTime delayTime decayTime)}
(comb-l in maxDelayTime delayTime decayTime)
(comb-c in maxDelayTime delayTime decayTime)
Comb delay line. comb-n uses no interpolation, comb-l uses linear
interpolation, comb-c uses all pass interpolation. All times are in
seconds. The decay time is the time for the echoes to decay by 60
decibels. If this time is negative then the feedback coefficient
will be negative, thus emphasizing only odd harmonics at an octave
lower.
Comb used as a resonator. The resonant fundamental is equal to
reciprocal of the delay time.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(define src (mul (white-noise ar) 0.01))
2022-08-28 10:27:01 +00:00
]
@racketblock[
2022-08-24 13:53:18 +00:00
(define ctl (x-line kr 0.0001 0.01 20 remove-synth))
2022-08-28 10:27:01 +00:00
]
@racketblock[
2022-08-24 13:53:18 +00:00
(define hear (lambda (u) (audition (out 0 u))))
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
(hear (comb-n src 0.01 ctl 0.2))
2022-08-28 10:27:01 +00:00
]
@racketblock[
2022-08-24 13:53:18 +00:00
(hear (comb-l src 0.01 ctl 0.2))
2022-08-28 10:27:01 +00:00
]
@racketblock[
2022-08-24 13:53:18 +00:00
(hear (comb-c src 0.01 ctl 0.2))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
With negative feedback:
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(hear (comb-n src 0.01 ctl -0.2))
2022-08-28 10:27:01 +00:00
]
@racketblock[
2022-08-24 13:53:18 +00:00
(hear (comb-l src 0.01 ctl -0.2))
2022-08-28 10:27:01 +00:00
]
@racketblock[
2022-08-24 13:53:18 +00:00
(hear (comb-c src 0.01 ctl -0.2))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
Used as an echo.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(hear (comb-n (mul (decay (mul (dust ar 1) 0.5) 0.2) (white-noise ar))
0.2 0.2 3))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00