mpc-js
    Preparing search index...

    Class Song

    Base class for objects in the music database.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    album?: string

    the album name

    albumArtist?: string

    on multi-artist albums, this is the artist name which shall be used for the whole album. The exact meaning of this tag is not well-defined

    albumArtistSort?: string

    same as albumArtist, but for sorting

    albumSort?: string

    same as album, but for sorting

    artist?: string

    the artist name. Its meaning is not well-defined; see “composer” and “performer” for more specific tags

    artistSort?: string

    same as artist, but for sorting. This usually omits prefixes such as “The”

    bitDepth?: number
    channels?: number
    comment?: string

    a human-readable comment about this song. The exact meaning of this tag is not well-defined

    composer?: string

    the artist who composed the song

    date?: string

    the song’s release date. This is usually a 4-digit year

    disc?: string

    the decimal disc number in a multi-disc album

    duration?: number

    the duration of the song in seconds; may contain a fractional part

    entryType: "song"
    format?: string

    The format emitted by the decoder plugin, format: "samplerate:bits:channels".

    genre?: string

    the music genre

    label?: string

    the name of the label or publisher

    lastModified?: Date
    musicBrainzAlbumArtistId?: string

    the album artist id in the MusicBrainz database

    musicBrainzAlbumId?: string

    the album id in the MusicBrainz database

    musicBrainzArtistId?: string

    the artist id in the MusicBrainz database

    musicBrainzReleaseTrackId?: string

    the release track id in the MusicBrainz database

    musicBrainzTrackId?: string

    the track id in the MusicBrainz database

    musicBrainzWorkId?: string

    the work id in the MusicBrainz database

    name?: string

    a name for this song. This is not the song title. The exact meaning of this tag is not well-defined. It is often used by badly configured internet radio stations with broken tags to squeeze both the artist name and the song title in one tag

    originalDate?: string
    path: string
    performer?: string

    the artist who performed the song

    sampleRate?: number
    title?: string

    the song title

    track?: string

    the decimal track number within the album

    Methods