rsc3/doc/help/ugen/triggers/pulse-divider.help.scrbl

21 lines
502 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(pulse-divider trig div start)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
outputs one impulse each time it receives a certain number of
triggers at its input. A trigger happens when the signal changes
from non-positive to positive.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let* ((p (impulse ar 8 0))
(d (pulse-divider p (mce2 4 7) 0))
(a (mul (sin-osc ar 1200 0) (decay2 p 0.005 0.1)))
(b (mul (sin-osc ar 600 0) (decay2 d 0.005 0.5))))
(audition (out 0 (mul (add a b) 0.4))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00