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.
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.
Acoustic Signal Processing & Vector Extraction
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]
})
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.
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.
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.
Next Project · 01