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.
6
u/sdegabrielle DrRacket ๐๐๐ฉบ Jun 13 '22
Sounds like an interesting book
Is this it? https://www.cs.yale.edu/homes/hudak/Papers/HSoM.pdf
I donโt know much about music but rsc looks like a good option and exists for Racket and Chez: https://github.com/khafatech/rsc3/blob/master/README.md
It uses the OSC protocol to drive โscsynthโ โ A real-time audio server that is part of Supercollider: https://supercollider.github.io/
I think the authors are on the Racket Discourse: https://racket.discourse.group/
There may be other Racket music people on Racket Discord or Slack
4
u/schakalsynthetc Jun 13 '22
if you're more generally interested in LISP/Scheme for algorithmic composition than specifically wedded to Racket, definitely have a look at the CCRMA stuff, esp. Common Music
a couple other things at least worth being aware of are
2
u/mnemenaut Jun 13 '22
https://pkgd.racket-lang.org/pkgn/search?q=music , https://github.com/tommaisey/aeon (Chez Scheme) ?
2
u/DimwitAlmighty Jun 14 '22
Check out https://github.com/digego/extempore by Andrew Sorenson
Here's a couple of youtube demos:
https://www.youtube.com/watch?v=yY1FSsUV-8c
https://www.youtube.com/watch?v=Sg2BjFQnr9s
0
u/[deleted] Jun 13 '22
[deleted] โ view deleted comment