Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlGao4 committed Sep 21, 2024
1 parent 5b87098 commit bd11f2c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions read-decrypted-sfz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
// <?xml version="1
return (new Uint8Array(arrbuf)).slice(0, 16).every((v, i) => v === xml_start[i]);
};
(function () {
Expand Down
28 changes: 15 additions & 13 deletions sha1-list/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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

Expand Down

0 comments on commit bd11f2c

Please sign in to comment.