TracksBoard.ItemVolumePointCurveSetEx method |
|
Remarks
Modifies the volume curve applied on exit from the given volume point to reach the volume of the next volume point. The current volume curve can be obtained through the TracksBoard.ItemVolumePointCurveGet method.
For details about the use of the TracksBoard refer to the How to use the TracksBoard to visually compose songs tutorial.
For further details about methods of the TracksBoard refer to the TracksBoard class section.
Syntax
[Visual Basic] control.TracksBoard.ItemVolumePointCurveSetEx ( nUniqueId as Long, nIndex as Long, nCurveType as enumVolumeCurves, nLeftX as Integer, nLeftY as Integer, nRightX as Integer, nRightY as Integer, bAutoRefresh as enumBoolean ) as enumErrorCodes |
[C++] short control.TracksBoard.ItemVolumePointCurveSetEx ( long nUniqueId, long nIndex, short nCurveType, short nLeftX, short nLeftY, short nRightX, short nRightY, short bAutoRefresh ); |
Parameter |
Description |
|||||||||||||||||||||
|
|
|||||||||||||||||||||
nUniqueId |
Unique identification number assigned to the sound item after being generated by one of the following methods:
|
|||||||||||||||||||||
nIndex |
Zero-based index of the volume point. The total number of available volume points can be obtained through the TracksBoard.ItemVolumePointCountGet method. |
|||||||||||||||||||||
nCurveType |
The type of curve applied to perform the volume fading. Supported values are the following:
|
|||||||||||||||||||||
nLeftX |
The horizontal position, expressed in percentage, of the left control point of the Bézier curve. This parameter is ignored when the nCurveType parameter is set to a value different from VOLUME_CURVE_CUSTOM. |
|||||||||||||||||||||
nLeftY |
The vertical position, expressed in percentage, of the left control point of the Bézier curve. This parameter is ignored when the nCurveType parameter is set to a value different from VOLUME_CURVE_CUSTOM. |
|||||||||||||||||||||
nRightX |
The horizontal position, expressed in percentage, of the right control point of the Bézier curve. This parameter is ignored when the nCurveType parameter is set to a value different from VOLUME_CURVE_CUSTOM. |
|||||||||||||||||||||
nRightY |
The vertical position, expressed in percentage, of the right control point of the Bézier curve. This parameter is ignored when the nCurveType parameter is set to a value different from VOLUME_CURVE_CUSTOM. |
|||||||||||||||||||||
bAutoRefresh |
Boolean value indicating if the modification should be applied immediately. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |