New util functions in Data.Sound: affineFunction and linearFunction.