MatthewDorner / abcjs-vexflow-renderer

VexFlow renderer for ABC notation music using abcjs as parser.
GNU General Public License v3.0
23 stars 3 forks source link

Support ties/slurs #10

Open MatthewDorner opened 3 years ago

MatthewDorner commented 3 years ago

VexFlow supports this via Curve and StaveTie. I think Curve can be used for everything. The problem I've had so far is in the case where a tie/slur begins on the last note of the last measure of one line, and is meant to connect to a note at the beginning of the next line. If you tell VexFlow to do this like a normal tie/slur, it'll draw the curve across the entire page diagonally.

I've seen sheet music handle it like this: tie example

But I can't figure out how to do this in VexFlow. I tried inserting a GhostNote and drawing the curve between the real note and the ghost note, but it gives an error. I think it was something like getTiePositionX doesn't exist.