In this section, we will attempt more imaginative visualizers wherein our visual structures will be animated not according to some signal's waveform or spectral characteristics, but rather with respect to more abstract musical properties such as the frequency of a particular element or the output of some pattern.
In this example, we rotate five windmills with respect to the detected frequencies of five complex sound sources. Each of our five instances of Synth
also writes the frequency information (tracked in real time via Tartini
) to an instance of Bus
to be accessed later by our drawFunc
function and set the rotational speed accordingly. Herein, we rely on the windmill factory we had demonstrated in Chapter 5, Animation (which, of course, we have to load again). We will then create five instances of Synth
using the following instance of SynthDef
:
SynthDef(\windmillVisualizerSynth, { arg freqOut, rate; var signal, modulator, analysis; modulator = LFNoise2...