Live data from Hacker News

Programming languages used for music

timthompson.com

91–100 of 108 posts

Re: Programming languages used for music

#91
post #56

Switch Angel live-code using Strudel. Really impressive and interesting stuff. https://youtu.be/aPsq5nqvhxg

This was epic, and reminded me of the magic of programming when I first found a video game maker at a wee 11 years old. Writing code to make music feels so natural to me (a musically inept, but proficient coder) and this breaks down so many barriers. I wonder how Cursor fares with Strudel so far.

Dunno about Cursor, but Claude code > codex, in my experimentation, but that was before 5.2.

Re: Programming languages used for music

#92

Sonic Pi is missing imo. (Some have mentioned Strudel, it’s a similar live-coding music platform). Admittedly Ruby-based, but it seems some of the other ones on the list are libraries/forms of other langs too.

Sonic Pi is by far the most accessible way to play with these tools. It's designed to teach music and coding to kids and has great starter tutorials, and a ton of depth as well. Check it out!

Re: Programming languages used for music

#94
post #27

A few months ago I outlined a spec for a new modern programming language inspired by LilyPond I call Capo. I haven’t done anything with it yet but the idea is that it compiles to MNX, which is the (still in development) successor to MusicXML, becoming a language that could be used as a scripting language in any program that supports MNX or as a standalone text-based music tool. Thought this group might find it intere…

Can you give a rundown on how it differs from lilypond? What deficiencies you are addressing?

Re: Programming languages used for music

#95
It isn't mentioned there, but you all might be interested in the python music libraries called SCAMP: https://scamp.marcevanstein.com

I learned about it after stumbling across the creator's short, fun videos showing it being used: https://youtube.com/playlist?list=PL_yUKG0GRuliL65l_qEG1uwCC... ("Python Music Shorts")

Re: Programming languages used for music

#96
post #50

Earlier quoted context omitted.

The problem I see is: people are not going to use a project that is AI generated for long really, unless they do it just for a one-off task. I'd like to constantly generate new music. I also have ideas based on existing music so I want to adjust this, but do so programmatically, and that seems ... hard.

Sure, for something big code needs more review and validation. But this is just a small command line tool that allows you to ask an LLM to generate a DSL to play a backing track: https://raw.githubusercontent.com/ako/backing-tracks/refs/he... Not a big commitment from a user, and nothing lost if it doesn´t work as hoped. I'm just positively surprised how quickly you can create a prototype for these sorts of ideas wit…

Full vibe coded project: https://github.com/ako/backing-tracks

Re: Programming languages used for music

#97
Music Lab by Code.org is a Blockly-based experience, built for K-12 education, at https://code.org/music.

It's open source, and we wrote some technical documentation at https://github.com/code-dot-org/code-dot-org/blob/600ebafa52....

There were a bunch of interesting aspects to this project. One of my favorite things was developing the user programming model. Organizing your music using functions is very powerful.

Re: Programming languages used for music

#99

Switch Angel live-code using Strudel. Really impressive and interesting stuff. https://youtu.be/aPsq5nqvhxg

Just to add some context, Strudel is TidalCycles ported from Haskell to JS. IMO, Haskell is a much nicer language for this stuff. Hopefully, now that GHC can output WebAssembly, someone can build a web-based music programming environment around the original TidalCycles instead.

Is there feature parity? Strudel might be ahead by now?

Re: Programming languages used for music

#100

In order, the most popular ones of these are probably * Max. It's built into a popular DAW, and is shockingly capable as an actual programming language too. The entire editor for the Haken line of products is written in Max. * Pure Data or Supercollider. * Csound. Not ordering things like Scala or LilyPond that are much more domain-specific.

I learned programming with csound in the 90s but for me, Pyo and Librosa means there is no reason for a specialized language outside of python.

There is value in what has already been built for these languages but once you move beyond that, life is so much easier to just use python.

Cecilia5 is a great example of that being rewritten from csound to pyo.

Post reply on HN