shiftEdges

fun shiftEdges(shiftRising: Duration, shiftFalling: Duration): Booleans

Shifts the rising and falling edges of a boolean profile independently of each other.

This allows for segments to not just be shifted around, but stretched or squished, or even deleted.

A rising edge is defined as the time just after a false segment ends - whether it meets a true segment or a gap. Similarly, a falling edge is just after a true segment ends.

Parameters

shiftRising

duration to shift the rising edges by

shiftFalling

duration to shift the rising edges by