jams.FileMetadata

class jams.FileMetadata(title='', artist='', release='', duration=None, identifiers=None, jams_version=None)[source]

Bases: jams.core.JObject

Metadata for a given audio file.

__init__(title='', artist='', release='', duration=None, identifiers=None, jams_version=None)[source]

Create a file-level Metadata object.

Parameters:
title: str

Name of the recording.

artist: str

Name of the artist / musician.

release: str

Name of the release

duration: number >= 0

Time duration of the file, in seconds.

identifiers : jams.Sandbox

Sandbox of identifier keys (eg, musicbrainz ids)

jams_version: str

Version of the JAMS Schema.

Attributes

type The type (class name) of a derived JObject type

Methods

__init__([title, artist, release, duration, …]) Create a file-level Metadata object.
dumps(**kwargs) Serialize the JObject to a string.
keys() Return a list of the attributes of the object.
loads(string) De-serialize a JObject
search(**kwargs) Query this object (and its descendants).
update(**kwargs) Update the attributes of a JObject.
validate([strict]) Validate a JObject against its schema