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.1.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.1.0.tar.gz.
File metadata
- Download URL: audio2midi-0.1.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 |
e560ccf8253da5610e715bc544bfee6d1205ec50e67a424664f310ff6a2d0c2a
|
|
| MD5 |
17893162983a93fbac4748593f9fd70b
|
|
| BLAKE2b-256 |
d56c9322b4add2ab4fba8d9f09b1589db6c2d3e3e3dcd7c592f02c529def71d9
|
File details
Details for the file audio2midi-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: audio2midi-0.1.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 |
7603ac839e767f850aa724ea92e0856a4d709ea085785c0d66a77b0e1cac2992
|
|
| MD5 |
21ff7d34657abfab7cafb6ad4ad6485d
|
|
| BLAKE2b-256 |
c75c2d641cbbea9f8e2cd3c12245854393df275462f286d03fbebcc45efaa60b
|