gregorio icon indicating copy to clipboard operation
gregorio copied to clipboard

compiling to json or svg

Open eroux opened this issue 10 years ago • 4 comments

An idea for the distant future: having code able to compile gabc to json, with information similar to those of the gtex output. Compiling it with Emscripten into asm.js would make a very strong replacement for jgabc...

eroux avatar May 18 '15 18:05 eroux

@bbloomf what do you think?

eroux avatar May 18 '15 18:05 eroux

Even without the ability to compile gabc into json, it might be nice to have an alternative to jgabc but shares its codebase with gregorio, just so that the graphical output of the two tools could be expected to be more similar to each other.

Would there really be a use case for compiling gabc into json though? It seems to me like it would probably only be a bit faster to parse json data than the standard .gabc file, but maybe having json files would allow for a more streamlined svg library that wouldn't be able to parse gabc but could handle the json version? However, I'm not sure that there's a real need for such streamlining these days. Anyway, it's an interesting idea.

bbloomf avatar May 18 '15 19:05 bbloomf

The idea was to have gregorio output something readable by js directly, then js would do the treatment, but you're right, outputing svg directly is a more direct (though less generic) solution

eroux avatar May 18 '15 20:05 eroux

See https://github.com/frmatthew/exsurge/ for an open-source gabc rendering js library, looking very good!

eroux avatar Mar 21 '16 07:03 eroux