Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wonder if there is a scripting environment where I describe a chord progression in one thread, a lead voice in another and run them simultaneously, written entirely in code as a single file (or 2 files for parts + 1 for importing those).



You might want to try Sonic Pi, which pairs Ruby with the SuperCollider synthesizer engine: https://sonic-pi.net/


It will work in Sonic Pi, but I’m looking at ways to make the voice leading of chords more intelligent. At the moment it will voice chords in root position unless you specify otherwise. I’m also looking at writing a parser so the chord symbols can be written naturally as a string

Edit: I’m on the Sonic Pi core team. I mean that I’m looking to add these features to sonic pi soon


There are no simple algorithms, because solutions are style dependent, covering the range from parallel transposition of house chords to a full Baroque counterpoint solver, via pop, rock, and jazz theory.

The question isn't can you do it - because you can, with varying degrees of difficulty.

The question is what specific user problem you're trying to solve.


https://github.com/synestematic/kord

I don’t think this has “execution”/synthesis features, but it could at least provide the basis for this environment.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: