What is the function of Ramp?

Hi Everyone, can you help me understand what Ramp.kr does? thankyou for your help

When Ramp gets a new value at the input it moves linearly toward that new value so as to arrive after lagTime. It continues to output that value until it receives another new value at the input.

(
{
	Ramp.kr(
		Duty.kr( Dseq([1,1,2,2]/8), 0, Dseq([0,1],inf) )
	)
}.plot(1)
)

Thank you very much, so what is the difference from Lag.kr?

Ok, so it is the same as Lag.kr. The onlydifference is that ramp is linear while lag.kr is exponential. is it correct? Thannkyou

1 Like