Effects.FreeverbApply method |
|
Remarks
Applies a specific reverberation effect on the playing song. This DSP effect can be reset through the Effects.FreeverbReset method.
Reverb adds reverberation (rapid, modified repetitions blended with the original sound that gives an impression of ambience). The Reverb effect is based on the original "freeverb" algorithm. Adding reverberation is sometimes desirable for concert halls that are too small or contain so many people that the hall's natural reverberance is diminished. Applying a small amount of stereo reverb to an untreated mono signal duplicated into a two-channel stereo track will usually make it sound more natural.
See the How to apply special effects to a playing sound section for further details.
Syntax
[Visual Basic] Public Function FreeverbApply ( nPlayerIndex as Int16, nAffectedChannel as enumChannelMasks, fDryMix as Single, fWetMix as Single, fRoomSize as Single, fDamp as Single, fWidth as Single, nReserved as Int32, nPriority as Int16 ) as enumErrorCodes |
[C#] public enumErrorCodes FreeverbApply ( Int16 nPlayerIndex, enumChannelMasks nAffectedChannel, float fDryMix, float fWetMix, float fRoomSize, float fDamp, float fWidth, Int32 nReserved, Int16 nPriority ); |
[C++] public: enumErrorCodes FreeverbApply ( Int16 nPlayerIndex, enumChannelMasks nAffectedChannel, float fDryMix, float fWetMix, float fRoomSize, float fDamp, float fWidth, Int32 nReserved, Int16 nPriority ); |
Parameter |
Description |
||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
nPlayerIndex |
Number representing the zero-based index of the involved player |
||||||||||||||||||||||||||||||||||||
nAffectedChannel |
Numeric value that determines the combination of affected channels. Supported values are the following:
|
||||||||||||||||||||||||||||||||||||
fDryMix |
Numeric value representing the Dry (unaffected) signal mix. Supported values are in the range from 0 to 1. The default value is 0. |
||||||||||||||||||||||||||||||||||||
fWetMix |
Numeric value representing the Wet (affected) signal mix. Supported values are in the range from 0 to 3. The default value is 1.0. |
||||||||||||||||||||||||||||||||||||
fRoomSize |
Numeric value representing the room size. Supported values are in the range from 0 to 1. The default value is 0.5. |
||||||||||||||||||||||||||||||||||||
fDamp |
Numeric value representing the damping. Supported values are in the range from 0 to 1. The default value is 0.5. |
||||||||||||||||||||||||||||||||||||
fWidth |
Numeric value representing the stereo width. Supported values are in the range from 0 to 1. The default value is 1.0. |
||||||||||||||||||||||||||||||||||||
nReserved |
Reserved for future uses should be set to 0. |
||||||||||||||||||||||||||||||||||||
nPriority |
Effect's priority level inside the chain of DirectX effects, custom DSP effects and VST effects. Effects with higher priority are applied before effects with lower priority; in case more effects should have the same priority, they would be invoked in the same order that they were added. |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The method call was successful. |