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...)
Metadata
Release files for sound-to-midi 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sound_to_midi-0.0.3.tar.gz | 16.8 kB | Without provenance | Details for sound_to_midi-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sound_to_midi-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for sound_to_midi-0.0.3-py3-none-any.whl |
Total release size: 34.9 kB
Release files / sound_to_midi-0.0.3.tar.gz
| Download URL | sound_to_midi-0.0.3.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c5bbe13eee3441629f18d9bb3efb353b66d7e0969cea1e59f7155da633ce3ae
|
|
BLAKE2b-256 checksum How to use checksums |
0be6ba3fd77719133275e18e54844aeb1a5c2d3e19501370b1dc668d3ed710ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.12
|
Release files / sound_to_midi-0.0.3-py3-none-any.whl
| Download URL | sound_to_midi-0.0.3-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2d55acca7339da502f67f6705d2aa17f9d3cd8d71ccb26fb51850af8cefb9c8
|
|
BLAKE2b-256 checksum How to use checksums |
d05230cc54a02cb6b77ad306b4e94a7b86b124e69132b0922413cdf5f70af7ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.12
|
Security for sound-to-midi 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.