Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sheet music library

Tags:

I'm a python hacker looking to build a sheet music app. I'm comfortable with reading/understanding sheet music (played piano for many years). Here are my complete newbie questions..

Is there a standard for representing notes digitally? I don't want to reinvent any wheels.

Given a sequence of notes and durations, is there a library for displaying these in a sheet music format?

Basically I'm looking for a place to get started. I'm not heavily into graphics, so a existing open-source library would be awesome. If none exists in Python, I'm competent at Java/Javascript/C as well.

Thanks

like image 935
Gibbutz Avatar asked Mar 23 '11 20:03

Gibbutz


People also ask

Is there a library for sheet music?

A brief selection of free sites offering sheet music and scores online: IMSLP/Petrucci Music Library: International Music Score Library Project, sharing the world's public domain music. Choral Public Domain Library: Free choral/vocal scores, texts, translations, and other useful information.

Where can I find music sheets for free?

Musescore.com. The world's largest free sheet music catalog and community.


2 Answers

Take a look at lilypond. It uses LaTeX to typeset sheet music. Its input format is simple text, and can be generated pretty easily with Python or whatever.

Abjad is a "Python API for Formalized Score Control" and a wrapper around lilypond, but I haven't used it and so can't vouch for it.

like image 148
nmichaels Avatar answered Dec 04 '22 21:12

nmichaels


As far as I know, abc notation is still the de facto standard text format in traditional/folk music circles. There is quite a bit of software available for it, including abctool and abc2ly (part of GNU LilyPond), both of which are written in python. Being a self-described python hacker, I imagine you could turn either of these into a library without much trouble.

like image 37
ʇsәɹoɈ Avatar answered Dec 04 '22 21:12

ʇsәɹoɈ