Computational geometry rendering: spatial form derived from algorithmic audio signal analysis of Bach's Goldberg Variations

04 · Computational Design & Digital Fabrication

Formal Music

An algorithmic translation of musical acoustics into three-dimensional architectural morphology. Performance recordings of J.S. Bach’s Goldberg Variations (BWV 988) were processed through a custom Python audio analysis pipeline, decomposing acoustic timbre and temporal cadence into structured multi-dimensional coordinate vectors. These dynamic time-series matrices were streamed into Grasshopper and Rhinoceros 3D to drive parametric surface lofting, variable subdivision meshes, and 3D-printable structural lattices.

Project Specifications

Typology
Computational Morphology & Digital Fabrication
Composition
J.S. Bach, Goldberg Variations (BWV 988)
Signal Analysis
Python 3.10 (Librosa, NumPy, Pandas)
Parametric Tools
Grasshopper, Rhinoceros 3D
Fabrication
Additive 3D Printing & Spatial Animation
Year
2025

Acoustic Signal Processing & Vector Extraction

Using Python 3.10 and the Librosa signal processing library, audio waveforms were sampled at discrete 0.25-second windows. Spectral centroid algorithms isolate perceptual audio brightness (timbre), while tempograms track rhythmic acceleration and deceleration. The script computes and normalizes these parameters into structured time-series dataframes for parametric modeling.

formal 3.py Python 3.10 · Librosa + NumPy
import os
import librosa
import pandas as pd
import numpy as np

def analyze_audio(file_path, interval_sec=0.25):
    """
    Analyzes audio for spectral centroid (frequency timbre) and rhythm (tempo).
    Exports time-series coordinate matrices for parametric ingest in Grasshopper.
    """
    y, sr = librosa.load(file_path)
    hop_length = int(sr * interval_sec)
    
    # Extract spectral centroid across time slices
    spectral_centroids = librosa.feature.spectral_centroid(
        y=y, sr=sr, hop_length=hop_length
    )[0]
    
    # Extract tempogram rhythm vectors
    tempogram = librosa.feature.tempogram(y=y, sr=sr, hop_length=hop_length)
    average_tempo_over_time = np.mean(tempogram, axis=0)
    
    # Format structured coordinate matrix for Grasshopper
    min_length = min(len(spectral_centroids), len(average_tempo_over_time))
    return pd.DataFrame({
        'time': np.arange(min_length) * interval_sec,
        'spectral_centroid': spectral_centroids[:min_length],
        'tempo_vector': average_tempo_over_time[:min_length]
    })
Python audio analysis pipeline: Transforming continuous acoustic performance into normalized mathematical matrices for computational design.

Morphological Variations & Spatial Typologies

Iterative axonometric studies exploring how the musical data deforms various geometric bounding envelopes. Testing cylindrical topological sweeps, prismatic faceted enclosures, and radial acoustic dispersion shells to evaluate physical spatial qualities and structural integrity for 3D printing.

Axonometric diagrams of parametric form generation
Morphological typologies: Axonometric investigations exploring cylindrical topological contours, prismatic surfaces, and radial acoustic element arrays.

Grasshopper Visual Scripting & Surface Mapping

The multi-channel CSV time-series data is ingested into Grasshopper via parametric file-reading components. The definition translates spectral centroids into Z-axis displacement heights and tempo vectors into radial subdivision frequencies, lofting fluid NURBS surfaces and lattice wireframes in Rhino.

Grasshopper algorithmic definition
Grasshopper parametric network: Algorithmic definition mapping external data matrices to surface control points, lofting curves, and geometric tessellation.

Temporal Deformation & Spatial Animation

Animation capturing the temporal evolution of the parametric envelope in direct synchronization with the musical performance, illustrating how harmonic shifts and contrapuntal cadence generate continuous spatial variation.

Parametric deformation animation: Real-time geometric transformation reflecting audio velocity, frequency shifts, and contrapuntal cadence.