SamSuka
The Exciting Universe Of Music Theory
The Exciting Universe Of Music Theory

patreon


Fixing up all the assets

I noticed that once in a while, I get a 404 error in the server logs, for images in the general music theory assets. That shouldn't be happening! Perturbed, I looked in some folders and saw that there are random files missing. Maybe they were victims of a bad transfer, or perhaps they've always been gone and I never noticed.

Most of the scale visualizations you see on my website are SVG, which is great because the download is tiny and fast, and they render perfectly at any magnification. But I also have rendered raster versions in a variety of sizes, which I need as PNG files when I'm rendering the youtube videos. And I also use appropriately thumb-sized PNG images in the book (still in progress), to keep the PDF size reasonably small.

The way I had them organized was a hot mess of badly named folders and inconsistent naming schemes.

So today I decided to tidy up and regenerate any missing assets, move them into a sensible hierarchy of folders, and rename everything to have the same filename pattern. And while doing that, I started building a dashboard to see what exists and what doesn't, and that turned into... hatching a plan to make all these assets available under a free license.

As all the assets copy over, I will see all those ✘ turn into ✔.

I don't know how soon or how quickly this will mature to become available to the public. I don't get a lot of time to work on this stuff. However I'm happy that my hot mess is less hot and now I can find anything I need on my web server, at a consistent URL, whenever it's needed for anything I do in perpetuity. I just hope my server has enough storage for all that!

Thanks to everyone for keeping this nerdy stuff flowing with your financial support. Thanks to you, I bought some of the software that I use regularly, so I can stop seeing the nagging "your trial has expired" message while I'm working ;)

Cheers
Ian

Fixing up all the assets

Comments

UPDATE: this venture was useful because it exposed a few issues in the image generation, and I fixed quite a few scripts that generate scale bracelets and tonnetz diagrams. However, but I abandoned the idea of keeping pre-generated rasters of everything, for 3 reasons: 1) I learned how to embed SVG vectors into my LaTeX document, meaning I no longer needed rasterized images for that project 2) The file storage needed to complete everything would far exceed the storage available on my web server. I don't feel strongly compelled to put a couple terabytes of stuff into cloud storage (and incur the monthly expense of that) just for funzies. 3) I have postponed working on the video project. I do still need rasters when generating the YouTube videos. The FFMEG processing requires high-resolution rasters... but because of file sizes (again) it is better to generate those on the fly, use them to assemble the video, then delete the images. If I don't purge those temporary image files, the disk usage gets ridiculous.

The Exciting Universe Of Music Theory


More Creators