Here is a functional, tail-recursive implementation of a simple Particle Swarm Optimiser PSO routines are ideal for tuning the numerical variables of a given function so long as some means can be given for quantifying proximity to the desired solution. Returns a function that accelerates X towards P proportional to their distance*S and moves X […]
Audio
Code
Old Projects
Python
.Au Audio files with pythonThe Sun Microsystems .au not the ones from Audacity. I believe it’s a great place to start learning about structs, how to pack/unpack, and how to work with file headers.
Artificial Intelligence
Code
Old Projects
Python
Python Particle Swarm OptimiserParticle Swarm Optimisers are ideal for fine-tuning the numerical variables of a given process/function/structure so long as you can define a way to measure how well it has performed.
3d
Code
LISP
R5RS Scheme Wavefront .obj (3d Files)This library will allow for the easy creation of 3d Wavefront .Obj Files https://en.wikipedia.org/wiki/Wavefront_.obj_file in Scheme. I’ve made sure the code is R5RS compliant, tested under Dr-Racket but I’m pretty sure it should work in MIT-scheme and probably many other dialects.
3d
Code
LISP
Media
R5RS Scheme 3d ExtruderThis is my 3d library, from my personal R5RS build; It requires my .obj library be loaded.At the end I’ve also attached and commented out a few examples and demos. The simplest top-level Function is the surface of revolution, you simply enter a 2d shape as a list of 2d-points (just cons cells, no special […]
Code
Cryptography
Old Projects
Python
SafeSide CipherThis is one of my earliest python projects. Made while still learning python, ported this over from an old Delphi project of mine. For stronger encryption, and to encrypt files as well as strings try one of my newer ciphers like Rubik’s Crypt, however this should be a great choice for a beginner python programmer, […]
Code
Cryptography
Python
Rubik’s CryptE to encrypt string, D to decrypt string
EF to encrypt file (must also have an output name after the password)
DF to decrypt file (must also have an output name after the password)
rubikscrypt Directive Input Password (OutputFile?)
Audio
Code
Python
Play AlongPlay Along is a very simple python tool for helping synchronise jam band performances.
The bottom left, shows the current bar (root note and scale) while the bottom-right shows the next bar to give some warning of what to play next.
LISP
R5RS Scheme Essential FunctionsEssential scheme functions
Dictionary, Distance, Angle Difference, Mod, Map, Fold, Reduce, Filter, Index, Repeat, Flatten, Replace, Replace Indices, Sort, Range
0