bbloomf / jgabc

http://bbloomf.github.io/jgabc/
The Unlicense
100 stars 48 forks source link

Would there be a way to create an iFrame service ? #60

Open Limezy opened 2 years ago

Limezy commented 2 years ago

Hi, thanks for this awesome project that I use every week. This is not an issue, it's more like a feature request Would it be possible to include an iframe for any of the included score ? That would be incredibly helpful to integrate a gregorian chant score inside a markdown / Obsidian note, or inside Outline wiki note / Flarum forum post for instance ! Thanks ! French gregorian singer

bbloomf commented 2 years ago

What would this look like? Just a page that takes GABC in the query string and renders it something like https://bbloomf.github.io/jgabc/psalmtone#noeditor does but without the link at the top to show the editor? That should be pretty simple to make a URL, e.g. https://bbloomf.github.io/jgabc/render?gabc=(c4)+Ex(g)am(g)ple(g)+(%3A%3A) to behave as I think you're asking

Limezy commented 2 years ago

Hi @bbloomf !

First of all, thanks for your answer and I'm so sorry to reply soooo late... Your understanding is indeed right. What I would need is ideally a "secure" webpage, (just like youtube embeds for instance), that doesn't allow any navigation, that don't have any frame etc... Just the pure rendered svg score or verses.

The url could produce the score :

Of course options could be integrated to setup the font, to activate the player or not etc...

After a bit of searching, it looks like what I need is mostly a setup based on the Exsurge library. About that library, I'm a bit lost as your fork seems to be now way ahead of the original one ?