SuperCollider explained

Logo Size:100px
Author:James McCartney
Latest Release Version:3.13.0
Latest Release Date:[1]
Programming Language:C++
Operating System:FreeBSD,[2] Linux, macOS, Windows
Genre:Audio programming language
License:GPL-3.0-or-later[3]

SuperCollider is an environment and programming language originally released in 1996 by James McCartney for real-time audio synthesis and algorithmic composition.[4] [5]

Since then it has been evolving into a system used and further developed by both scientists and artists working with sound. It is a dynamic programming language providing a framework for acoustic research, algorithmic music, interactive programming and live coding.

Originally released under the terms of the GPL-2.0-or-later in 2002, and from version 3.4 under GPL-3.0-or-later, SuperCollider is free and open-source software.

Architecture

Starting with version 3, the SuperCollider environment has been split into two components: a server, scsynth; and a client, sclang. These components communicate using OSC (Open Sound Control).[6]

The SC language combines the object-oriented structure of Smalltalk and features from functional programming languages with a C-family syntax.[6]

The SC Server application supports simple C and C++ plugin APIs, making it easy to write efficient sound algorithms (unit generators), which can then be combined into graphs of calculations. Because all external control in the server happens via OSC, it is possible to use it with other languages or applications.[6]

The SuperCollider synthesis server (scsynth)

SuperCollider's sound generation is bundled into an optimised command-line executable (named scsynth). In most cases it is controlled from within the SuperCollider programming language, but it can be used independently. The audio server has the following features:[6]

Supernova, an independent implementation of the Server architecture,[8] adds multi-processor support through explicit parallel grouping of synthesis nodes.

The SuperCollider programming language (sclang)

The SuperCollider programming language is a dynamically typed, garbage-collected, single-inheritance object-oriented and functional language similar to Smalltalk,[5] with a syntax similar to Lisp or the C programming language. Its architecture strikes a balance between the needs of realtime computation and the flexibility and simplicity of an abstract language. Like many functional languages, it implements functions as first-class objects, which may be composed. Functions and methods can have default argument values and variable length argument lists and can be called with any order of keyword arguments. Closures are lexical, and scope is both lexical and dynamic. Further features typical of functional languages are supported, including creation of closures via partial application (explicit currying), tail call optimization, list comprehensions, and coroutines. Specifics include the implicit expansion of tuples and the stateless pattern system. Its constant-time message lookup and real-time garbage collection allows large systems to be efficient and to handle signal processing flexibly.[6]

By supporting methods of reflective, conversational, and literate programming, SuperCollider makes it relatively easy to find new sound algorithms[9] and to develop custom software as well as custom frameworks. With regards to domain specific knowledge, it is both general (e.g., it allows the representation of properties such as time and pitch in variable degrees of abstraction) and has copious example implementations for specific purposes.[6]

GUI system

The SuperCollider language allows users to construct cross-platform graphical user interfaces for applications. The standard class library with user interface components may be extended by a number of available frameworks. For interactive programming, the system supports programmatic access to rich-text code files. It may be used to generate vector graphics algorithmically.[10]

Interfacing and system support

Clients

Because the server is controlled using Open Sound Control (OSC), a variety of applications can be used to control the server. SuperCollider language environments (see below) are typically used, but other OSC-aware systems can be used such as Pure Data.[6]

"Third-party" clients for the SuperCollider server exist, including rsc3, a Scheme client, hsc3, based on Haskell, ScalaCollider,[11] based on Scala, Overtone, based on Clojure, and Sonic Pi.[12] These are distinct from the development environments mentioned below because they do not provide an interface to SuperCollider's programming language, instead they communicate directly with the audio server and provide their own approaches to facilitating user expression.[6]

Supported operating systems

SuperCollider runs on macOS, Linux, Windows and FreeBSD. For each of these operating systems there are multiple language-editing environments and clients that can be used with SuperCollider (see below).[6]

It has also been demonstrated that SuperCollider can run on Android[13] and iOS.[14]

