Copyright © 2008-2023 MultiMedia Soft

TracksBoard.ItemTrackSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Modifies the track where the given sound item is placed. The current track can be obtained through the TracksBoard.ItemTrackGet method.

 

Items overlapping is not permitted so, if the move to the new track should cause an overlapping, this call would not move the item at all: you can check if the move to the new track was effective by invoking the TracksBoard.ItemTrackGet 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]

Public Function ItemTrackSet (

nUniqueId as Int32,

nTrack as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes ItemTrackSet (

Int32 nUniqueId,

Int32 nTrack

);


 

[C++]

public: enumErrorCodes ItemTrackSet (

Int32 nUniqueId,

Int32 nTrack

);


 

Parameter

Description

 

 

nUniqueId

Unique identification number assigned to the sound item after being generated by one of the following methods:

TracksBoard.ItemClone when an existing item has been cloned

nTrack

The new zero-based track for the item

 

 

 

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