hsc3-0.8: Help/UGen/Oscillator/lfPulse.help.lhs
lfPulse 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.
> import Sound.SC3
> let f = lfPulse KR 3 0 0.3 * 200 + 200
> in audition (out 0 (lfPulse AR f 0 0.2 * 0.1))
> let x = mouseX KR 0 1 Linear 0.2
> in audition (out 0 (lfPulse AR 220 0 x * 0.1))