Book Image

Mapping and Visualization with SuperCollider

By : Marinos Koutsomichalis
Book Image

Mapping and Visualization with SuperCollider

By: Marinos Koutsomichalis

Overview of this book

SuperCollider is an environment and programming language used by musicians, scientists, and artists who work with audio-files SuperCollider has built-in graphical features which are used in conjunction with the sound synthesis server to create audio-visual mapping and sound visualization. If you wish to create data visualizations by acquiring data from audio and visual sources, then this book is for you.Digital sound artists need to analyze, manipulate, map, and visualize data when working on a scientific or an artistic project. As an artist, this book, by means of its numerous code examples will provide you with the necessary knowledge of SuperCollider's practical applications, so that you can extract meaningful information from audio-files and master its visualization techniques. This book will help you to prototype and implement sophisticated visualizers, sonifiers, and complex mappings of your data.This book takes a closer look at SuperCollider features such as plotting and metering functionality to dispel the mysterious aura surrounding the more advanced mappings and animation strategies. This book also takes you through a number of examples that help you to create intelligent mapping and visualization systems. Throughout the course of the book, you will synthesize and optimize waveforms and spectra for scoping as well as extract information from an audio signal. The later sections of the book focus on advanced topics such as emulating physical forces, designing kinematic structures, and using neural networks to enable you to develop a visualization that has a natural motion with structures that respect anatomy and which come with an intelligent encoding mechanism. This book will teach you everything you need to work with intelligent audio-visual systems to extract and visualize audio-visual data.
Table of Contents (16 chapters)

Waveshaping


Waveshaping stands for transforming a waveform with respect to some transfer function. Basic waveshaping can be performed using Clip, Fold, Wrap UGens, or their equivalent convenient methods (clip, fold and wrap, respectively):

// convenient waveshaping
{SinOsc.ar(300).clip(-0.5,0.5)}.scope;  // clipping output to +-0.5
{SinOsc.ar(300).fold(-0.5,0.5)}.scope;  // folding output to +-0.5
{SinOsc.ar(300).wrap(-0.5,0.5)}.scope;  // wrapping output to +-0.5

In the following figure, we can see how the original waveform is transformed in each case:

Only the part of the input waveform that lies outside the given bounds (± 0.5 herein) will be affected. Values within this range will remain unchanged, while values outside it will be either truncated (clip), folded back (fold), or wrapped (wrap) onto the valid range by means of a simple mathematical formulae. Waveshaping epitomizes how subtle variations in the amplitude or DC offset or the original signal may result in dramatically different...