rsc3/doc/help/ugen/oscillators/sync-saw.help.scrbl
2022-08-28 12:27:01 +02:00

23 lines
590 B
Racket

#lang scribble/manual
@(require (for-label racket))
@title{(sync-saw rate syncFreq sawFreq)}
A sawtooth wave that is hard synched to a fundamental pitch. This
produces an effect similar to moving formants or pulse width
modulation. The sawtooth oscillator has its phase reset when the
sync oscillator completes a cycle. This is not a band limited
waveform, so it may alias.
The frequency of the slave synched sawtooth wave should always be
greater than the syncFreq.
@racketblock[
(audition
(let ((f (line kr 100 800 12 remove-synth)))
(out 0 (mul (sync-saw ar 100 f) 0.1))))
]