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.
Code
JavaScript
Web Development
Macro Editor: Hotbar-Oriented EditorWrite 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 […]
3d
Code
Media
Python
I Stole My Friend’s FaceIntro 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 […]
Uncategorized
Genetic Evolving Particle Swarm OptimisersI 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 […]
Animations
Audio
Graphics
Media
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, […]
Code
Python
Python Packing Streams of Arbitrary LengthWhen 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 […]
Code
Site News
Tro reads __ seriesIntroduction: I’m hoping to start a new content series where I slowly read math-heavy non-fiction books and try to port them into programming languages as I go along. Usually I’d say it will be in Python, though if the situation calls for it I will use whichever language I believe is ideal for the task. […]
Math
Philosophy of Mathematics
Physics
Is Science Mind-Independent?I recently engaged in an argument on social media. This isn’t anything rare or profound, most of my arguments happen on social media. What was rare and profound was the fact that this conversation offered a natural segue in the ontology of numbers; for once I didn’t have to force it. Someone made the seemingly […]
Animations
Code
Math
Media
Python
Julia Blend (Animated Julia Sets)Draw Julia set animations by simply defining a 2d line though the complex plane. A Julia set is simply a recursive function or iterative process that takes the form z=z^2+cwhere the initial value of z is a complex number representing a point in 2d space, and c is any complex.The z argument is updated until […]
Site News
Works in progressI realise it’s been sometime since my last post. Don’t fear, the site’s still well and truly active. I am going through some personal stuff and accommodation issues following the death of a very close friend and housemate.Although my being is inseparable-from/interwoven-with mathematics and programming, I must take some time to focus on being the […]
0