Weather Factory maxPatch

go back to Sonifying the weather forecast main page

This max patch is designed to create and blend the sounds required for sonifying the weather project. Key parameters I want to map are wind (speed and direction), rain (amount), and temperature. This weather factory includes sound synthesis, sampled sound and processed sounds. The patch can be used in interactive by moving sliders, dials and number boxer, in data driven or hybrid mode. For details, operation manual can be download here.

screenshot of weather factory max patchscreenshot of weather factory max patch

You can view a video demonstration of the patch here.

The patch synthesises wind in 3 different frequency ranges using subtractive synthesis. These 3 wind frequency banks are then blended together using crossfader function. The patch can stereo pan the wind so it appears to come from different directions. The patch can also invoke rain banks of different intensity rain (from a series of field recordings), blend the signals and adjust the gain of the output. Each weather element can be recorded separately (but synchronously) to create a set of weather STEMS that can subsequently be easily combined in a DAW such as REAPER or LOGIC, for mixing, EQ or further processing.

Wind generator

In this subpatch, wind is generated by subtractive synthesis where sounds are removed. Starting with white (or pink) noise or (interpolated) random values a lowpass resonant filter allows removal of parts of the signal and amplification other parts. Cutoff frequency and resonance are input parameters. To give infinite variability and non repeated gestures, these parameters are varied using a random number generator where the range and rate of change can be controlled or specified or changed according to an external parameter from data. Key challenges are selecting appropriate parameters and scaling the data ranges to give realistic increasing level of sound.

screenshot of wind generator max patchscreenshot of wind generator max patch

To create a rich wind sound it is necessary to mix low frequency, medium frequency and high frequency wind, where all are behaving differently (ie. using different noise~ objects and different rand~ at different times). An important observation about wind is that it is constantly moving and often comes or appears to come from different directions. Stereo panning helps to give a sense of spatial immersion (pan2S object is used to give equal power panning).

Description and wind parameter settings

I create 3 different sound banks of wind based on high, medium and low frequency content. The high frequency wind is designed to be whistling and spatially tight (cold) whereas the lower frequency is wider and more rounded (warm). I then control the mix of the different wind elements directly from Temperature data with low temperatures favouring the high frequency components and warmer temperatures invoking the lower frequency wind. I cross fade between the favoured elements as the temperature varies. Typical starting parameters are show in the table.

frequency noise colour cutoff f rate of change resonance rate of change stereo pan width pan rate
high white 1000 - 3500 0.1 0.99 2.1 0.25 0.1
medium white 1000 - 2500 0.1 0.99 0.2 0.5 0.1
low white 250 - 650 0.1 0.7 0.2 0.5 0.6

Rain (precipitation) generator

In my rain generator max patch, I use play objects in max to cue up different sound recordings (of different intensity rain) and blend with previous track. The crossfade or mixing between tracks is important here. I use mpFadeManagement subpatch to manage fade in fade out and avoid clicks when new sound files are randomly invoked.

screenshot of rain generator max patchscreenshot of rain generator max patch

Rain sound files

I use sound recordings i made recently in Edinburgh details here categorised into 3 sound folders signifying degree of precipitation: low, medium, high. For each folder there are several recordings which are accessed randomly to add variety. The folders are selected by user into rain Banks which are then cross faded accordign to interactive slider or data. Alternatively, the amplitude of a given sound file could be modulated using a very low frequency oscillator to inject variability.

SFplayer

A series of sfplay~ objects are used for the different precipitation category. For each category, the sfplay~ object is linked to a umenu autopopulated from a given rain sound bank. When a given rain intensity is reached (according to the data or slider movement) a random sound file from the correct sound bank is triggered.

Crossfade

Blending the triggered soundfiles is done via a crossfade mixer element.

Ambience

When there is little or no wind, ambience of a given locality will be heard. Several ambience files representing different times of day or seasons can be added to give context.

Temperature

It would be obvious, and perhaps useful, to map temperature to pitch, however i have avoid that and instead map temperature to different frequency blends of wind as described in manual. I also trigger sounds meant to invoke warmer or colder conditions.

Future improvements

This patch currently functions from a loaded dataset or interactive control of sliders and dials. Future iterations will link directly to the yr.no site and grab the live data using an api. The patch is already set up to deal with the categories and ranges reported from the site, so this step is a minor programming task. Linking the visual sky representation with patch so the images could be seen by user. In future I anticipate recording more instants of weather elements and location specific ambience to give better local contexts. For details, operation manual can be download here.


go back to Sonifying the weather forecast main page