Hi, I’m new to SuperCollider & learning about patterns.
I want to perform value ramping using Pseq (with the ramping passing in synthdef with XLine or similar). So, each successive value sent by Pseq would ramp up from the previous value at a defined duration. That could be just pitch glissando/portamento, or something more interesting.
I am not exactly sure how to do this. I can create the ramping effect in the synthdef, controlled for example by two parameters \freqStart and \freqEnd, as shown here :
(
SynthDef(\test, { |out, freqStart = 20, freqEnd = 20|
Out.ar(out,
SinOsc.ar(XLine.kr(freqStart,freqEnd,1), 0, 0.2) *
Line.kr(1, 0, 1, doneAction: Done.freeSelf)
)
}).add;
)
Pbind(\instrument, \test, \dur, 1, \freqStart, Pseq([100, 200, 500]), \freqEnd, 5000).play;
. . . but I am hoping someone can show me how to take it a step further. . . so that \freqStart will always be the previous value, and \freqEnd always be the incoming value?
Thanks for your help.