type

SineWave

class SineWave : HxComp

The output of this component generates a sine wave.

fields

amplitude

The height of the sine wave from its lowest to highest point.

offset

The distance from zero that the sine wave's amplitude is shifted

period

The amount of time it takes to output one complete cycle.

updateInterval

How frequently to compute the sine wave

methods

Slot Details

amplitude

virtual Float amplitude

The height of the sine wave from its lowest to highest point.

offset

virtual Float offset

The distance from zero that the sine wave's amplitude is shifted

onChangeThis

virtual override Void onChangeThis(Str slot, Obj? newVal)

onExecute

virtual override Void onExecute()

onExecuteFreq

virtual override Duration? onExecuteFreq()

onMount

virtual override Void onMount()

out

virtual StatusNumber out()

The computed sine wave

period

virtual Duration period

The amount of time it takes to output one complete cycle.

updateInterval

virtual Duration updateInterval

How frequently to compute the sine wave