5 ms·
ChucK: Strongly-timed, Concurrent, and On-the-fly Music Programming Language
- catshirt 13y agoi'm not really sure ChucK gets a lot of real use. it seems libraries like overtone have surpassed it in popularity, i assume because of the language accessibility. it has some really interesting concepts built into the language, like time. but in my experience this doesn't provide huge value for the purpose of composition, especially since when you are writing code livecoding is typically loop based. i'd love a ChucK VM for the web audio API. on the back burner; things i should do but won't.
- lewisgodowski 13y agoThe Smule music apps (Ocarina, Leaf Trombone, etc.) are all written using ChucK, IIRC. Outside of that, you're right -- it's not widely used -- although, at CalArts (where I currently go to college, http://www.calarts.edu http://www.calarts.edu), it's extremely popular in the Music Technology department. We use it mainly for handling MIDI->OSC translation to control robotic instruments (http://www.karmetik.com/media http://www.karmetik.com/media) and interfacing other electronics, like custom built musical interfaces and controllers, with music software.
- catshirt 13y agowow that's great. sounds like maybe i am out of touch. i'd consider all that "widely used", considering it's application. :) aren't there better tools for MIDI/OSC translation though?
- bredfern 13y agoWhat makes it so awesome is really the way it handles concurrency and automagically synching a bunch of different "shreds" at the same time. Its deeper than say the web audio api. Where it is lacking is in mobile support. The ancient Csound has an android version that actually enables you to develop the live code on your android device. While with Smule you had a cool adaptation for ios, Csound still seems to be more forward thinking in that it already supports android and chromeos.
- ics 13y agoAlso worth noting that they offered a ChucK course on Coursera: https://www.coursera.org/course/chuck101 https://www.coursera.org/course/chuck101
- clay_to_n 13y agoThis was good! Starts out with very basic programming stuff, but overall gives you a nice introduction to what ChucK can do.
- anigbrowl 13y agoThere's quite a few people into it over on electro-music.com.
- melloclello 13y agoI took a course in ChucK at university. It was such an awful way to make music that all but three or four of around 20 people in the class dropped out.
- bananas 13y agoI think I'd have the same problem. If it's not got 88 keys or strings I'm probably not going to use it.
- mindcrime 13y agoInterestingly enough, I have the opposite mindset. I never learned to play any instruments (although I would still like to buy a keyboard/synth one day), but I came across a reference to music programming the other day, which led me to ChucK. I'm intrigued by the idea of learning this (or one of the similar products) as a way to explore creating music without needing to learn to play guitar or whatever.
- bananas 13y agoI thought the same many years ago and spent lots of time with trackers and more programmatic methods of music production. Then I bought a hefty synth and after about 6 months of sounding like a tramp bashing a trash can lid, I finally clicked and it's an extension of my mind now, much like whistling a tune or tapping one out on your knee with your hand.
- mindcrime 13y agoVery cool. I do still want to buy a synth/keyboard eventually, although I'm afraid that I'll wind up buying one then never find/make time to actually invest in learning to play. :-)
- jonnybgood 13y agoFor those unfamiliar with Algoraves and live coding: http://motherboard.vice.com/nl/read/algorave-coden-in-de-club http://motherboard.vice.com/nl/read/algorave-coden-in-de-clu...
- curtisullerich 13y agotoplap.org is another good resource for livecoding in general.
- wavesounds 13y agoI like the set in this article: http://www.vice.com/en_uk/read/algorave-is-the-future-of-dance-music-if-youre-an-html-coder http://www.vice.com/en_uk/read/algorave-is-the-future-of-dan...
- curtisullerich 13y agoAnother system for live interaction with music is Extempore [0], for which you can code in either Scheme or xt-lang. There are some very impressive videos of it in action [1]. Extempore is a re-designed version of Impromptu [2] which was somewhat more restrictive in terms of platforms and editor integration. I don't understand ChucK or Extempore well enough at a lower level (yet) to provide a good comparison, but I'm just happy to see people introduced to any music hacking tools. :) [0] http://extempore.moso.com.au/ http://extempore.moso.com.au/ [1] http://vimeo.com/groups/82430/sort:plays/format:thumbnail http://vimeo.com/groups/82430/sort:plays/format:thumbnail [2] http://impromptu.moso.com.au/ http://impromptu.moso.com.au/
- lalos 13y agoSee ChucK in action -> https://www.youtube.com/watch?v=IkbjktiF52k https://www.youtube.com/watch?v=IkbjktiF52k
- gariany 13y agoChunK: seems so old-fashion comparing to algorave.com guys https://www.youtube.com/watch?v=fZppekP_XAg https://www.youtube.com/watch?v=fZppekP_XAg
- notthetup 13y agoThere is also overtone which is a framework for doing something similar. Written in clojure. http://overtone.github.io/ http://overtone.github.io/
- JonnieCache 13y agoThanks for this. I could never get into supercollider and my own custom MIDI-outputting code never managed to keep time properly. Now I can write my automatic-jazz-improvisation sequencer! EDIT: good to see it still has BBCut built into it, for LISPy amen choppage fun. Now my brain is melting at the thought of recursively defined, lazily-evaluated breakcore. I think I need a lie down.
- pervycreeper 13y agoMany that I've talked to in the electronic music community seem to prefer supercollider currently for actual use.
- wavesounds 13y agoSomeone with a bar in SF/Oakland start booking live coding please.
- thealphanerd 13y agoThis language was written by a professor of mine Ge Wang, also the founder of Smule. He likes to refer to it as "strongly timed", and I think it is a really accurate description. While the language does have limitations, it can also be beautifully expressive for certain things. If anyone has any question for the author please let me know and I'll either get him to come in here or be a surrogate and answer directly
- awhitty 13y agoI'm a big fan of CCRMA. Just curious, but what is Ge working on now? And do you folks in the Knoll have any events coming up soon?
- p4bl0 13y agoI don't have the time to investigate the language, but I wonder if its semantics borrows from synchronous programming languages such as Lustre [1], Esterel [2], or Signal [3]? Those languages were designed to program discrete controllers and embedded real time systems, and they have a very strong notion of timing and scheduling (via typing) in their semantics which allows to prove functional properties such as accessibility of states, liveness, time and memory bounds, etc. using formal methods such as model checking. When I was doing my master thesis on this domain, another student in the lab (who was from an IRCAM [4] master degree) worked on the use of synchronous languages to follow a musician who plays at arbitrary speed a given music score (or something along those lines). It was quite fun! [1] https://en.wikipedia.org/wiki/Lustre_%28programming_language%29 https://en.wikipedia.org/wiki/Lustre_%28programming_language... [2] https://en.wikipedia.org/wiki/Esterel https://en.wikipedia.org/wiki/Esterel [3] https://en.wikipedia.org/wiki/SIGNAL_%28programming_language%29 https://en.wikipedia.org/wiki/SIGNAL_%28programming_language... [4] http://www.ircam.fr/?&L=1 http://www.ircam.fr/?&L=1
- diminish 13y agoI've completed the ChucK course on Coursera. As far as I can say, it doesn't borrow semantics directly from synchronous programming languages though it may parallel them. Syntactically it's similar too Java/C++. Time/Duration are data types, and you must advance "now" to generate samples and events.
- maxehmookau 13y agoChucK is old news in electronic music circles. SuperCollider (http://supercollider.sourceforge.net/ http://supercollider.sourceforge.net/) is (I believe) the most popular and well-maintained of these languages. Overtone is just a clojure wrapper around the SuperCollider application. (It's pretty neat too!)
- nutate 13y agodefine old news? It's technically newer than SuperCollider by quite a bit. ChucK has a lot of users in the laptop orchestra world. Even CSound has had resurgence with iOS apps. Likewise with Pd. I'm really liking the haskell based sample player Tidal, that's a lot of fun.
- rainmaking 13y agoI'm more of a SuperCollider guy but Chuck is good enough for a major SC contributor to implement a Chuck operator for his lib.
- mtodd 13y agoTangentially related is the Yale Haskell Group's (well, mostly Paul Hudak's) project Euterpia: http://haskell.cs.yale.edu/euterpea/ http://haskell.cs.yale.edu/euterpea/
- plicense 13y agoAm I the only one to read it as "Chuck the Strongly-timed, Concurrent, and On-the-fly Music Programming Language" ?
- geoffroy 13y agoThanks ! I didn't know there was a new version. The lack of stereo UGens brought me to Super Collider since then but I like the Chuck coding style. Cheers
- pramalin 13y agoI have toyed a bit with CSound http://www.csounds.com/toots/index.html http://www.csounds.com/toots/index.html to synthesize Indian classical music. How does ChucK compares to CSound?
- acjohnson55 13y agoIt's tough to make a direct comparison. They're very different systems. Here are a couple thoughts: - From what I recall, ChucK doesn't really have any equivalent to CSound's score -- you just procedurally schedule changes. If you've every seen JSyn [1], I think ChucK is roughly equivalent to it, but with the language adapted to be more music centric than Java. JMSL [2] is roughly a Java equivalent to CSound's score file, and I don't know of anything in ChucK that fills that role. - CSound is not really built for modularity or flexible routing between components. ChucK is better in that regard. - CSound also has the benefit of a couple decades worth of usage and all sorts of interesting corners to its ecosystem. I'm sorry if this isn't a very coherent comparison. I haven't used CSound in a few years, and ChucK in even longer. If you're doing classical music, I imagine you'll value CSound's scoring capabilities over ChucK's synthesis flexibility. [1] http://www.softsynth.com/jsyn/ http://www.softsynth.com/jsyn/ [2] http://www.algomusic.com/jmsl/ http://www.algomusic.com/jmsl/
- acjohnson55 13y agoI very briefly worked on ChucK while at Princeton years ago, although I never finished my contribution to be an official committer. Having spent a decent amount of time with it, I think the biggest problem with ChucK is lack of flexibility within the strongly-timed model. The ChucK operator, `=>` is used to connect together unit generators, but as I recall, you can't use it to connect arbitrary ports of those unit generators together. Each has only one designated ChucK input and/or output. This makes it difficult to truly experiment with modulation. You pretty quickly reach a point where you end up writing the same old procedural code you'd write in C or Java, explicitly manipulating samples instead of streams. There are many other systems that are similar, including SuperCollider, Max/MSP, PureData, CSound and JSyn/JMSL. I think the intuition behind ChucK is similar to the functional reactive programming of Elm [1]. But it's doesn't seem as though it's thought completely through. It would be cool to see a true FRP implementation for sound.
- krazydad 13y agoI've been working on building a set of basic music patches simultaneously in ChucK, PureData, SuperCollider and Pyo. The idea is to produce patches which produce the identical sound, to illustrate the differences between the music languages. I have a long background as a C programmer. Because ChucK is C-like, I have had the least trouble learning it, of the 4 languages mentioned above. The simple stuff I implement in ChucK tends to work the first time. However, my musician friends who are not C programmers tend to find visual patching languages (like PureData and Max) far more intuitive. Performance-wise, ChucK seems to me to be the least performant of the 4 mentioned above, however, for my needs it works fine, and I look forward to doing more work with it.
- droithomme 13y ago> you can't use it to connect arbitrary ports of those unit generators together. Each has only one designated ChucK input and/or output. This makes it difficult to truly experiment with modulation You can route things to multiple destinations with multiple ChucK operators. You can also route to specific inputs by naming them. Arbitrary routings are neither impossible nor a problem. SinOsc A => dac.left; // Here, A's main output connects to a specific input of object dac. SinOsc B => dac; A => B.freq; // Here we see the same A having another output connection, and connecting to a specific input of another object to create FM modulation.
- peapicker 13y agoChucK's pretty fun, I've played around with it a little to write a couple of electronic demos... I like the fact that i can do full-on generative synthesis with it - samples can be used, but it is more fun for me to craft sounds algorithmically. This one's a laid-back idea for a 'chillout' song I haven't finished: https://soundcloud.com/sigint-trax/national-degeneration-unit https://soundcloud.com/sigint-trax/national-degeneration-uni... This one is an experiment that involved the main melody being manipulated randomly by a mutation algorithm I wrote: https://soundcloud.com/sigint-trax/mutation-0x1337 https://soundcloud.com/sigint-trax/mutation-0x1337