2022-08-24 13:53:18 +00:00
|
|
|
#lang scribble/manual
|
|
|
|
@(require (for-label racket))
|
|
|
|
|
|
|
|
@title{(sync-saw rate syncFreq sawFreq)}
|
|
|
|
|
2022-08-28 10:27:01 +00:00
|
|
|
|
2022-08-24 13:53:18 +00:00
|
|
|
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.
|
|
|
|
|
2022-08-28 10:27:01 +00:00
|
|
|
|
|
|
|
@racketblock[
|
2022-08-24 13:53:18 +00:00
|
|
|
(audition
|
|
|
|
(let ((f (line kr 100 800 12 remove-synth)))
|
|
|
|
(out 0 (mul (sync-saw ar 100 f) 0.1))))
|
2022-08-28 10:27:01 +00:00
|
|
|
]
|
|
|
|
|
2022-08-24 13:53:18 +00:00
|
|
|
|