RectWave Function

Generates a rectangle curve


Description

The function RectWave generates a series of numbers representing a rectangle curve.


Syntax

RectWave (Length, LowDuration, HighDuration, LowValue HighValue)

RectWave (Length, LowDuration, HighDuration, LowValue HighValue, Delay)


Parameters

Length

The number of samples to generate.


LowDuration

Number of samples in the low phase.


HighDuration

Number of samples in high phase.


LowValue

Value during the low phase.


HighValue

Value during the high phase.


Optional Parameter

Delay

Delay on the timeline X. Must be zero or positive.


Example