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

Follow

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

· · Web · 2 · 0 · 2

Starting to build the language for entering notes. You enter notes using the first letter of solfege, and it'll pick the note closest to the previous one. You can move the cursor up or down to make bigger leaps with '+' or '-'. This is "notate 'drmfs-s+rtd'

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!