File size: 1,096 Bytes
5e5a371
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Basic Pitch - Audio to MIDI

A Hugging Face Space for converting audio files to MIDI using Spotify's Basic Pitch model.

## Features

- **Automatic Music Transcription (AMT):** Converts audio to MIDI notation
- **Instrument Agnostic:** Works with vocals, strings, brass, woodwinds, etc.
- **CPU Optimized:** Lightweight model designed for CPU inference
- **Polyphonic Detection:** Detects multiple simultaneous notes
- **Easy to Use:** Simple Gradio web interface

## How to Use

1. Upload an audio file (`.wav`, `.mp3`, `.ogg`, `.flac`, `.m4a`)
2. Click "Transcribe to MIDI"
3. Download the resulting MIDI file

## Model Information

- **Model:** ICASSP 2022 (Spotify Basic Pitch)
- **Size:** ~20 MB
- **Inference Time:** ~1-2 seconds per minute of audio (CPU)
- **Hardware:** No GPU required

## Best Practices

- Use mono audio for best results
- Avoid heavy background noise
- Works best with single instruments
- Clear, high-quality recordings produce better results

## References

- [GitHub Repository](https://github.com/spotify/basic-pitch)
- [Paper](https://arxiv.org/abs/2209.00799)