Sound: Pre-emphasize (in-line)...

A command to change the spectral slope of every selected Sound object.

The reverse of Sound: De-emphasize (in-line)....

This is the in-line version of Sound: Filter (pre-emphasis)..., i.e., it does not create a new Sound object but modifies an existing object.

Algorithm

The pre-emphasis factor α is computed as

α = exp (-2 π F Δt)

where Δt is the sampling period of the sound. Every sample xi of the sound, except x1, is then changed, going down from the last sample:

xi = xi - α xi-1

Links to this page


© ppgb, March 9, 2003