GNU
LilyPond is a free software program for engraving sheet music. It uses a simple ASCII notation for music, which is then compiled into PDF (via PostScript) or into SVG. LilyPond can also automatically generate MIDI files from music specified in the LilyPond format.
https://github.com/0xfe/vexflow is another open source - on Javascript