-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathosu_common.py
58 lines (51 loc) · 1007 Bytes
/
osu_common.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import numpy as np
TOKEN_TYPES=['none','circle','slider_start','slider_end','slider_reverse','spinner_start','spinner_end']
SPEED_TYPES=['still',
'slowest',
'slower',
'slow',
'milder',
'mild',
'fast',
'faster',
'rapid',
'fly']
SPEED_BOUND=np.array([1e-6,
0.1,
0.18,
0.32,
0.56,
1.0,
1.8,
3.16,
5.62])
class IDX_HIT:
POS=0
TYPE=1
POSITION_X=2
POSITION_Y=3
TC_INDEX=4
BEAT_ID=5
QUANTIZED_DIST=6
QUANTIZED_UNIT=7
SPEED=8
class IDX_KEYPOINT:
FRAME_ID=0
HIT_TYPE=1
POSITION_X=2
POSITION_Y=3
SPEED=4
STATE=5
BEAT_LEVEL=6
class ENUM_TOKEN:
NONE=0
CIRCLE=1
SLIDER_START=2
SLIDER_END=3
SLIDER_REVERSE=4
SPINNER_START=5
SPINNER_END=6
class ENUM_CURRENT_STATE:
NONE=0
SLIDER=1
SPINNER=2