Editing environments

SuperCollider code is most commonly edited and used from within its own cross-platform IDE, which is Qt-based and supports Linux, Mac, and Windows.

Other development environments with SuperCollider support include:

Code examples

// play a mixture of pink noise and a sine tone of 800 Hz .play;

// modulate the frequency of the sine tone as well as the amplitude of the noise signal with another sine signal,// the frequency of which depends on the horizontal position of the mouse pointer (.play;)

// List iteration: multiply the elements of a collection by their indices[1, 2, 5, 10, -3].collect ;

// Factorial functionf = ;

// «Pan Sonic emulation - Katodivaihe - lahetys» - Miguel Negrão (.play)

Live coding

As a versatile dynamic programming language, SuperCollider can be used for live coding, i.e. performances which involve the performer modifying and executing code on the fly.[18] Specific kinds of proxies serve as high level placeholders for synthesis objects which can be swapped in and out or modified at runtime. Environments allow sharing and modification of objects and process declarations over networks.[19] Various extension libraries support different abstraction and access to sound objects, e.g. dewdrop_lib[20] allows for the live creation and modification of pseudo-classes and pseudo-objects.

See also

Notes and References

  1. Web site: Releases . Github . 8 January 2022.
  2. Web site: SuperCollider. asynth. 20 June 2015.
  3. Web site: SuperCollider Licensing . live. https://web.archive.org/web/20200807141456/http://doc.sccode.org/Other/Licensing.html . 2020-08-07 .
  4. J. McCartney, SuperCollider: A new real time synthesis language, in Proc. International Computer Music Conference (ICMC’96), 1996, pp. 257–258.
  5. J. McCartney, Rethinking the computer music language: SuperCollider, Computer Music Journal, 26 (2002), pp. 61–68.
  6. Book: Scott Wilson. The SuperCollider Book. David Cottle. Nick Collins. The MIT Press. 2011. 978-0-262-23269-2. 2011-05-26. https://web.archive.org/web/20110501130100/http://supercolliderbook.net/. 2011-05-01. dead.
  7. Web site: SuperCollider mailing lists. 20 June 2015. dead. https://web.archive.org/web/20091106111225/http://www.beast.bham.ac.uk/research/mulch.shtml. 6 November 2009.
  8. T. Blechmann, supernova, a multiprocessor-aware synthesis server for SuperCollider, Proceedings of the Linux Audio Conference, Utrecht 2010.
  9. J. Rohrhuber, A. de Campo and Renate Wieser. Algorithms Today. Notes on Language Design for Just in Time Programming . In Proceedings of the International Computer Music Conference, Barcelona, 2005.
  10. The vector graphics interface is provided by the Pen class. Various examples can be found in Audiovisuals with SC, blog by Fredrik Olofsson, 02.05.2009 (updated 11.05.2012)
  11. H. H. . Rutz . 10.1.1.186.9817 . Rethinking the SuperCollider Client... . Proceedings of SuperCollider Symposium . Berlin . 2010 .
  12. Web site: Systems interfacing with SC. 20 June 2015.
  13. https://github.com/glastonbridge/SuperCollider-Android/wiki SuperCollider Android project
  14. http://cylob.blogspot.co.uk/2009/11/tiny-music-system.html Tiny Music System
  15. Web site: SuperCollider with emacs: scel. 20 June 2015.
  16. Web site: supercollider. Atom. 20 June 2015.
  17. Web site: jleben/Scate. GitHub. 13 November 2013. 20 June 2015.
  18. Collins, N., McLean, A., Rohrhuber, J. & Ward, A. (2003), Live Coding Techniques for Laptop Performance, Organised Sound 8(3): pp 321-30.
  19. J. Rohrhuber and A. de Campo. Waiting and uncertainty in computer music networks . In Proceedings of the International Computer Music Conference, Miami, 2004.
  20. One of the numerous user contributed libraries known as "Quarks", and published in the SuperCollider Quarks repository.