@lritter I was using step to define regions before in a non-branching way though it was utterly unreadable. But I really like the min/max idea. Readable and concise.
@lritter also just noticed: my implementation can handle durations of 0 fine, while the min/max approach needs to use an eta to avoid division by zero
Welcome to the 8th Layer of Madness
Most topics are related to Linux, Anime, Music, Software and maaaany more