Recent Code
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.

Creating and Exporting Audio in Python
Macro Editor: Hotbar-Oriented Editor

Write code from templates with the push of a button I have this system I like to use in Emacs for categorising and visualising custom hotkeys, when pressed these hotkeys run a corresponding macro, and inserts the expanded data into the current/last selected point in the editor. This is my attempt to implement a similar […]

Macro Editor: Hotbar-Oriented Editor
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 […]

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 […]

Back to top