Skip to content

Instantly share code, notes, and snippets.

View nomadicloudz's full-sized avatar

nomad nomadicloudz

View GitHub Profile
@nomadicloudz
nomadicloudz / beatfinder.py
Created November 2, 2024 07:23 — forked from gepron1x/beatfinder.py
Kdenlive beat sync
import argparse
import librosa # you need librosa to get this working
import datetime
def parse_delta(s):
date = datetime.datetime.strptime(s, "%H:%M:%S")
return datetime.timedelta(hours=date.hour, minutes=date.minute, seconds=date.second)