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

17 lines
334 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(pulse-count trig reset)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
This outputs the number of pulses received at `trig' and outputs
that value until `reset' is triggered.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((f (mul (pulse-count (impulse ar 10 0) (impulse ar 0.4 0)) 200)))
(audition (out 0 (mul (sin-osc ar f 0) 0.05))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00