32class [[deprecated(
"Use Wave(SQUARE) instead.")]] SquareWave :
public Wave {
37 virtual ~SquareWave() {}
40 [[deprecated(
"Use skew(float) instead.")]]
44 [[deprecated(
"Use skew() instead.")]]
49[[deprecated(
"Use Wave(SQUARE) instead.")]]
50typedef SquareWave SquareOsc;
virtual void period(float period)
Sets the period (in seconds).
Definition AbstractOscillator.cpp:123
virtual void skew(float skew)
Sets the skew of the signal as a % of period.
Definition AbstractWave.cpp:97
The main Plaquette static class containing all the units.
Definition PqCore.h:63
static Engine & primary()
Returns the main instance of Plaquette.
Definition PqCore.cpp:30
virtual float dutyCycle() const
Definition SquareWave.h:45
virtual void dutyCycle(float dutyCycle)
Definition SquareWave.h:41
Engine * engine() const
Returns the engine that owns this unit.
Definition PqCore.h:420
Wave(float period, Engine &engine=Engine::primary())
Constructor (creates default square wave).
Definition Wave.cpp:28