CoolFace
Apppublic

mtg-upf/audio-difficulty

sourceHugging Faceupdated 1y agoView on Hugging Face
2likes
App README

๐ŸŽผ 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

  1. 1.You upload an audio or video file, or paste a YouTube link.
  2. 2.The audio is transcribed to MIDI using a piano transcription model.
  3. 3.Three different difficulty models analyze the audio and generate predictions.
  4. 4.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

  • โ€”gradio for the interface
  • โ€”pydub and yt_dlp for audio processing
  • โ€”huggingface_hub to load model checkpoints
  • โ€”ffmpeg-python for format conversion

๐Ÿ”— Related