Music

Describes detailed information about a music resource.

struct Music {
    int64_t songCode;
    const char* name;
    const char* singer;
    const char* poster;
    const char* releaseTime;
    int32_t durationS;
    int32_t type;
    int32_t pitchType;
    int32_t lyricCount;
    int32_t* lyricList;
    int32_t climaxSegmentCount;
    ClimaxSegment* climaxSegmentList;
    int32_t mvPropertyCount;
    MvProperty* mvPropertyList;
};

Properties

songCode
The ID of the music resource, used to identify a music entry.
name
The name of the music resource.
singer
The name of the singer.
poster
Download link for the music poster.
releaseTime
The release time of the music resource.
durationS
Total duration of the music resource (in seconds).
type
Type of the music resource:
  • 1: Single track, left channel is accompaniment, right channel is original vocals.
  • 2: Single track, accompaniment only.
  • 3: Single track, original vocals only.
  • 4: Multi-track audio.
pitchType
Whether the song supports pitch scoring:
  • 1: Supports pitch scoring.
  • 2: Does not support pitch scoring.
lyricCount
The number of available lyrics for the song.
lyricList
Supported lyric formats:
  • 0: XML format.
  • 1: LRC format.
climaxSegmentCount
The number of climax segments.
climaxSegmentList
List of climax segments. See ClimaxSegment.
mvPropertyCount
Number of MVs. If this value is greater than 0, it indicates that the current music has MV resources.
mvPropertyList
List of MV properties.