SineTone
Creates a sound with a simple sine tone.
Syntax
-
SineTone([ν[, A[, d[, b[, s]]]]])-
νis a positive real number -
Ais a positive real number -
dis a positive real number -
bis a positive real number -
sis a positive real number
-
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)