Algosim documentation: SineTone

SineTone

Creates a sound with a simple sine tone.

Syntax

Description

SineTone(ν, A, d, b, s) returns a sound with a simple sine tone of frequency ν, normalised amplitude A between 0 and 1, duration d (seconds), bit depth b, and sample frequency s.

If omitted, ν defaults to 400 Hz, A to 0.5, d to 2 seconds, b to 32 bits per sample, and s to 48 kHz.

Examples

SineTone(200, 0.2, 1)

S ≔ compute(SineTone(100⋅n, 0.2, 0.2), n, 1, 10);
accumulate(S, SineTone(50, 0.2, 0.2), AppendSound)

See also