tja2fumen.py
: Make noteTypes
a global constant
This commit is contained in:
parent
a1f1f8407a
commit
8c707a50d2
@ -7,6 +7,23 @@ tja2fumen_version = "v0.1"
|
|||||||
|
|
||||||
branchNames = ("normal", "advanced", "master")
|
branchNames = ("normal", "advanced", "master")
|
||||||
|
|
||||||
|
noteTypes = {
|
||||||
|
0x1: "Don", # ドン
|
||||||
|
0x2: "Don", # ド
|
||||||
|
0x3: "Don", # コ
|
||||||
|
0x4: "Ka", # カッ
|
||||||
|
0x5: "Ka", # カ
|
||||||
|
0x6: "Drumroll",
|
||||||
|
0x7: "DON",
|
||||||
|
0x8: "KA",
|
||||||
|
0x9: "DRUMROLL",
|
||||||
|
0xa: "Balloon",
|
||||||
|
0xb: "DON", # hands
|
||||||
|
0xc: "Kusudama",
|
||||||
|
0xd: "KA", # hands
|
||||||
|
0x62: "Drumroll" # ?
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
def readFumen(fumenFile, byteOrder=None, debug=False):
|
def readFumen(fumenFile, byteOrder=None, debug=False):
|
||||||
if type(fumenFile) is str:
|
if type(fumenFile) is str:
|
||||||
@ -15,22 +32,6 @@ def readFumen(fumenFile, byteOrder=None, debug=False):
|
|||||||
file = fumenFile
|
file = fumenFile
|
||||||
size = os.fstat(file.fileno()).st_size
|
size = os.fstat(file.fileno()).st_size
|
||||||
|
|
||||||
noteTypes = {
|
|
||||||
0x1: "Don", # ドン
|
|
||||||
0x2: "Don", # ド
|
|
||||||
0x3: "Don", # コ
|
|
||||||
0x4: "Ka", # カッ
|
|
||||||
0x5: "Ka", # カ
|
|
||||||
0x6: "Drumroll",
|
|
||||||
0x7: "DON",
|
|
||||||
0x8: "KA",
|
|
||||||
0x9: "DRUMROLL",
|
|
||||||
0xa: "Balloon",
|
|
||||||
0xb: "DON", # hands
|
|
||||||
0xc: "Kusudama",
|
|
||||||
0xd: "KA", # hands
|
|
||||||
0x62: "Drumroll" # ?
|
|
||||||
}
|
|
||||||
song = {}
|
song = {}
|
||||||
|
|
||||||
def readStruct(fmt, seek=None):
|
def readStruct(fmt, seek=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user