2021music · hardware · generative-ai

VivalPi

A generative music system sonifying live weather data, made on the three-hundredth anniversary of Vivaldi's Four Seasons to ask what his fixed seasonal compositions would sound like if the weather were real-time.

A rainbow-coloured waveform/spectrum visualization of the generative weather-driven composition.
01

Overview

VivalPi is a generative music system that sonifies real-time weather data, inviting listeners to hear the current state of the climate as a living composition. Built over three weeks in March–April 2021, the project marks the three-hundredth anniversary of Vivaldi'sLe Quattro Stagioni.

02

Concept

Three centuries ago, Vivaldi encoded the natural world into music: flowing creeks and birdsong inLa Primavera, the merciless heat ofL'estate, the rich harvests ofL'autunno, the icy cold ofL'inverno. Where Vivaldi composed fixed representations of the seasons, VivalPi asks what the composition would sound like if it changed with the actual weather, in real time.

03

System architecture

The system pulls live weather data from APIs such as OpenWeatherMap and maps meteorological variables — temperature, precipitation, wind speed — directly onto a generative composition built with theMaximilianlibrary inopenFrameworks. The result sounds noticeably different on a winter morning versus a summer afternoon, and on a rainy day versus a clear one. Audio can be played locally via the device's 3.5mm jack or streamed through a server to the web, which also opens the door to browser-based visual representations of the composition.

04

Reflection

Vivaldi's seasons are fixed forever; VivalPi's are not — the same underlying idea (weather as music) becomes a genuinely different piece of software once the data source is live rather than composed.