Skip to content

Instantly share code, notes, and snippets.

View usworked's full-sized avatar
🤒
Out working

Ubaid Seth usworked

🤒
Out working
  • Tejas
View GitHub Profile
@usworked
usworked / sync.py
Created October 24, 2023 22:34 — forked from joaoreboucas1/sync.py
Command-line tool in Python that synchronizes a funk beat into a song (must be .wav format)
from math import floor
from pathlib import Path
import sys
import os
import numpy as np
import librosa
import librosa.beat
import soundfile as sf
def synchronize(file_path_1, file_path_2, output_path="mashup.wav", second_iteration=False):