rsc3/doc/help/ugen/oscillators/var-saw.help.scrbl

21 lines
405 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(var-saw rate freq iphasewidth)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Variable duty saw
freq - frequency in Hertz
iphase - initial phase offset in cycles ( 0..1 )
width - duty cycle from zero to one.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((f (mul-add (lf-pulse kr (mce2 3 3.03) 0 0.3) 200 200))
(w (lin-lin (lf-tri kr 1 0) -1 1 0 1)))
(audition (out 0 (mul (var-saw ar f 0 w) 0.1))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00