pub fn square(period: usize, length: usize) -> Result<Vec<f64>, ErrorsJSL>
Convenience: length samples of a symmetric square wave with an integer period (>= 2). For odd periods the positive half is the longer one.
length
period