Hi,
I was trying to figure out how to use an env on the freq parameter of
make-pulsed-env
(make-pulsed-env envelope duration frequency) but it wants a real, not a pair.
I thought I'd look-see the code for make-pulsed-env, but I can't seem to locate
it. Wondering if there's a way to go about achieving the effect?
make-freqpulsed-env?
I tried adding an amp to the pulsed-env but that's not the effect I was after.
(outa i (* 5.95 (polyshape gen (* (env ampenv) (pulsed-env jsenvel)) 0.01)
))
Also tried a vibrato type effect using an LFO, but still no joy.
Just trying to get make-pulsed-env to change frequency within the duration of
the note.
Something like: <>,< >, < >, <>, <>,<>,<>
(with-sound (:srate 48000 :channels 1 :play #t)
(let ((gen (make-polyshape 400.0 :partials (list 1 .5 2 .25 3 .125 4
.125)))
(jsenvel (make-pulsed-env '(0 0 .25 0.01 .5 0.2 1 0.0) 1.0 1.0))
;XXX
)
(do ((i 0 (+ i 1)))
((= i 96000))
(outa i (* 5.95 (polyshape gen (pulsed-env jsenvel) 0.01) ))
)))
Regards,
Jim
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist