Converts audio to midi.
Project description
Audio to midi converter
Follow this guide for installation and usage.
For information about how it works, read the whitepaper.
Quickstart guides
Installation from Github repo
git clone https://github.com/tiagoft/audio_to_midi.git
cd audio_to_midi
python -m build
pip install .\dist\audio_to_midi-0.0.1-py3-none-any.whl
Usage as a Python library
import sys
import librosa
from audio_to_midi.monophonic import wave_to_midi
print("Starting...")
file_in = sys.argv[1]
file_out = sys.argv[2]
y, sr = librosa.load(file_in, sr=None)
print("Audio file loaded!")
midi = wave_to_midi(y, sr=sr)
print("Conversion finished!")
with open (file_out, 'wb') as f:
midi.writeFile(f)
print("Done. Exiting!")
Command-line interface (CLI)
After installing:
w2m input_file.wav output_file.mid
(supports most common formats like wav, aiff, mp3...)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sound_to_midi-0.0.3.tar.gz.
File metadata
- Download URL: sound_to_midi-0.0.3.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c5bbe13eee3441629f18d9bb3efb353b66d7e0969cea1e59f7155da633ce3ae
|
|
| MD5 |
5a08b4657eda0d55697dd95d0bc595cd
|
|
| BLAKE2b-256 |
0be6ba3fd77719133275e18e54844aeb1a5c2d3e19501370b1dc668d3ed710ad
|
File details
Details for the file sound_to_midi-0.0.3-py3-none-any.whl.
File metadata
- Download URL: sound_to_midi-0.0.3-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2d55acca7339da502f67f6705d2aa17f9d3cd8d71ccb26fb51850af8cefb9c8
|
|
| MD5 |
672470c0176a7d4709cc5dfbeb023f95
|
|
| BLAKE2b-256 |
d05230cc54a02cb6b77ad306b4e94a7b86b124e69132b0922413cdf5f70af7ba
|