jams.FileMetadata
- class jams.FileMetadata(title='', artist='', release='', duration=None, identifiers=None, jams_version=None)[source]
Bases:
JObjectMetadata for a given audio file.
- __init__(title='', artist='', release='', duration=None, identifiers=None, jams_version=None)[source]
Create a file-level Metadata object.
- Parameters:
- titlestr
Name of the recording.
- artiststr
Name of the artist / musician.
- releasestr
Name of the release
- durationnumber >= 0
Time duration of the file, in seconds.
- identifiersjams.Sandbox
Sandbox of identifier keys (eg, musicbrainz ids)
- jams_versionstr
Version of the JAMS Schema.
Attributes
typeThe 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