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

44 lines
848 B
Racket

#lang scribble/manual
@(require (for-label racket))
@title{(sin-osc rate freq phase)}
interpolating sine wavetable oscillator. This is the same as osc
except that the table is a sine table of 8192 entries.
freq - frequency in Hertz
phase - phase offset or modulator in radians
@racketblock[
(audition (out 0 (mul (sin-osc ar 440 0) (mce2 0.15 0.25))))
]
Modulate freq
@racketblock[
(let ((f (x-line kr 2000 200 1 remove-synth)))
(audition (out 0 (mul (sin-osc ar f 0) 0.5))))
]
Modulate freq
@racketblock[
(let* ((f1 (x-line kr 1 1000 9 remove-synth))
(f2 (mul-add (sin-osc ar f1 0) 200 800)))
(audition (out 0 (mul (sin-osc ar f2 0) 0.25))))
]
Modulate phase
@racketblock[
(let* ((f (x-line kr 20 8000 10 remove-synth))
(p (mul (sin-osc ar f 0) (* pi 2))))
(audition (out 0 (mul (sin-osc ar 800 p) 0.25))))
]