Spaces:
Running
Running
ziqiangao
commited on
Commit
·
570e595
1
Parent(s):
bfac17b
attempt to fix drift
Browse files
app.py
CHANGED
@@ -119,9 +119,7 @@ def render_frame(params):
|
|
119 |
img = Image.new('RGB', (width, height), normalizeColour(dominant_color))
|
120 |
d = ImageDraw.Draw(img)
|
121 |
|
122 |
-
s = (sr
|
123 |
-
if s > len(samples_array):
|
124 |
-
return
|
125 |
e = center_to_top_left(getRenderCords(samples_array, getTrigger(s, samples_array, max=oscres),res=oscres,size=(width, height)), width=width, height=height)
|
126 |
d.line(e, fill='#fff', width=2)
|
127 |
|
|
|
119 |
img = Image.new('RGB', (width, height), normalizeColour(dominant_color))
|
120 |
d = ImageDraw.Draw(img)
|
121 |
|
122 |
+
s = math.floor((sr / fps) * n)
|
|
|
|
|
123 |
e = center_to_top_left(getRenderCords(samples_array, getTrigger(s, samples_array, max=oscres),res=oscres,size=(width, height)), width=width, height=height)
|
124 |
d.line(e, fill='#fff', width=2)
|
125 |
|