Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
qaqFei committed Oct 20, 2024
1 parent 777b4dc commit 87d53c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Chart_Functions_Phi.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ def _loadMoveEvents(es: list[dict]):
) for e in es
]
case _:
logging.warning(f"Unsupported format version: {fmtVersion}")
return [
Chart_Objects_Phi.judgeLineMoveEvent(
startTime = e.get("startTime", -1.0), endTime = e.get("endTime", -1.0),
start = e.get("start", 0.0) + 0.5, end = e.get("end", 0.0) + 0.5,
start2 = e.get("start2", 0.0) + 0.5, end2 = e.get("end2", 0.0) + 0.5
start = e.get("start", 0.0), end = e.get("end", 0.0),
start2 = e.get("start2", 0.0), end2 = e.get("end2", 0.0)
) for e in es
]

Expand Down
2 changes: 1 addition & 1 deletion Tool_Functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def Get_A_New_NoteId():
return note_id

def unpack_pos(number:int) -> tuple[int, int]:
return (number - number % 1000) // 1000,number % 1000
return (number - number % 1000) // 1000, number % 1000

def ease_out(x:float) -> float:
return math.sqrt(1.0 - (1.0 - x) ** 2)
Expand Down

0 comments on commit 87d53c9

Please sign in to comment.