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__
(self, 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__
(self[, title, artist, release, …])Create a file-level Metadata object. dumps
(self, \*\*kwargs)Serialize the JObject to a string. keys
(self)Return a list of the attributes of the object. loads
(string)De-serialize a JObject search
(self, \*\*kwargs)Query this object (and its descendants). update
(self, \*\*kwargs)Update the attributes of a JObject. validate
(self[, strict])Validate a JObject against its schema -