Skip to main content

Module square

Module square 

Source
Expand description

Square wave source.

See the book entry Signal sources: oscillators, CORDIC and waveforms.

Structs§

SquareWave
A bipolar rectangular wave: +1 while the phase is within the duty fraction of the cycle (starting at phase 0, like the positive half of a sine) and -1 for the rest.

Functions§

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