Closed DidierMalenfant closed 5 months ago
I'm trying to make sure I'm not going crazy and missing the obvious but in ni-stem.py:
ni-stem.py
metaData = [] if metadataFile: fileObj = codecs.open(metadataFile, encoding="utf-8") try: metaData = json.load(fileObj) except IOError: raise except Exception as e: raise RuntimeError("Error while reading metadata file") finally: fileObj.close() numStems = len(stemTracks) numMetaEntries = len(metaData["stems"])
if no metataFile is passed, metaData is a list which means metaData["stems"] can't' work right?
metaData
metaData["stems"]
Similar thing with _defaultMetadata which is just a list of stem metadata entries but is also accessed with:
_defaultMetadata
self._defaultMetadata["stems"]
which also seems like it can't work.
Am I missing something or is everyone passing a metadata file when converting and therefore missing those bugs?
Thanks!
Hello Didier,
This is the file you are looking for: https://github.com/axeldelafosse/stemgen/blob/master/metadata.json
Thank you for using Stemgen!
I'm trying to make sure I'm not going crazy and missing the obvious but in
ni-stem.py
:if no metataFile is passed,
metaData
is a list which meansmetaData["stems"]
can't' work right?Similar thing with
_defaultMetadata
which is just a list of stem metadata entries but is also accessed with:which also seems like it can't work.
Am I missing something or is everyone passing a metadata file when converting and therefore missing those bugs?
Thanks!