Skip to content

Trigonometric

The amplitude is computed based on the following summation.

For Sine,

A(t)=aisin(i2πT0(tt0)=aisin(if0(tt0))fort>t0.

For Cosine,

A(t)=aicos(i2πT0(tt0))=aicos(if0(tt0))fort>t0.

In above equations, T0 is the base period and f0 is base frequency accordingly. In the above definition, t0 is the (pseudo) start time of the step in which the amplitude is defined.

Syntax

Text Only
1
2
3
4
5
6
amplitude Sine (1) (2) (3) [(4)...]
amplitude Cosine (1) (2) (3) [(4)...]
# (1) int, unique tag
# (2) double, base period T_0
# (3) double, amplitude at base period/frequency a_0
# [(4)...] double, optional amplitudes at higher periods a_i

Example

Text Only
amplitude Sine 1 10. 2.
A(t)=2sin(π5(tt0)).
Text Only
amplitude Sine 1 10. 2. 4.
A(t)=2sin(0.2π(tt0))+4sin(0.4π(tt0)).