Skip to content

Instantly share code, notes, and snippets.

View jsleep's full-sized avatar

Jon Sleep jsleep

View GitHub Profile
@jsleep
jsleep / cqt2midi.py
Last active April 19, 2018 22:21
Rough transcription from audio to midi using CQT and thresholding.
import librosa
import numpy as np
import pretty_midi
from __future__ import division
#CLI Parameters
audio_fn = '../data/wav/Bounce.wav'
sr = 22050
min_midi = 24