Type Alias Track<withFKs>

Track: {
    analyzeDate?: Date;
    analyzePath?: string;
    autoloadHotcues?: boolean;
    beatGrid: BeatGrid | null;
    bitrate?: number;
    comment: string;
    cueAndLoops: CueAndLoop[] | null;
    dateAdded?: Date;
    discNumber?: number;
    duration: number;
    fileName: string;
    filePath: string;
    fileSize?: number;
    id: number;
    kuvoPublic?: boolean;
    mixName?: string;
    playCount?: number;
    rating: number;
    releaseDate?: string;
    sampleDepth?: number;
    sampleRate?: number;
    tempo: number;
    title: string;
    trackNumber?: number;
    waveformHd: WaveformHD | null;
    year?: number;
} & (withFKs extends WithFKs ? TrackFks : TrackRelations)

Represents a track.

Note, fields that are not optional will be set for all database request methods.

Type Parameters

Type declaration

  • OptionalanalyzeDate?: Date
  • OptionalanalyzePath?: string
  • OptionalautoloadHotcues?: boolean
  • beatGrid: BeatGrid | null

    Embedded beat grid information

  • Optionalbitrate?: number
  • comment: string
  • cueAndLoops: CueAndLoop[] | null

    Embedded cue and loop information

  • OptionaldateAdded?: Date
  • OptionaldiscNumber?: number
  • duration: number
  • fileName: string
  • filePath: string
  • OptionalfileSize?: number
  • id: number
  • OptionalkuvoPublic?: boolean
  • OptionalmixName?: string
  • OptionalplayCount?: number
  • rating: number
  • OptionalreleaseDate?: string
  • OptionalsampleDepth?: number
  • OptionalsampleRate?: number
  • tempo: number
  • title: string
  • OptionaltrackNumber?: number
  • waveformHd: WaveformHD | null

    Embedded HD Waveform information

  • Optionalyear?: number