I found this code . it generates glissandi. On the other hand, it is very difficult to have a control of this code. I simplified It. I would want to ask beginner’s question.
The code is the following one:
(defmacro sweep (dur)
(stretch-abs 1 (mult (pwl 0 0.8 dur 0.05 dur)
(hzosc (sum 440 (mult 3360 (ramp dur)))))))
(defun lowpass (sig hz)
(force-srate (* hz 2) sig)(snd-srate sig)))
(s-rest 1) (s-rest 1)
(at-abs 15 (lowpass (sweep 4)840))))
Would it be possible to use this random effect hanging a few seconds of a sound? Let us imagine the following sinusoidal sound:
(osc (hz-to-step 697) 19)))
It would be possible, for example, to allocate to the sound these glissandis during 4 seconds. Of time t1 = 4s in time t2 = 8s for example. Before t1 and after t2, we would hear that the sound sisnusoïdal.
Beforehand thank you for the information.