The step output starts from stepOffset and increases to stepOffset + stepHeight in stepNumbersteps. The total duration of all step changes is equal to T.
During each step the triangle output is increased from
triangleOffset to triangleOffset + triangleHeight
and back to triangleOffset.
This way a variable sweep (triangleOffset) can be performed for different
stepwise changed variables (step).