rsc3/doc/help/ugen/oscillators/pulse.help.scrbl

38 lines
600 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(pulse rate freq width)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Bandlimited pulse wave generator.
Modulate frequency
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(audition
(let ((f (x-line kr 40 4000 6 remove-synth)))
(out 0 (mul (pulse ar f 0.1) 0.2))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
modulate pulse width
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(audition
(let ((w (line kr 0.01 0.99 8 remove-synth)))
(out 0 (mul (pulse ar 200 w) 0.2))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
two band limited square waves thru a resonant low pass filter
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(audition
(out 0 (rlpf (mul (pulse ar (mce2 100 250) 0.5) 0.1)
(x-line kr 8000 400 5 remove-synth)
0.05)))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00