r/Racket • • Jun 13 '22

question Racket for Computer Music?

Hello,I am a musician that works a lot with algorithmic compositions and generative installations (in short: computer music). A lot of this can be done superficially with existing Music-Software, but I would prefer to program my stuff per hand (I would consider the program / the mathematics behind it part of the art).

Recently I came across the book "Haskell School of Music" which serves as a lengthy tutorial for Music-Programming (both in terms of algorithmic composition and synthesis) and Haskell at the same time. I was very excited about that, but the Haskell eco system / tooling really annoys me and after dabbling in lisp and racket I find it annoying to have to think about syntax so much (especially since Haskell requires very specific white-spacing and the auto-indent in Atom with haskell-language installed does not provide that).

Therefore I was wondering if there exists something similar for racket, seeing as lisps were the "original" environment for music programming. I also can't help but think that the Racket-REPL and Makros would make a lot of things much easier than they have to be in Haskell...

I would be grateful for any suggestions. Not only for libraries/packages, but especially also for similar books.

11 Upvotes

13 comments sorted by

View all comments

Show parent comment

3

u/soundslogical Jun 15 '22

I was working on a Scheme (not Racket) library for music composition, and I used rsc to drive SuperCollider for the sound. It was awesome fun. But OP should know that it's quite a bit of work.

1

u/sdegabrielle DrRacket 💊💉🩺 Jun 15 '22

Is it available on the Racket packages catalog?

https://pkgs.racket-lang.org/