ComputeSound
Creates a sound using a waveform formula.
Syntax
-
ComputeSound(expr, t, a, b[, A[, s]])-
expris an expression int -
tis a symbol -
aandbare real numbers -
Ais a real non-negative number -
sis 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)