Hacker News new | ask | show | jobs
by iainctduncan 21 days ago
People here might be interested to know that you can run Scheme (lisp) code directly in Ableton through my Scheme for Max project in Max for Live.

S4M is an open source extension to Max that allows you to run the s7 Scheme interpreter in a Max object, similar to the JS object in Max. Advantages over JS are that in can run in the high priority scheduler thread, enabling accurate timing, it has direct access to the file system from Scheme code, and allows you to make Scheme s-expressions directly in Max messages. It is also a very nice way to control the Live API, as the live API works on lists of symbols.

https://github.com/iainctduncan/scheme-for-max https://www.youtube.com/c/musicwithlisp

I'm planning another major release in the next few months as part of my PhD work.

6 comments

I have been agonizing this week about whether to drop a few hundred dollars on either GarageBand->Logic, or Ableton Lite->Standard.

So when I read something like

> you can run Scheme (lisp) code directly in Ableton through my Scheme for Max project in Max for Live

Well ... sometimes the universe conspires to make your decision really really easy.

I have and use both Logic and Ableton Live Suite (which is needed for Max 4 live.) They are both great DAWs, and they can complement each other well. Which one you may prefer comes down to the type of music you create and whether you prefer a traditional linear arrangement style of recording (Logic and Ableton are both strong here, although Logic has a more traditional UI) or a session/live-loops based style of recording (Ableton is much stronger here than Logic IMHO.)

If your budget constrains you to Garage Band -> Logic or Ableton Lite -> Standard, you will get more with the upgrade to Logic, especially if you rely on the instruments/presets that come with the DAW rather than 3rd party plugins. Note that you can't use the Scheme integration unless you buy Ableton Live Suite, which costs considerably more than Logic or Standard.

You can buy M4L as an add-on for Ableton Standard too.
you might also consider Reaper which is infinity customizable, I personally use both Ableton and Reaper both are fantastic (as is Logic and Renoise which I also sometimes use). Might be worth noting that Max4Live is only included in Ableton Suite not Standard and other but can be added separately.
Yes, I actually use S4M a lot with Reaper too. Sometimes my stack uses Live, and other times it's standalone Max with Reaper. It's also possible to get Reaper doing custom actions or running scripts in response to messages from Scheme for Max sent out over OSC. Reaper is great!
Oh interesting. And Reaper is the only one with at least semi-official Linux support. My impression is that Reaper has more support for working with sample waveforms than the others, but less focus on software instruments?

Way back in the distant past I took a full semester Digital Music Theory course that used ProTools. It was tbh the most fun I've ever had on a computer, learning to create and edit waveforms, kinda similarly to how you use photoshop with pixels. And Reaper kinda looks like a better version of ProTools?

Sooo ... time to check out Reaper, and back to decision paralysis :)

Reaper is a great complement to Live - it's absolutely the most programmer friendly of the "normal" DAWS, and for many tasks, a normal DAW is what you want. If you know protools, you'll learn Reaper no prob. Tons of my work is in Reaper, and I even have times I'm using all three of Max, Reaper, and Live with audio piped between them. And for $60 (with an unlimited free demo) there is no reason not to use Reaper!).

It doesn't provide instruments at all. If you are getting into electronic music and want to use it, I highly recommend something like U-he's Zebra 3 as a super powerful, super flexible all-around swiss army knife of soft synth that you won't outgrow.

Ableton is a great inspiration for software devs. It's stable and efficient, and has amazing undo and file recovery systems. An antidote to Electron and chatbots.
Note that Max 4 Live is not included in Standard.
Ableton is pretty unique in focusing on it's namesake "Live" (although Bitwig has clear lineage), and it definitely clicks together well. I think it would pair well with Logic or Cubase if you were doing "serious" work for a variety of reasons. But it is easily one of the better choices for getting started and for ideation.
you’ll need Studio for this, not standard. but i’d recommend Ableton over Logic right now. they are on the cutting edge of DAWs and have been for years.
Pretty cool! The Javascript object has really limited uses due to the low priority thread execution. Imo, they should have just exposed the C api in an object. I've tried writing my own Max external object in C, but ended up writing VST's (in JUCE) instead.

Either way, going to give this a go!

Are any of the schemes/lisps for music specifically worth checking out. I know there is CLM Common Lisp Music and it seems in general the language family would be a good fit
CLM was actually made by the author of s7, who is one of the godfathers of computer music. You could check out Common Music 3 which was a big inspiration for S4M and also runs s7, but it is unfortunately non longer actively developed as the author now has to teach using Python.

Other Lisp music related things include Incudine, Slippery Chicken, the Snd editor, MozLib (CL stuff for Max).

It is an integrated environment, but https://www.opusmodus.com is worth checking out if you are into algorithmic compositions and Lisp.

There have been several Scheme-like live coding systems that have become popular and faded away over the years. https://tidalcycles.org and its web-based friend https://strudel.cc are Haskell-like and were also getting some good attention a while go.

Once opening the door to Strudel.cc, there's no coming back. Its approach to patterns and sequencing is so ingenious, I can see a whole generation embracing it as modern way, modern notation for music, which is not played physically, but performed digitally. Further on - strudel is so easily plug-able that it easily integrates with DAWs and even a simple Mainstage + VSTs (or VCV rack) is more than enough to go totally berserk with both sound design or/and pattern sequencing.
Get out of town...that's wild. I wonder if my crusty old mac pro running ableton 11 + Max4live would work with this.
Could one run lilypond inside this inside Ableton?
Very cool will check this out more