ChucK

For other uses, see Chuck (disambiguation).
ChucK
Paradigm Multi-paradigm
Designed by Ge Wang
First appeared 2003[1]
Stable release 1.3.5.2 / October 24, 2015 (2015-10-24)
Typing discipline Strong
OS Cross-platform
License

Mac, Linux, Windows: GNU General Public License

iOS: Closed Source (Not Public)
Website http://chuck.cs.princeton.edu/

ChucK is a concurrent, strongly timed audio programming language for real-time synthesis, composition, and performance,[2] which runs on Linux, Mac OS X, Microsoft Windows, and iOS. It is designed to favor readability and flexibility for the programmer over other considerations such as raw performance. It natively supports deterministic concurrency and multiple, simultaneous, dynamic control rates. Another key feature is the ability to live code; adding, removing, and modifying code on the fly, while the program is running, without stopping or restarting. It has a highly precise timing/concurrency model, allowing for arbitrarily fine granularity. It offers composers and researchers a powerful and flexible programming tool for building and experimenting with complex audio synthesis programs, and real-time interactive control.[3]

ChucK was created and chiefly designed by Ge Wang as a graduate student working with Perry R. Cook.[1] ChucK is distributed freely under the terms of the GNU General Public License on Mac OS X, Linux and Microsoft Windows. On iPhone and iPad, ChiP (ChucK for iPhone) is distributed under a limited, closed source license, and is not currently licensed to the public. However, the core team has stated that it would like to explore "ways to open ChiP by creating a beneficial environment for everyone".[4]

Language features

The ChucK programming language is a loosely C-like object-oriented language, with strong static typing.

ChucK is distinguished by the following characteristics:[5]

ChucK standard libraries provide:

Code example

The following is a simple ChucK program that generates sound and music:

 // our signal graph (patch)
 SinOsc f => dac;
 // set gain
 .3 => f.gain;
 // an array of pitch classes (in half steps)
 [ 0, 2, 4, 6, 9, 10 ] @=> int hi[];
 
 // infinite loop
 while( true )
 {
     // choose a note, shift registers, convert to frequency
     Std.mtof( 65 + Std.rand2(0,1) * 43 +
         hi[Std.rand2(0,hi.cap()-1)] ) => f.freq;
 
     // advance time by 120 ms
     120::ms => now;
 }

Uses

ChucK has been used in performances by the Princeton Laptop Orchestra (PLOrk) and for developing Smule applications, including their ocarina emulator.[6] PLOrk organizers attribute some of the uniqueness of their performances to the live coding they can perform with ChucK.[7]

See also

References

  1. 1 2 Dean, R. T. (2009). The Oxford handbook of computer music. Oxford Handbooks in Music Series. Oxford University Press US. p. 57. ISBN 0-19-533161-3.
  2. Wang, Ge (2008). The ChucK Audio Programming Language: A Strongly-timed and On-the-fly Environ/mentality (Ph.D.). Princeton University.
  3. "ChucK : Strongly-timed, Concurrent, and On-the-fly Music Programming Language". Retrieved 2013-09-06. ...offers composers, researchers, and performers a powerful programming tool for building and experimenting with complex audio synthesis/analysis programs, and real-time interactive music.
  4. Wang, Ge. "ChucKian greetings and updates!". chuck-users mailing list. Princeton University. Retrieved 2011-05-24.
  5. Wang, G. and P. Cook (2003). "ChucK: A concurrent, on-the-fly audio programming language" (PDF). Proceedings of the International Computer Music Conference.
  6. Kirn, Peter (July 22, 2009). "Interview: Smule's Ge Wang on iPhone Apps, Ocarinas, and Democratizing Music Tech". Create Digital Music. Retrieved 2011-05-24.
  7. Petersen, Brittany (2008-06-11). "Laptop Orchestra Makes (Sound) Waves". PC Magazine. The other thing that set PLOrk apart from the beginning was its use of a text-based program called ChucK, developed by a Princeton graduate student. ChucK allows the user to code quickly—similar to live coding—and "on the fly" for a performance, allowing for the spontaneity and real-time interaction that is important in live music performance. "ChucK is the only language that I know of that was designed from the outset to facilitate that," Trueman says. The program is also "concurrent," meaning that it can handle many different processes going on at once. Its "innate sense of time" allows performers to communicate during live rehearsals and performances, he says, adding that many other laptop musicians probably use a program like Max/MSP (which PLOrk uses in addition to ChucK) or another widely available commercial program. Today some other laptop orchestras—including the Stanford Laptop Orchestra (SLOrk), which was directly inspired by PLOrk—also employ ChucK.

Further reading

Literature by its authors

Seemingly independent coverage

  • Graham Morrison, (2009) Generate choons with Chuck. Tired of the same old music in the charts, we create our own music from a series of pseudo random numbers. Linux Format issue 125
  • Alan Blackwell and Nick Collins, The Programming Language as a Musical Instrument in P. Romero, J. Good, E. Acosta Chaparro & S. Bryant (Eds). Proc. PPIG 17, pp. 120–130
  • R. T. Dean, ed. (2009). The Oxford Handbook of Computer Music. Oxford University Press. pp. 27 and 580. ISBN 978-0-19-533161-5. 

External links

This article is issued from Wikipedia - version of the Sunday, December 20, 2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.