Effects.NormalizationAdvancedApply method |
|
Remarks
Normalizes the sound under editing respect to a given target level and outside of a given range of invalid peak levels. If you simply need to normalize a sound at 100% (0 dB) respect to its highest peak, use the Effects.NormalizationSimpleApply method.
A successful call to this method will fire the SoundEditStarted event followed by a number of SoundEditPerc events and finally by the SoundEditDone event.
For further details about methods related to the use of special effects refer to the Effects COM object.
Syntax
[Visual Basic] control.Effects.NormalizationAdvancedApply ( nStartPosition as Long, nEndPosition as Long, fTargetLevelPerc as Single, fBelowLevelPerc as Single, fAboveLevelPerc as Single, bRemoveDcOffset as enumBoolean ) as enumErrorCodes |
[C++] short control.Effects.NormalizationAdvancedApply ( long nStartPosition, long nEndPosition, float fTargetLevelPerc, float fBelowLevelPerc, float fAboveLevelPerc, short bRemoveDcOffset ); |
Parameter |
Description |
|||||||||
|
|
|||||||||
nStartPosition |
Start position, expressed in milliseconds, of the affected sound range. |
|||||||||
nEndPosition |
End position, expressed in milliseconds, of the affected sound range.. If set to -1 the end position will be set to the end of the sound. |
|||||||||
fTargetLevelPerc |
Target peak level expressed in percentage.Typical values are 98% (-0.17 dB) or 100% (0 dB). |
|||||||||
fBelowLevelPerc |
Defines the lower peak level value, expressed in percentage, of the range where normalization effect will not be applied. Set this value to 100 if you want to apply normalization on all peak levels. |
|||||||||
fAboveLevelPerc |
Defines the higher peak level value, expressed in percentage, of the range where normalization effect will not be applied. Set this value to 100 if you want to apply normalization on all peak levels. |
|||||||||
bRemoveDcOffset |
Boolean flag to request applying DC offset removal during normalization.
Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful. |