Compare commits
No commits in common. "ea5ba44e34558d68d81360a38bcb75897d3fe4a8" and "44cd612cfc54ce66fc5877571cd9e6e5f144a07a" have entirely different histories.
ea5ba44e34
...
44cd612cfc
|
@ -1,2 +0,0 @@
|
||||||
*.csv
|
|
||||||
.venv
|
|
File diff suppressed because it is too large
Load Diff
53
posu.py
53
posu.py
|
@ -1,53 +0,0 @@
|
||||||
"""
|
|
||||||
HITOBJECTS SYNTAX:
|
|
||||||
x,y,type,hitSound,objectParams,hitSample
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
class SliderParams():
|
|
||||||
def __init__(self, curvePoints, curveType="B", slides=1, length=100):
|
|
||||||
self.curveType = curveType # B=bézier, L=linear, P=perfect circle
|
|
||||||
self.curvePoints = curvePoints # '|x1:y1|x2:y2,'
|
|
||||||
self.slides: int = slides
|
|
||||||
self.length: float = length #visual length in osu px
|
|
||||||
def __str__(self):
|
|
||||||
curvePoints = [f"{x}:{y}" for x, y in self.curvePoints]
|
|
||||||
curvePoints = "|".join(curvePoints)
|
|
||||||
return f"{self.curveType}|{curvePoints},{self.slides},{self.length},,"
|
|
||||||
|
|
||||||
class HitObject():
|
|
||||||
"""
|
|
||||||
Base class for hit objects.
|
|
||||||
(x, y) int*int: position tuple
|
|
||||||
time: int: time in ms where the object is placed.
|
|
||||||
type: int
|
|
||||||
hitsound: assumed to be the default (0)
|
|
||||||
objectParams: awa (comma separated list)
|
|
||||||
hitSample: don't write anything
|
|
||||||
"""
|
|
||||||
def __init__(self, pos=(0, 0), time=0, objectType=0, newCombo=False, objectParams=""):
|
|
||||||
self.pos = pos
|
|
||||||
self.time = time
|
|
||||||
self.objectType = objectType
|
|
||||||
self.newCombo = newCombo*2
|
|
||||||
self.objectParams = objectParams
|
|
||||||
def __str__(self):
|
|
||||||
return (f"{self.pos[0]},{self.pos[1]},{self.time},{self.objectType+self.newCombo},0,{self.objectParams},")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def import_hitobjects(filename: str):
|
|
||||||
with open(filename, 'r') as file:
|
|
||||||
lines = f.readlines()
|
|
||||||
for line in lines:
|
|
||||||
params = line.split(",")
|
|
||||||
if params[3] ==
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"""
|
|
||||||
circle = HitObject((120, 120),250,0,1)
|
|
||||||
slider = HitObject((120, 120), 250, 1, False, SliderParams(((130, 130), (110, 110))))
|
|
||||||
"""
|
|
|
@ -1,34 +0,0 @@
|
||||||
audioread==3.0.1
|
|
||||||
certifi==2024.2.2
|
|
||||||
cffi==1.16.0
|
|
||||||
charset-normalizer==3.3.2
|
|
||||||
contourpy==1.2.1
|
|
||||||
cycler==0.12.1
|
|
||||||
decorator==5.1.1
|
|
||||||
fonttools==4.51.0
|
|
||||||
idna==3.7
|
|
||||||
joblib==1.4.2
|
|
||||||
kiwisolver==1.4.5
|
|
||||||
lazy_loader==0.4
|
|
||||||
librosa==0.10.2
|
|
||||||
llvmlite==0.42.0
|
|
||||||
matplotlib==3.8.4
|
|
||||||
msgpack==1.0.8
|
|
||||||
numba==0.59.1
|
|
||||||
numpy==1.26.4
|
|
||||||
packaging==24.0
|
|
||||||
pillow==10.3.0
|
|
||||||
platformdirs==4.2.1
|
|
||||||
pooch==1.8.1
|
|
||||||
pycparser==2.22
|
|
||||||
pyparsing==3.1.2
|
|
||||||
python-dateutil==2.9.0.post0
|
|
||||||
requests==2.31.0
|
|
||||||
scikit-learn==1.4.2
|
|
||||||
scipy==1.13.0
|
|
||||||
six==1.16.0
|
|
||||||
soundfile==0.12.1
|
|
||||||
soxr==0.3.7
|
|
||||||
threadpoolctl==3.5.0
|
|
||||||
typing_extensions==4.11.0
|
|
||||||
urllib3==2.2.1
|
|
|
@ -0,0 +1,99 @@
|
||||||
|
time,amplitude
|
||||||
|
74.834,27830
|
||||||
|
75.003,32767
|
||||||
|
75.087,32767
|
||||||
|
75.508,32767
|
||||||
|
75.593,25442
|
||||||
|
75.677,29518
|
||||||
|
75.846,32767
|
||||||
|
76.014,26270
|
||||||
|
76.183,32767
|
||||||
|
76.267,27283
|
||||||
|
76.52,32767
|
||||||
|
76.857,32767
|
||||||
|
77.194,32767
|
||||||
|
77.278,26713
|
||||||
|
77.531,32767
|
||||||
|
77.615,27054
|
||||||
|
77.699,29431
|
||||||
|
77.868,32767
|
||||||
|
77.952,27120
|
||||||
|
78.037,31654
|
||||||
|
78.205,32767
|
||||||
|
78.542,32767
|
||||||
|
78.626,24911
|
||||||
|
78.711,25315
|
||||||
|
78.879,32767
|
||||||
|
78.964,29835
|
||||||
|
79.216,32767
|
||||||
|
79.301,27455
|
||||||
|
79.469,27799
|
||||||
|
79.553,32767
|
||||||
|
79.722,25509
|
||||||
|
79.89,32767
|
||||||
|
79.975,25061
|
||||||
|
80.059,25816
|
||||||
|
80.228,32767
|
||||||
|
80.312,28958
|
||||||
|
80.48,29818
|
||||||
|
80.565,32767
|
||||||
|
80.902,32767
|
||||||
|
81.239,32767
|
||||||
|
81.323,26323
|
||||||
|
81.407,26077
|
||||||
|
81.576,32767
|
||||||
|
81.829,30393
|
||||||
|
81.913,32767
|
||||||
|
82.166,27691
|
||||||
|
82.25,32767
|
||||||
|
82.587,32767
|
||||||
|
82.671,27114
|
||||||
|
82.924,32767
|
||||||
|
83.008,28674
|
||||||
|
83.093,27410
|
||||||
|
83.261,32767
|
||||||
|
83.346,25455
|
||||||
|
83.43,27424
|
||||||
|
83.598,32767
|
||||||
|
83.851,25760
|
||||||
|
83.935,32767
|
||||||
|
84.02,27722
|
||||||
|
84.104,32379
|
||||||
|
84.273,32767
|
||||||
|
84.525,24740
|
||||||
|
84.61,32767
|
||||||
|
84.694,27458
|
||||||
|
84.778,27806
|
||||||
|
84.947,32767
|
||||||
|
85.115,31308
|
||||||
|
85.284,32767
|
||||||
|
85.368,26439
|
||||||
|
85.621,32492
|
||||||
|
85.705,29965
|
||||||
|
85.958,32767
|
||||||
|
86.126,32767
|
||||||
|
86.211,29632
|
||||||
|
86.295,32767
|
||||||
|
86.632,32767
|
||||||
|
86.716,26059
|
||||||
|
86.801,25544
|
||||||
|
86.969,32767
|
||||||
|
87.306,32767
|
||||||
|
87.39,25362
|
||||||
|
87.475,30738
|
||||||
|
87.643,32767
|
||||||
|
87.812,28238
|
||||||
|
87.896,25271
|
||||||
|
87.98,32767
|
||||||
|
88.233,26175
|
||||||
|
88.317,32767
|
||||||
|
88.486,25579
|
||||||
|
88.655,32767
|
||||||
|
88.739,27065
|
||||||
|
88.823,29194
|
||||||
|
88.992,32767
|
||||||
|
89.076,26450
|
||||||
|
89.16,25234
|
||||||
|
89.329,32767
|
||||||
|
89.413,29012
|
||||||
|
89.497,28347
|
|
Loading…
Reference in New Issue