More functions ported from maschine.extempore.