ArticleslgStudy

science

Impromptu (programming environment)

Impromptu (programming environment) is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Impromptu (programming environment) rather than just read about it. In short: Impromptu is a macOS computer programming environment for live coding. Impromptu is built around the Scheme language, which is a member of the Lisp family of languages.

Impromptu (programming environment) — main illustration
Impromptu (programming environment) — illustration

Key takeaways

  • Impromptu (programming environment) belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Impromptu (programming environment) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Impromptu (programming environment) from memory before moving on to harder problems.

Reference excerpt

Impromptu is a macOS computer programming environment for live coding. Impromptu is built around the Scheme language, which is a member of the Lisp family of languages. The source code of its core has been released as free and open-source software with a BSD 3-clause license and renamed Extempore.

Description The environment allows to make changes to a program at runtime, so variables and functions may be redefined and the changes take effect immediately. Code can also be created and scheduled for future execution and data events such as notes and graphics objects. Once an event is scheduled, execution continues. Looping is performed by using an idiom called "temporal recursion" which works by having a function asynchronously schedule a future call to itself as its final action. The library allows communicating with Audio Units for audio synthesis, and with graphics layers such as QuickTime, Quartz, Core Image, OpenGL for video composition. Code written in Objective-C can be called from the editor, and also Objective-C frameworks can perform calls to the Scheme interpreter. Impromptu's Scheme interpreter was initially built from the TinyScheme 1.35 baseline, but it has been substantially modified since to better suit the live coding context. A real-time garbage collector, and Objective-C integration were added. Also, a new statically typed language called the Extempore Language has been integrated to the system. This language is syntactically Scheme-like, but semantically closer to C, and is designed for real-time sound synthesis and other computationally heavy tasks. It provides type inference and is compiled to machine language by LLVM.

Sample performance A Study in Keith is a live coding performance in Impromptu by Andrew Sorensen. The first two minutes (1:56) are silent, while the performer writes the program that will produce the introduction of the piece. From then on, he modifies the code on the fly to evolve the composition.

Extempore The core of Impromptu has been released as Extempore under a BSD style licence. It runs under both Linux and Mac OS X. It includes the Scheme interpreter, the Extempore Language compiler and the scheduler. The bindings to Apple libraries are absent, but the environment can interface with dynamic libraries.

See also Csound Comparison of audio synthesis environments SuperCollider Processing OpenFrameworks ChucK List of music software Max (software) Pure Data

References

Academic papers Sorensen, A (2010) "A Distributed Memory For Networked Livecoding Performance Archived 2021-02-26 at the Wayback Machine" International Computer Music Conference 2010, New York Sorensen, A & Brown, A (2008) "A Computational Model For The Generation Of Orchestral Music In The Germanic Symphonic Tradition: A progress report" paper presented to the Australasian Computer Music Conference 2008, Sydney Sorensen, A & Brown, A (2007) "aa-cell in Practice: An Approach to Musical Live Coding" paper presented to the International Computer Music Conference 2007, Copenhagen Sorensen, A. (2005) "Impromptu: An interactive programming environment for composition and performance" a paper presented to the Australasian Computer Music Conference 2005, Brisbane: ACMA, pp. 149–153. (Impromptu version discussed is obsolete) Sorensen, A. "ICR - Impromptu Compiler Runtime" Thor Magnusson, "Confessions of a Live Coder", Proceedings of International Computer Music Conference, 2011.

Other sources Peter Kirn, "Thought and Performance, Live Coding Music, Explained to Anyone - Really", Create Digital Music, 2011 Mitchell Whitelaw, "From Scratch - A Conversation with Andrew Sorensen", 2007

External links Official website

Illustrations

Impromptu (programming environment) illustration

Worked examples

Example 1 — a first encounter with Impromptu (programming environment)

Start with the simplest possible case. Write down what Impromptu (programming environment) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Impromptu (programming environment) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Impromptu (programming environment) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Impromptu (programming environment)

In research
Impromptu (programming environment) appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Impromptu (programming environment) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Impromptu (programming environment) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Audio programming languages, Live coding, so understanding it makes those chapters shorter.
In everyday life
Look for Impromptu (programming environment) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Impromptu (programming environment)” →

How to study Impromptu (programming environment) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Impromptu (programming environment) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Impromptu (programming environment) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Impromptu (programming environment) in simple terms?

Impromptu is a macOS computer programming environment for live coding. Impromptu is built around the Scheme language, which is a member of the Lisp family of languages.

Why does Impromptu (programming environment) matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Impromptu (programming environment)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Impromptu (programming environment).

Tags

  • Audio programming languages
  • Live coding

Keep exploring