Skip to main content

square

Function square 

Source
pub fn square(period: usize, length: usize) -> Result<Vec<f64>, ErrorsJSL>
Expand description

Convenience: length samples of a symmetric square wave with an integer period (>= 2). For odd periods the positive half is the longer one.