Algosim documentation: ComputeSound

ComputeSound

Creates a sound using a waveform formula.

Syntax

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)