Blog posts in a less structured free flowing style.
In order to motivate me to be more active on this site I’m creating a separate category to give myself the freedom to post less structured ideas.
I don’t get to share a lot of my coolest code because I haven’t yet worked out a legible way to explain it concisely enough.
I’m creating this space to try and make it easier to put out more complex ideas without having to learn how to formalize them completely, though I’ll still try my best.
Random observations, musings, project ideas, in a more traditional blog style.
-
Creating and Exporting Audio in Python
This tutorial walks you through generating a sine wave in Python, using libraries like wave and struct, and exporting it as a .wav file. Ideal for those interested in audio processing or sound design.
-
I Stole My Friend’s Face
Intro I extracted my mate’s (approximately 60×60 pixel) face from a Facebook picture, and overlaid it onto a depth-map for a similarly shaped face, then used a custom python script to create a 3d wavefront model of his face, and an accompanying .mtl file for the texture. I will create a post soon properly dissecting…
-
Genetic Evolving Particle Swarm Optimisers
I came up with this method about a decade ago, but I didn’t have enough command over the english language to explain what I meant. Any attempts came across as frantic rambling about two unrelated algorithms. Thankfully now that AI has come further I can get help with explaining myself so while I’ve left in…
-
Animating a Virtual Idol (Part 1: The Drawings)
Making the character assets: Each layer of the character is simply a transparent png with a fixed center of rotation (which we can mark later on)All of these layers will be joined to one another and moved in whichever ways we command. -Body The Body will be placed right at the back of the character,…
-
Python Packing Streams of Arbitrary Length
When starting out with IO and learning to efficiently read and write binary structures to and from Python most people will confront the problem of packing a string or list into a structure. Variations of this question plague Stack Overflow, here are two quick examples:https://stackoverflow.com/questions/3753589/packing-and-unpacking-variable-length-array-string-using-the-struct-module-in-py, https://stackoverflow.com/questions/34117620/how-to-unpack-variable-length-data-in-python-struct I have a rather simple solution I decided to…