rsc3/doc/help/ugen/oscillators/sin-osc.help.scrbl

45 lines
848 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(sin-osc rate freq phase)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
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
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(audition (out 0 (mul (sin-osc ar 440 0) (mce2 0.15 0.25))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
Modulate freq
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((f (x-line kr 2000 200 1 remove-synth)))
(audition (out 0 (mul (sin-osc ar f 0) 0.5))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
Modulate freq
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(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))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
Modulate phase
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(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))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00