Skip to main content

Command line tool for converting Audio to MIDI.

Project description

Midify is a command line tool for converting audio data in MIDI data identifying notes positions and frequencies.

Installation

Inside a virtualenv run

pip install midify

Usage

The simplest usage from the cli:

midify input.wav --output output.mid

You can also use it programatically from python or a jupyter notebook:

import scipy
from midify import midify

rate,data = scipy.io.wavfile.read("input.wav")
mf = midify(data=data,rate=rate)

waveform = mf.fluidsynth(fs=44100)
IPython.display.Audio(waveform, rate=44100)

Algorithm

The algorithm consists of two steps; first we use scipy.signal.find_peaks to find the beggining of each note; after that the program uses scipy FFT to find the first peak in the frequency spectrum which we assume is the root harmonic (the played note).

Acknowledgments

Made with Love by Daniel Santana

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

midify-0.3.2.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file midify-0.3.2.tar.gz.

File metadata

  • Download URL: midify-0.3.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for midify-0.3.2.tar.gz
Algorithm Hash digest
SHA256 557c33adaa17028504482e969238cba2e9486b135a975129011607000be946d6
MD5 e00f38d59bb92211d235f0bfd9aa5ca3
BLAKE2b-256 4bab4137e2de1298f623ce8daece98bab9075d5b7b2ddeab34e1216e02770a37

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page