Archived post by eetu

gahh took a while

but starsteps with landings

the conceptual idea is to take a larger stairstep of (x+y) steps in size, plus add to it a clamped sawtooth that has x steps of the clamped part and y steps of the unclamped part

scaling it all properly took a while 😃

Attachments in this post:
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20194403/21/19/stairsteps_landings.png
http://fx-td.com/houdiniandchill/wp-content/uploads/discord/20194403/21/19/ee_stairlandings.hiplc

Archived post by profbetis

@flight404 you can interact with ramp keys just like a multiparm block. The ramp parameter itself has the value of how many keys there are

“`c int rampkeys = chramp(“ramp”);
for( int i=i; i<=rampkeys; i++){ float pos = ch(sprintf("ramp%gpos", i)); float val = ch(sprintf("ramp%gvalue", i)); // Do stuff }```

(I normally don’t condone 1-based loop indices but the keys do start at 1 and not 0. I supposed you could switch to doing `i+1` in the `sprintf` calls though if you wanted)