ScaleAmplitude
Returns a sound with its amplitude scaled.
Syntax
-
ScaleAmplitude(s, α)
-
s
is a sound -
α
is a real number in [0, 1]
-
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)