Zuletzt aktiv 1743119100

yorgei22 hat die Gist bearbeitet 1743119100. Zu Änderung gehen

1 file changed, 2 insertions

eontimer_to_flowtimer.py

@@ -1,3 +1,5 @@
1 + # one of the first python scripts i made yipee
2 +
1 3 from math import floor
2 4
3 5 FRAME_RATE = 59.8261

yorgei22 hat die Gist bearbeitet 1712115361. Zu Änderung gehen

Keine Änderungen

yorgei22 hat die Gist bearbeitet 1712115348. Zu Änderung gehen

Keine Änderungen

yorgei22 hat die Gist bearbeitet 1712115325. Zu Änderung gehen

Keine Änderungen

yorgei22 hat die Gist bearbeitet 1712115306. Zu Änderung gehen

1 file changed, 28 insertions

eontimer_to_flowtimer.py(Datei erstellt)

@@ -0,0 +1,28 @@
1 + from math import floor
2 +
3 + FRAME_RATE = 59.8261
4 + TARGET_SEC = int(input("Target Seconds: "))
5 + TARGET_DELAY = int(input("Target Delay: "))
6 + CALIBRATED_DELAY = int(input("Calibrated Delay: "))
7 + CALIBRATED_SECONDS = int(input("Calibrated Seconds: "))
8 + ONE_MIN = 60000
9 + MINIMUM_TIME_MS = 14000
10 + PRETIMER = 5000
11 +
12 +
13 + def toms(ms):
14 + return floor(ms / FRAME_RATE)
15 +
16 +
17 + secondTimer = (toms(TARGET_DELAY * 1000 - CALIBRATED_DELAY * 1000) + CALIBRATED_SECONDS * 1000)
18 + firstTimer = ((TARGET_SEC*1000 - secondTimer) % ONE_MIN + 200 )
19 + secondTimer += 5000
20 + firstTimer += 5000
21 +
22 + if firstTimer < MINIMUM_TIME_MS:
23 + firstTimer = firstTimer + ONE_MIN
24 +
25 +
26 + minutesBefore = floor((firstTimer + secondTimer) / ONE_MIN)
27 +
28 + print(f'{secondTimer}/{firstTimer}/{PRETIMER}\nMinutes Before Target: {minutesBefore}')
Neuer Älter