Creativity - Technology - Learning
 
Live Coding Toolkit for Pure data

Live Coding Toolkit for Pure data

The Live Coding Toolkit (LCT) is a suite of Pure Data abstractions (predefined functions) for musical live coding.

The LCT is available for download from GitHub. To use, download the repository and add the folder to your Paths in Pure Data’s preferences. Most of the abstractions take optional arguments to set initial parameters, which can be updated via inlets as the patch is running. Pd is a ‘natural’ environment for musical live coding because it has powerful audio capabilities, runs in real-time, and is editable on the fly. However, it was never designed for live coding and so was absent some of the processes that are typically used in live coding performances. This library adds those, at least the ones I often rely upon.

I have been doing musical live coding performances since 2005 and until now these have been in text-based languages, in particular using Impromptu and XTLang (both developed by Andrew Sorensen). In recent years I’ve been increasingly using Pd for many algorithmic music projects and so it seemed natural to use it for live coding too.

I introduced the LCT at the Hybrid Live Coding Interfaces 2021workshop. There is a video of my presentation at that conference below, starting at the 41 min mark.

There are a small set of abstractions in the LCT, they include four process based patches which are the critical design patterns for supporting live coding, and five support patches to assist with simple sound making and wrappers for audio and MIDI output. The abstractions are:

  • cycle : phrase looper
  • periodic : stepped simple harmonic motion
  • rand : linear, gaussian and random walk
  • quant : pitch class quanitze
  • midi : MIDI note output
  • synth : simple mono subtractive synth
  • fm : simple 2-operator frequency modulation synth
  • drums : simple synthesized drum kit
  • panner : stereo audio panner
  • out : stereo audio output with reverb

A User Guide, Help files, and Examples are included.

Functions are based on live coding techniques outlined in Sorensen, Andrew & Brown, Andrew R. (2007) aa-cell in practice: An approach to musical live coding. In: Proceedings of the International Computer Music Conference. pp. 292–299. ICMA, Copenhagen.