Algosim documentation: ScaleAmplitude

ScaleAmplitude

Returns a sound with its amplitude scaled.

Syntax

Description

ScaleAmplitude(s, α) returns s with every sample s(t) replaced by α⋅s(t).

Examples

S ≔ ExampleData("London");
L ≔ compute(ScaleAmplitude(S, 1/(2⋅n)), n, 1, 5);
accumulate(L, S, AppendSound)