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

36 lines
742 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(pm-osc rate carfreq modfreq index modphase)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Phase modulation oscillator pair.
carfreq - carrier frequency in cycles per second.
modfreq - modulator frequency in cycles per second.
index - modulation index in radians.
modphase - a modulation input for the modulator's phase in radians
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let* ((f (line kr 600 900 5 remove-synth))
(o (mul (pm-osc ar f 600 3 0) 0.1)))
(audition (out 0 o)))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let* ((mf (line kr 600 900 5 remove-synth))
(o (mul (pm-osc ar 300 mf 3 0) 0.1)))
(audition (out 0 o)))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let* ((i (line kr 0 20 8 remove-synth))
(o (mul (pm-osc ar 300 550 i 0) 0.1)))
(audition (out 0 o)))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00