DEV Community

Medea
Medea

Posted on

Melody to sheet music

So I was listening to a song, and I was wondering how to play it on the piano.
Then I realized how cool it would be if I could make a tool which could convert an audio file to sheet music.

Is there something like that already?
What tools could I use to help make something that like?

Top comments (7)

Collapse
 
ben profile image
Ben Halpern

This is a tough problem, but here is how I'd approach it:

  • Find a classification library that can work with some kind of data you can derive from sound files.
  • Find the sheet music for all of the sound files that you have data from.
  • Train a classification model by labeling all your known sound files with known sheet music.

If your data set is big enough and high enough quality, you should be able to fiddle with that approach until you've reliably trained a machine learning classification model to accurately predict sheet music for arbitrary sound files.

For all intents and purposes, acquiring and labeling this data seems like it would be really tough to pull off. You're talking about huge amounts of information here.

Collapse
 
vulcanwm profile image
Medea

Thanks for the help!
I’ll try this method out.

Collapse
 
luccabiagi profile image
Lucca Biagi de Paula Prado

Maybe you could use a mix of musicbrainz.org/ and musescore.
Like you use musicbrainz to discover which song it is and use musescore to find a sheet based on the metadata obtained from musicbrainz. It is not converting, so if is a totally new music probably would get any result at all...

Collapse
 
vulcanwm profile image
Medea

That's a good way to do it, thanks!

 
vulcanwm profile image
Medea

Ah okay, thanks for the help!
I’ll think of another startup idea then lmao

 
vulcanwm profile image
Medea

Thanks for reaching out, but does Chordify detect the chords by itself, or do people enter it?

Collapse
 
vulcanwm profile image
Medea

No that just has data for the chords of the song, not the melody, and definitely no sheet music.