rsc3/doc/examples/ugen/oscillators/lf-pulse.help.scm

13 lines
432 B
Scheme
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
;; (lf-pulse rate freq iphase width)
;; 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.
(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))))