mtg-upf/audio-difficulty
2
๐ผ Music Difficulty Estimator
This Gradio app estimates the difficulty of piano pieces based on uploaded audio (MP3/MP4) or YouTube links. It uses pretrained models to generate a MIDI transcription and predict difficulty from three musical perspectives:
- CQT-based representation
- Piano roll representation
- Multimodal embeddings
๐ How it works
- You upload an audio or video file, or paste a YouTube link.
- The audio is transcribed to MIDI using a piano transcription model.
- Three different difficulty models analyze the audio and generate predictions.
- You can listen to the extracted MP3 and the generated MIDI.
๐ฆ Model loading
All models are stored separately in the pramoneda/audio model repository and are downloaded dynamically via huggingface_hub.
๐ Input formats
- MP3 audio
- MP4 video (audio extracted automatically)
- YouTube links
โจ Built with
gradiofor the interfacepydubandyt_dlpfor audio processinghuggingface_hubto load model checkpointsffmpeg-pythonfor format conversion
