address failed assertions (caused by rounding errors) in Oscillator::doSquare