The Gain Adjust Algorithm
In the Gain Adjust computation, the compute level box depicts the
computation of the input level from the sound samples. The compute level
computation is depicted in the �owchart:
input
absolute
value
abs
yes
level > absdecay <� attack decay
?
no
decay <� release decay
level <� decay Y level + (1 - decay) Y abs
new level
This �owchart shows that the absolute value of each sound sample is Ţrst
compared with the previously computed level. If the absolute value is
greater than the previously computed level, then a decay value
corresponding to the attack time is used, otherwise a decay value
corresponding to the release time is used. (The decay values are positive
and slightly less than one, which result the proper decay or release times.)
The decay value is then used to update the level value using the equation
shown in the �owchart. When the attack time is shorter that the release
time, the resulting level approximates the largest instantaneous amplitudes
in the data. Other settings result in levels that are less than the largest
instantaneous amplitudes in the data.
MDT UserOs Manual67 |