Csound
≈ 4 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
Csound is a domain-specific computer programming language for audio programming. It is named Csound because it is written in the language C, in contrast to some of its predecessors. It is free and open-source software, released under the GNU Lesser General Public License (LGPL) 2.1 or later.
Csound is a domain-specific computer programming language for audio programming. It is named Csound because it is written in the language C, in contrast to some of its predecessors. It is free and open-source software, released under the GNU Lesser General Public License (LGPL) 2.1 or later.
History
Csound was originally developed by Barry Vercoe at the MIT Media Lab in 1985, based on his earlier system called Music 11, which in its turn followed the MUSIC-N model initiated by Max Mathews at Bell Labs. Csound development continued throughout the 1990s and 2000s, led by John Fitch at the University of Bath. Many developers have contributed to Csound, most notably Istvan Varga, Gabriel Maldonado, Robin Whittle, Richard Karpen, Iain McCurdy, Michael Gogins, Matt Ingalls, Steven Yi, Richard Boulanger, Victor Lazzarini and Joachim Heintz. Developed over many years, , it has nearly 1,700 unit generators. One of its greatest strengths is that it is completely modular and extensible, by the user. Csound is closely related to the underlying language for the Structured Audio extensions to MPEG-4, Structured Audio Orchestra Language (SAOL). csound -W -d -o tone.wav sr = 96000 ; Sample rate. kr = 9600 ; Control signal rate. ksmps = 10 ; Samples per control signal. nchnls = 1 ; Number of output channels. instr 1 a1 oscil p4, p5, 1 ; Oscillator: p4 and p5 are the arguments from the score, 1 is the table number. out a1 ; Output. endin f1 0 8192 10 1 ; Table containing a sine wave. Built-in generator 10 produces a sum of sinusoids, here only one. i1 0 1 20000 1000 ; Play one second of one kHz at amplitude 20000. e As with many other programming languages, writing long programs in Csound can be eased by using an integrated development environment for editing, previewing, testing, and debugging. The one now officially supported is CsoundQt. It has many features, such as automatic code insertion, integrated documentation browser, integrated widgets for graphically controlling parameters in realtime, plus a button for playing the code.
Csound for live performance
Currently only Csound score or note events can be generated in real time (in contrast to instruments, which are only definable at compile time, when csound first starts; in Csound 6 this limit is removed). The set of sound processors is defined and compiled at load time, but the individual processing objects can be spawned or destroyed in real time, input audio processed in real time, and output generated also in real time. Note events can be triggered based on OSC communications within an instrument instance, spawned by MIDI, or entered to stdin (by typing into a terminal or sending textual statements from another program). The use of Csound 5 as a live performance tool can be augmented with a variety of third-party software. Live Event Sheet within CsoundQt can be used to modify the score in real-time. In addition, interfaces to other programming languages can be used to script Csound. A paper detailing the use of Csound with Qt or Pure Data in real-time musical synthesis was presented at the 2012 Linux Audio Conference The Ounk project attempts to integrate Python with Csound while CsoundAC provides a way to do algorithmic composition from Python using Csound as backend. Audivation's Csound for Live packages various opcodes into Max/MSP wrappers suitable for use in Ableton Live. Csound is also available for mobile systems (iOS, Android).
See also
Audio signal processing Software synthesizer Computer music Comparison of audio synthesis environments List of music software
References
Further reading
This is a book mostly about programming sound directly using the C language, but it does have a couple of chapters about programming Csound opcodes.
External links
Text derived from https://en.wikipedia.org/w/index.php?oldid=1333278809 under CC BY-SA 4.0; modifications have been made.