ringw / vexflow

A JavaScript library for rendering music notation and guitar tablature.
http://www.vexflow.com
71 stars 23 forks source link

Tempo support #5

Open MichaelHills opened 9 years ago

MichaelHills commented 9 years ago

Hi there, I was wondering how hard it would be to add tempo support? Just displaying something simple like:

image

I don't mind doing it myself, but I'm not sure where the right place in the code is. Also I don't know what your dev cycle is and how to build the code to actually develop and test it.

ringw commented 8 years ago

Hi, sorry for the very late reply. I would recommend updating Vex.Flow.Backend.MusicXML.prototype.getMeasure to look for the MusicXML tempo indicator, and then set some tempo property on the Measure object indicating that there should be a tempo marker. Then Vex.Flow.DocumentFormatter.prototype.createVexflowStave would have to create the VexFlow tempo indicator from that property (but only for the top Stave!)