Vexflow: Using Vexflow Glyphs or Other Music Glyphs in HTML

Created on 17 Feb 2017  路  5Comments  路  Source: 0xfe/vexflow

Vexflow draws such beautiful accidentals, I would love to be able to use the Vexflow flat, sharp and natural on my HTML pages. Is there a way to access the Vexflow accidentals as glyphs?

Or does anyone have a better solution for using accidentals in my HTML text?

I am trying to avoid loading a special music font like Opus Chords Sans Standard. Thank you!!

question

Most helpful comment

You could do it with a custom element. Take a look at this fiddle which I may have gone a bit overkill on.

Alternately, just use unicode symbols in your HTML.

All 5 comments

You could do it with a custom element. Take a look at this fiddle which I may have gone a bit overkill on.

Alternately, just use unicode symbols in your HTML.

@gristow You wrote some important, can you put in the documentation?

This is really off of the normal use-case for VexFlow, so I think it's probably not worth putting in the docs.

Bravo @gristow ! I think that it's worth putting in the docs if there's a place for it, only so it doesn't disappear -- it's both a creative use of Vexflow and of customElements -- which is still new enough that this too would be exciting to people as well. :-)

Wow! Thank you for your elaborate fiddle! I agree, it is a creative use of Vexflow and should be added to the docs. I have tried using unicode symbols in HTML but was frustrated by their awkward spacing. Perhaps I was not using the right font. Thanks for this helpful information!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gciluffo picture gciluffo  路  4Comments

CrystalShardz picture CrystalShardz  路  4Comments

sug1no picture sug1no  路  7Comments

erquiaga picture erquiaga  路  7Comments

graciano picture graciano  路  4Comments