Safekipedia

Pure Data

Adapted from Wikipedia · Adventurer experience

A screenshot of the Pure Data software showing many open patches, useful for learning about digital music and interactive art.

Pure Data (Pd) is a visual programming language made by Miller Puckette in the 1990s. It helps people create interactive computer music and multimedia works. Many people around the world help improve Pd because it is an open-source project. You can use it on many types of computers like Linux, MacOS, iOS, Android, and Windows.

Pd works in a special way that is similar to another program called Max, which Miller Puckette also helped create. With extra tools like the Graphics Environment for Multimedia, people can make and change videos, OpenGL graphics, and pictures while the music plays. This lets artists mix sounds, pictures, and more in exciting ways.

One special feature of Pd is that it lets musicians work together live over the internet. Whether they are in the same room or far away, they can create music together in real time. Pd uses something called FUDI to connect people online. This makes it a fun and powerful tool for creative projects.

Similarities to Max

Pure Data and Max are both types of programming languages that let you connect different parts together in a visual way. They help create sounds by linking these parts on a screen. Pure Data was made to handle both control and sound processing on a computer's main processor.

Like Max, Pure Data has many small pieces of code, called externals or objects, that you can use to build programs. This makes it easy for anyone to add their own features using different programming languages. Pure Data is also a programming language itself, with special pieces called "patches" or "abstractions" that users can share and use.

Language features

Like Max, Pure Data (Pd) is a special kind of programming language that lets you create music and other fun things on a computer. It works by moving information, called data, in two main speeds: one very fast for sounds and another slower for controlling things. This data moves from the top of the screen to the bottom, passing through little boxes called "objects" that are connected together.

Pd uses a few basic types of text pieces: messages, objects, small pieces of data called atoms, and comments. Atoms are the smallest bits of information and can be numbers, symbols, or pointers to more data. Messages tell the objects what to do, and a special message called a "bang" acts like pressing a button to start something happening.

Pd has many built-in objects for doing math, making logical choices, and handling sounds. These include tools for creating different types of sounds, like oscillators and filters, and ways to get data from files, microphones, musical instruments, or the internet. Data can also be stored and used later.

Data structures

One special feature of Pd is its ability to show data in pictures. These pictures, called data structures, can help make music, create sequences of events, or even make visuals that go with your Pd projects. Users can build complex and dynamic pictures of their music data. These pictures can show any kind of information the user wants, and they can be changed or created from files, generated by rules, or even made from sounds coming in.

Language limitations

Pure Data is great for making music and multimedia, but it has some limits. For example, it can be hard to run many tasks at the same time because the program does not make it easy to create and manage many objects. Also, some parts of Pure Data can mix up names because it can be tricky to keep track of different pieces of the program.

Projects using Pure Data

Pure Data has been used in many creative projects. It helps make sounds and music for games and other interactive tools. For example, it was used to create sounds for the video game Spore made by Electronic Arts.

The program has also been used in special tools like the Reactable and an old iPhone app called RjDj. It even helps artists perform together over the internet using something called the NRCI Library.

Code examples

Pure Data lets you create music and multimedia by connecting visual blocks together. Here are a few simple examples:

  • Patch 1: This shows a basic "hello world" message on the screen Hello world program.
  • Patch 2: This adds an echo effect to sounds coming in from one channel and sends the result to two channels.
  • Patch 3: This example takes random noise, filters it at 9000 Hz, and smoothly fades the sound in and out every second. In Pure Data, time is measured in thousandths of a second.

Images

An image from the Center for Computer Research in Music and Acoustics showing audio equipment and musical instruments.
A visual example from the digital audio tool Pure Data, showing a technical diagram used for music and sound creation.

Related articles

This article is a child-friendly adaptation of the Wikipedia article on Pure Data, available under CC BY-SA 4.0.

Images from Wikimedia Commons. Tap any image to view credits and license.