Ask Lemmy
A Fediverse community for open-ended, thought provoking questions
Please don't post about US Politics. If you need to do this, try !politicaldiscussion
Rules: (interactive)
1) Be nice and; have fun
Doxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them
2) All posts must end with a '?'
This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?
3) No spam
Please do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.
4) NSFW is okay, within reason
Just remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com.
NSFW comments should be restricted to posts tagged [NSFW].
5) This is not a support community.
It is not a place for 'how do I?', type questions.
If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.
Reminder: The terms of service apply here too.
Partnered Communities:
Logo design credit goes to: tubbadu
view the rest of the comments
As others have alluded, MIDI data is the key to what you want. MIDI is essentially sheet music for computers, so you feed a virtual instrument that MIDI file, and it plays it for you. Most software even refers to the visualized MIDI data as the "piano roll."
You can see the little piano keys represented here, and the notes that will be played as the file is played through the selected instrument. There are numerous virtual representations of all kinds of piano.
The problem is making any kind of transcriptions of copy written songs is a legal grey area, and many sheet music and guitar tab sites get shut down.
The programs the others are discussing, turning mp3 straight to midi have issues because it's lumping the data for all the instruments (likely more than you realize, sometimes dozens per song when things are layered to sound bigger) into a single feed. All those instruments interplay with each other differently harmonically, and are played with different techniques. A piano is played differently than an organ, let alone something like a trumpet, so the software doesn't know how to filter what is trying to be created artistically.
So you can do it and it's relatively straightforward, but not something you're going to do on the fly is in a legal grey area.
I can go into any of this more if you want deeper explanations.