Add helper for piecewise inputs

Progress towards issue #116
Update controlled oscillator for piecewise