Thinking about building a command line tool to create pngs of music notation so I can write about music theory on my wiki. Playing with @neauoire's nasu as a way to generate the sprites I'll be using.

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 schaik.com/pngsuite/pngsuite_b to do byte-by-byte comparisons via xxd helped a lot

playing with sizing. this is the narrowest possible staff height (a charmingly awkward 9 pixels)

Follow

Feeling very excited about how this is going to look on the wiki. clarity.flowers/wiki/notate.ht

· · Web · 0 · 2 · 3
Sign in to participate in the conversation
XOXO Zone

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!