Copyright © 2008-2018 MultiMedia Soft

Effects.NormalizationAdvancedApply method

Previous pageReturn to chapter overviewNext page

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 EffectsMan class.

 

 

Syntax

 

[Visual Basic]

Public Function NormalizationAdvancedApply (

nStartPosition as Int32,

nEndPosition as Int32,

fTargetLevelPerc as Single,

fBelowLevelPerc as Single,

fAboveLevelPerc as Single

) as enumErrorCodes


 

[C#]

public enumErrorCodes NormalizationAdvancedApply (

Int32 nStartPosition,

Int32 nEndPosition,

float fTargetLevelPerc,

float fBelowLevelPerc,

float fAboveLevelPerc

);


 

[C++]

public: enumErrorCodes NormalizationAdvancedApply (

Int32 nStartPosition,

Int32 nEndPosition,

float fTargetLevelPerc,

float fBelowLevelPerc,

float fAboveLevelPerc

);


 

 

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.

 

 

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.