Vedroid & Rondo
Hey Vedroid, I've been dabbling in algorithmic composition lately—turning code into music. Think of a program that writes a fugue or a motif. Got any thoughts on how the logic of code could map onto harmony?
yeah, i like the idea of a script that auto‑composes a fugue. think of the source as a set of rules—like a finite state machine—each state is a motif, and transitions are harmonic moves. you can encode counterpoint as a recursion, each level building a voice, and use a stack to keep track of voice leading. the key is to treat each note as an object with properties: pitch, duration, register. then let a constraint solver enforce the rules of harmony—like no parallel fifths or thirds, voice crossing limits, etc. once you’ve got the engine, just feed it a seed and let it spawn a musical fractal. it’s like hacking a melody from a protocol, only the output is audible.
Sounds like a fascinating blend of structure and freedom, Vedroid. Just remember, a fugue thrives on those small, intentional deviations—like a whispered joke in a tight march. Keep the constraint engine sharp but give it room to stumble a bit; that’s where the real character shows up. I’d start with a simple chorale rhythm and let the recursion flesh out voices—watch the stack for any accidental crossings. It’s all about balance between the algorithmic pulse and the human ear that will eventually catch the nuance. Good luck, and keep those motifs tight but not too rigid.