checkForDuplicateLibraryFiles=set()#lib ids. only one lib with the same id is allowed.
forfinbasePath.glob('*.tembro'):
iff.is_file()andf.suffix==".tembro":
iff.is_file()and"000 - Default"inf.name:
logger.warning(f"Found Default instrument id=000 in sample directory. We already have that included. Skipping.")
eliff.is_file()andf.suffix==".tembro":
#First load the library (this is .ini parsing, not sample loading, so it is cheap) and create a library object
#It will not create jack ports
try:
@ -284,6 +287,9 @@ class Data(TemplateData):
forlibSerializedinserializedData["libraries"]:
libObj=self.libraries[libSerialized["id"]]
forinstrSerializedinlibSerialized["instruments"]:
ifnotinstrSerialized["id"]inlibObj.instruments:
logger.error(f"ID {libSerialized['id']}-{instrSerialized['id']} is in the save file but could not be found in the actual instruments. Tembro never removes production instruments. This may be a development oversight and is by definition harmless.")