Audio To Midi
Project description
from audio2midi.librosa_pitch_detector import Normal_Pitch_Det , Guitar_Pitch_Det
audio_path = "audio.mp3"
Normal_Pitch_Det().predict(audio_path)
Guitar_Pitch_Det().predict(audio_path)
from os import environ
from huggingface_hub import hf_hub_download
from shutil import unpack_archive
from pathlib import Path
from audio2midi.melodia_pitch_detector import Melodia
from platform import system as platform_system , architecture as platform_architecture
unpack_archive(hf_hub_download("shethjenil/Audio2Midi_Models",f"melodia_vamp_plugin_{'win' if (system := platform_system()) == 'Windows' else 'mac' if system == 'Darwin' else 'linux64' if (arch := platform_architecture()[0]) == '64bit' else 'linux32' if arch == '32bit' else None}.zip"),"vamp_melodia",format="zip")
environ['VAMP_PATH'] = str(Path("vamp_melodia").absolute())
Melodia().predict(audio_path)
from audio2midi.basic_pitch_pitch_detector import BasicPitch
from audio2midi.crepe_pitch_detector import Crepe
from audio2midi.violin_pitch_detector import Violin_Pitch_Det
from audio2midi.pop2piano import Pop2Piano
from torch import device as Device
from torch.cuda import is_available as cuda_is_available
device = Device("cuda" if cuda_is_available() else "cpu")
Crepe().predict(audio_path)
Pop2Piano(device=device).predict(audio_path)
Violin_Pitch_Det(device=device).predict(audio_path)
BasicPitch(device=device).predict(audio_path)
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
audio2midi-0.2.0.tar.gz
(55.8 kB
view details)
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 audio2midi-0.2.0.tar.gz.
File metadata
- Download URL: audio2midi-0.2.0.tar.gz
- Upload date:
- Size: 55.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b93381a4bac4d4f178347e4c984aa68e2c1d0bd496f81ed55042047addf5b386
|
|
| MD5 |
6cf657af081136f2bdd43e80181dcd7b
|
|
| BLAKE2b-256 |
c0c61ebf7484323cdf73fe63dc876092337464dfb28d15bb0edf40ce5d8c463c
|
File details
Details for the file audio2midi-0.2.0-py2.py3-none-any.whl.
File metadata
- Download URL: audio2midi-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 57.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f31df1bed705bce51b49c923bab6c95182ea898bb1174a5761c5d447ca22f744
|
|
| MD5 |
909fe35451fb28a5ea414c7cf91056bf
|
|
| BLAKE2b-256 |
3ccc6f65c7f113275e47c8a69b47bacc678f53baa9b9cae989b32569cbd0e8be
|