diff --git a/read-decrypted-sfz.py b/read-decrypted-sfz.py index f5254dc..7b1092d 100644 --- a/read-decrypted-sfz.py +++ b/read-decrypted-sfz.py @@ -101,6 +101,7 @@ def on_message_find_addr(message, data): }; var is_xml_start = (arrbuf) => { const xml_start = new Uint8Array([0x3c, 0x3f, 0x78, 0x6d, 0x6c, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x3d, 0x22, 0x31]); + // v === xml_start[i]); }; (function () { diff --git a/sha1-list/README.md b/sha1-list/README.md index 8ed9d96..da39a54 100644 --- a/sha1-list/README.md +++ b/sha1-list/README.md @@ -15,19 +15,6 @@ import os import pathlib os.chdir("Your Muse Sounds folder") # TODO: Fill this -hashes = { - i: list(j) - for i, j in itertools.groupby( - ( - ( - i[2:].replace("\\", "/"), - (os.path.getsize(i), hashlib.sha1(pathlib.Path(i).read_bytes(), usedforsecurity=False).hexdigest()), - ) - for i in glob.glob("./*/**/*.*", recursive=True) - ), - lambda x: x[0].split("/")[0], - ) -} # TODO: Uncomment this and fill the version number """ versions = { @@ -42,6 +29,21 @@ versions = { "Muse Woodwinds": "xxx" } """ +hashes = {} +for i in versions: + hashes.update({ + k: list(v) + for k, v in itertools.groupby( + ( + ( + k[2:].replace("\\", "/"), + (os.path.getsize(k), hashlib.sha1(pathlib.Path(k).read_bytes(), usedforsecurity=False).hexdigest()), + ) + for k in glob.glob(f"./{i}/**/*.*", recursive=True) + ), + lambda x: x[0].split("/")[0], + ) + }) os.chdir("Your Muse Sounds SHA1 List folder") # TODO: Fill this