Copyright © 2008-2018 MultiMedia Soft

Effects.TempoApply method

Previous pageReturn to chapter overviewNext page

Remarks

 

Applies a Tempo change to the given portion of sound under editing. Changing tempo will cause the sound to play at faster or slower speed than original without affecting the sound pitch so voices won't result altered. The duration of the song will change accordingly.

 

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.TempoApply

nStartPosition as Long,

nEndPosition as Long,

fTempoPerc as Single

) as enumErrorCodes


 

[C++]

short control.Effects.TempoApply (

long nStartPosition,

long nEndPosition,

float fTempoPerc

);


 

 

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.

fTempoPerc

Tempo increment/decrement expressed in percentage. Supported values are from -90 to 90.

 

 

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.