Feeling very excited about how this is going to look on the wiki. https://clarity.flowers/wiki/notate.html
@clarity wow just thought about how fun it would be to play around in an ncurses music notation editor
@joemama mine is probably going to be non-interactive because it'll be part of a larger pipeline, but I could definitely see that being really cool!
maybe this could be interesting for you?
https://m.mediawiki.org/wiki/Extension:Score
(uses ABC/Lilypond)
Then there's also MuseScore's command line mode: https://musescore.org/en/handbook/3/command-line-options#Convert_a_score_to_PDF_from_the_command_line
@guenther ah, prior art might be a good reference point, thank you. I definitely want to write this myself, because that's in line with the general philosophy of the wiki
@clarity @neauoire i would be interested in that - i have a project running on github to add features to gitlab community edition - essentially define anything in text and it will render a png from it and replace the text with it. right now it understands about plantuml (graphwiz) as well as gnuplot and tex but im always looking for new stuff: https://github.com/elbosso/plantumlinterfaceproxy
@elbosso oh, neat, I like this line of thinking
@clarity I will use that tool 🤚
@human_equivalent @neauoire ah, lovely!
@zachdecook Yeah, I considered SVG as an output format, but I've found in practice that on average low-color, low-res PNGs can be much smaller in filesize than the equivalent SVG, not to mention the aesthetic appeal (my whole wiki is built on dithered low-res images).
Generation of palette-based PNGs. I wanted to write this entirely by hand, but it turns out that the PNG compression algorithm is more complicated than I want to deal with right now (I might end up switching to GIF later as that algo is simpler). So, I pulled in zlib and banged my head against it until it worked. Having test data from http://www.schaik.com/pngsuite/pngsuite_bas_png.html to do byte-by-byte comparisons via xxd helped a lot