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

22 lines
492 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(lf-pulse rate freq iphase width)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
A non-band-limited pulse oscillator. outputs a high value of one
and a low value of zero. Note that the iphase argument was not
present in SC2.
freq - frequency in Hertz
iphase - initial phase offset in cycles ( 0..1 )
width - pulse width duty cycle from zero to one.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((f (mul-add (lf-pulse kr 3 0 0.3) 200 200)))
(audition (out 0 (mul (lf-pulse ar f 0 0.2) 0.1))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00