Resample a spread

Hi all,

I have a (simple I guess) problem, I have a spread of linear values like 0-1-2 and I need to remap it like 0-0-0-1-1-2. Tweaking with I(spread) and resample I found the attached patch but I can’t find the logic in it.

Deos someboby know a simpler way to achieve the same result?

Thanks alot,
aR

remap spread.v4p (3.8 kB)

mmh like this?

resampled.v4p (4.4 kB)

Great! that’s better, thanks for your help bjoern!