ComputeSound
Creates a sound using a waveform formula.
Syntax
-
ComputeSound(expr, t, a, b[, A[, s]])
-
expr
is an expression int
-
t
is a symbol -
a
andb
are real numbers -
A
is a real non-negative number -
s
is a positive number
-
Description
ComputeSound(expr, t, a, b, A, s)
returns the (b − a)
-second sound with waveform A⋅expr(t)
where t
goes from a
to b
. s
is the sample rate. The bit depth is 32 bits per sample.
If omitted, A
defaults to 1 and s
to 48 kHz.
Examples
ν ≔ 400; ω ≔ 2⋅π⋅ν; ComputeSound(sin(ω⋅sin(t)), t, 0, 10, 1)