Copyright © 2011-2019 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.

 

During the execution of the editing session the CallbackEditPerc delegate is invoked in order to notify about the percentage of advancement.

 

For further details about callback delegates see the How to synchronize the container application with the API tutorial.

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.