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

21 lines
645 B
Scheme
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
;; (pm-osc rate carfreq modfreq index modphase)
;; 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
(let* ((f (line kr 600 900 5 remove-synth))
(o (mul (pm-osc ar f 600 3 0) 0.1)))
(audition (out 0 o)))
(let* ((mf (line kr 600 900 5 remove-synth))
(o (mul (pm-osc ar 300 mf 3 0) 0.1)))
(audition (out 0 o)))
(let* ((i (line kr 0 20 8 remove-synth))
(o (mul (pm-osc ar 300 550 i 0) 0.1)))
(audition (out 0 o)))