Square Wave
Composable for generating a square wave. Produces a square wave signal with specified amplitude, frequency, and pulse width.
Parameters
The amplitude of the square wave. The value should be between 0.0 and 1.0.
The frequency of the square wave in Hz.
The pulse width of the square wave. The value should be between -1.0 and 1.0. -1.0 means the output is always -amplitude. 0.0 means a 50% duty cycle. 1.0 means the output is always +amplitude.
Composable for generating a square wave. Produces a square wave signal with specified amplitude, dynamic frequency, and dynamic pulse width.
Parameters
The amplitude of the square wave. The value should be between 0.0 and 1.0.
A lambda returning the current frequency of the square wave in Hz.
A lambda returning the current pulse width of the square wave. The value should be between -1.0 and 1.0. -1.0 means the output is always -amplitude. 0.0 means a 50% duty cycle. 1.0 means the output is always +amplitude.