sound textures
A subtle sense of order emerging from seemingly unorganized elements.
Rain, applause, frying, a swarm of bees, a worn bearing. Countless short events, never identical, organized by chance into a stable whole. How little does it take to describe one? Two dozen numbers, fitted to a single recording, then played.
The work has three parts: a distance between textures built from descriptors in the literature, an evolutionary system that fits a model to a recording, and a stochastic engine with 23 parameters.
questions
What makes rain sound like rain: density, randomness, the shape of a single grain? Why are some textures soothing and others unbearable? Could cars, appliances or even cities sound kinder? And what could textures reveal about our perception?
Hearing seems to summarize textures rather than follow them. Sounds synthesized only from time-averaged statistics, envelope moments in auditory bands, correlations between bands, modulation power, are recognized as the originals, while matching the power spectrum alone is not enough (McDermott and Simoncelli). With longer excerpts listeners lose the timing of single events but keep their statistics, integrating them over several seconds.
Below about 30 events per second, events are heard one by one, as rhythm or flutter. Above it they merge: into a pitch if the train is regular, into a colored noise if it is not. The continuum between those two, from regular to random, is what the engine below is built to span.
Textures also act on the body. In small studies, water and birdsong came with faster recovery after induced stress and lower prefrontal activity than city sound; chronic road and air traffic noise acts as a physiological stressor, mainly through fragmented sleep. The evidence that steady broadband noise improves sleep is rated very low. Structured textures seem to ease noise annoyance beyond masking it, and complexity, the presence of a pattern and familiarity predict how restorative a sound is judged to be. Which statistics carry these effects is open; a model that changes one of them and holds the rest is a way to ask.
McDermott & Simoncelli, Neuron 2011; McDermott, Schemitsch & Simoncelli, Nature Neuroscience 2013; Alvarsson, Wiens & Nilsson, IJERPH 2010; Gould van Praag et al., Scientific Reports 2017; WHO Environmental Noise Guidelines 2018; Riedy et al., Sleep Medicine Reviews 2021; Ratcliffe, Frontiers in Psychology 2021.
plan
The goal: one explicit generative model that covers dense noise, granular and rhythmic textures, tones and trains of resonant impacts, with a few dozen parameters of definite meaning, fitted to a single recording without prior training. The signal is split into three independently parametrized layers: the carrier is the excitation, the modulation its organization in time, the resonator the system it passes through.
- Reference corpus. Stationary 4-second excerpts selected automatically from FSD50K and own recordings, for calibration.
- Texture distance. Descriptors chosen, tested for stability across realizations and invariance to gain, pruned for redundancy, scaled on the corpus.
- Identification. A modular analysis-by-synthesis system: gradient-free search, parallel evaluation, averaging over random realizations.
- Specialized model. A bearing-fault version, fitted to real vibration: can fault frequencies be recovered without shaft speed or bearing geometry? An independent check of the distance and the search.
- Generalized model. Resynthesis of recordings of very different character; continuity of the parameter space tested by interpolating between fits.
Hypothesis: splitting a texture into carrier, modulation and resonator yields a low-dimensional explicit model that spans quasi-periodic and granular-noise signals in one continuous parameter space; models built this way and fitted without training recover kinematic quantities of a mechanical process from its vibration.
objective
How close is one texture to another, when no two realizations share a waveform? The answer has to be a distance between statistics, not between samples.
Descriptors from the literature, each a single number computed by an explicit formula on a 4-second window, invariant to gain and needing no training. 49 were implemented; after pruning, 41 enter the distance. Four families, with the numbers that remain and what they are drawn from:
- Spectrum (21, three blocks). Position and tonality: centroid, spectral peak, f₀ and its confidence, zero-crossing rate, cepstral peak prominence. Shape: octave-scale spread, skewness, kurtosis and interquartile range, roll-off, slope, flatness, crest, irregularity, decrease. Envelope: five cepstral coefficients in ERB bands.
- Modulation (7). Centroid, width and entropy of the modulation spectrum; position, strength, width and harmonicity of its main peak.
- Temporal structure (8). Repetition: envelope autocorrelation peak, harmonic share of the envelope, rate and variability of detected events. Memory and complexity: DFA exponent, multifractal width, permutation entropy, RQA determinism.
- Amplitude (5). Distribution of samples and envelope, without time or frequency: crest factor, Gini coefficient, amplitude entropy, variability of Teager–Kaiser energy, envelope depth.
Redundant descriptors were pruned by rank correlation across the whole corpus. Each difference is scaled robustly (MAD over 20,228 stationary excerpts of FSD50K), passed through a Huber loss and weighted by how reliably the feature can be measured in the reference: pitch counts only if there is a pitch. Descriptors average into blocks, blocks into families, families into one cost, each with an equal vote, so ten correlated measures of spectral shape cannot outvote the modulation rate. The same breakdown later shows which aspect of a recording a model fails to reproduce.
identification
Analysis by synthesis: the engine renders a candidate, the candidate is described like the recording, the distance drives the search. Engines, descriptors, distance and optimizer are interchangeable modules behind one interface. Engines chain in series, in parallel or as amplitude modulation; parameters can be fixed, narrowed or tied by linear constraints, and multiplicative ones are searched on a log scale.
The cost is stochastic and non-differentiable, so the search uses CMA-ES with restarts and a growing population: gradient-free, it adapts its covariance along the correlated valleys of the parameter space. Each candidate is averaged over several realizations with common random numbers, so differences in cost reflect parameters rather than lucky draws, and the finalists are re-evaluated on unseen seeds against the winner's curse. Independent restarts that settle on different values at equal cost mark a parameter as non-identifiable, with no ground truth needed.
engine
One mechanism, used twice. Nodes of alternating sign, peak, trough, peak, fall at random times, and a curve of adjustable shape joins them. The intervals between the nodes and their heights are drawn from gamma distributions, so a texture is set by the statistics of its micro-events rather than by a stored sample.
The gamma shape k sets regularity alone, since the coefficient of variation is 1/√k: k = 1 is a Poisson process and sounds like noise, k ≈ 10–50 gives band noise around f₀, k → 2·10⁴ a steady tone. The exponent p takes each segment from a sharp impulse through triangle (p = 1) and near sine (p ≈ 2) to nearly square; asymmetry bends the triangle into a sawtooth, and duty acts as pulse-width modulation. An Ornstein–Uhlenbeck process adds bounded, mean-reverting pitch drift, its depth and memory set independently. Eight parameters, each with a unit or a statistical meaning.
At audio rate the generator is the carrier. Slowed into the fluctuation and roughness band, up to 300 Hz, and half-wave rectified, it becomes the envelope: rhythm, roughness, and silence between events. A resonator with one band and one peak shapes the product. 23 parameters in all.
what it gives
- Explicit. The signal follows from the parameters and a stream of random numbers through written equations, not from a learned mapping or an iterative fit of the signal itself.
- Small. A 4-second excerpt is 176,400 samples; its fit is 23 numbers, each with a unit or a statistical definition.
- Continuous. No modes to switch: noise, grains, rhythm and tone are regions of one space, so two fits can be interpolated and every point between them is a texture in its own right.
- Searchable. Every combination is stable and every stage can switch itself off, so the optimizer meets no degenerate regions.
- Cheap to run. Synthesis is drawing events, interpolating, multiplying and a few low-order filters, with no iterative fitting of the signal, no sample tables and no trained model. One evaluation is cheap enough for a fit to afford thousands; every member of a population (24 at the first start, doubled at each restart) is rendered and described on its own, so the evolution runs in parallel across cores. Once fitted, gen~ objects in Max/MSP run the engine sample by sample in real time with a wide margin, for as long as needed, without repeating, every parameter on a knob. That margin leaves room for many instances at once: copies of one fit with independent random streams, or points scattered around it in parameter space, summed into a cloud.
- Fitted, not tuned. The same procedure, unchanged, fits a trumpet and a bearing; nothing is trained.
| fitting to a recording | parameters | scope | real time | training | |
|---|---|---|---|---|---|
| auditory statistics McDermott–Simoncelli | automatic; the result is one sound file | none to adjust afterwards | any texture | no, iterative | none |
| neural synthesis | learned from data | latent, meaning found afterwards | classes in the training set | depends on the model | large dataset |
| granular, procedural | by hand | readable | as designed | yes | none |
| physical, physically inspired modal, PhISEM | by hand; automatic inference so far mostly for single events | physical: mass, stiffness, geometry | one kind of source per model | yes | none |
| this engine | automatic, from one recording | 23, statistical; physical only in special cases | noise to tone in one space | yes | none |
None of the parts is new on its own. Alternating nodes come from Xenakis's dynamic stochastic synthesis (GENDYN), here with a gamma renewal process instead of a random walk and a shaped curve instead of a straight line; clouds of events from granular synthesis and PhISEM; source and filter from subtractive synthesis. The gamma renewal process is borrowed from models of neural spike trains, the Ornstein–Uhlenbeck process from mean-reverting phenomena; in speech terms kT and kA are jitter and shimmer. What is new is their combination in one low-dimensional space designed for evolutionary search, with one generator serving as the source of both timbre and rhythm.
The price is fidelity. The model reproduces statistics, not waveforms; it has one carrier, one envelope and one resonance; its stages are linear; and its parameters have a physical meaning only in special cases such as the bearing.
results
distance
Compared with the texture statistics of McDermott and Simoncelli on held-out excerpts: moderate agreement on pairwise distances (Spearman ρ = 0.37), and better agreement with the sound-source category (AUC +0.047, 95% bootstrap interval +0.008 to +0.079), with descriptors computed in one pass and no auditory filter bank.
bearing faults
A specialized 18-parameter version of the same architecture, with impulses, a load-zone modulation and four resonant modes, was fitted to vibration recordings from the CWRU bearing data, without shaft speed, bearing geometry or fault type.
- race faults: impact frequency within 0.95–1.06 of the kinematic value;
- rolling-element fault: cage modulation within 3%;
- rolling-element impact rate: not identifiable, and the spread of independent fits showed it.
textures
One structure, unchanged, and the same distance for every recording. Distance of the resynthesis from the recording, averaged over realizations, and the family that contributes most:
| recording | distance | largest share |
|---|---|---|
| boiling water | 0.24 | spectrum, modulation |
| trumpet | 0.28 | temporal structure |
| purring cat | 0.31 | temporal structure |
| aircraft | 0.36 | temporal structure |
| vinyl crackle | 0.85 | amplitude |
| camera self-timer | 1.09 | temporal structure |
| bird song | 1.97 | modulation |
Single stationary processes come out best: a dense train of bursting bubbles matches the assumptions of the model directly. The worst are mixtures and sequences: vinyl is continuous noise plus rare clicks, two processes forced into one amplitude distribution; bird song is a sequence of separate notes. Both point to the next step, several voices.
samples
trumpet A carrier at about 344 Hz, almost strictly periodic, with a broad peak near 1.1 kHz from the resonator.
purring cat Pulses at about 25 Hz, the rhythm of the laryngeal muscles. The timbre is matched; the breathing phases are not, the model has no mechanism for them.
bird song Separate notes between 2 and 5 kHz become one tone drifting around 3.4 kHz: the limit of a single carrier.
Each column: 125 ms of the waveform around its strongest peak, then the spectrogram over 4 s, 0.1–20 kHz, color from −80 dB (dark blue) to 0 dB (yellow) relative to the maximum.
next
- Live evolution. The search running continuously on a microphone input: a system that listens, fits and learns to answer rather than to copy. A conversation with birds, or an installation that responds to the soundscape around it.
- Two dimensions. The same scheme for visual textures, bark, asphalt, a sea surface: a renewal process of nodes in the plane, a shaped surface between them, image descriptors in place of sound descriptors.
- Many voices from one fit. A search ends with more than a winner. It keeps a Pareto set of candidates that trade one aspect of the distance for another, and a population spread around the optimum. Played together, they give a varied texture rather than copies of one; summing cells with shared drift, locked rhythms and related frequencies extends that to whole scenes, and answers the largest mismatches above, vinyl and bird song.
- Scenes and separation. The other direction of polyphony: several cells fitted jointly to one recording, each claiming one stream of events, as in computational auditory scene analysis. Vinyl would split into a noise bed and a train of clicks, a street into traffic, steps and voices. Separation then comes from explicit models rather than masks, and every separated source is itself a playable set of parameters.
- Refining the model. Listening tests of similarity, and a check of how well the distance stands in for a listener. Parameters that move over time, timbre and resonance as well as pitch and loudness. More realizations per evaluation. For machines: more recordings and databases, variable shaft speed, a second modulation mechanism, gearboxes, and fitted parameters followed over the life of a machine.
uses
- non-repeating ambiences for games and VR, driven by the state of the scene;
- sound design and post-production; an instrument with readable controls;
- perception stimuli that change one statistic and hold the rest;
- calibrated machine-signal simulators: training data and test signals with known ground truth;
- condition monitoring through the trend of fitted parameters.
publications
- W. Wronka, A generalized model of sound textures based on the stochastic organization of micro-events. Doctoral thesis, AGH University of Krakow. Supervisor: dr hab. Marek Pluta, prof. AGH. In preparation.
- W. Wronka, Optimal mother wavelet selection for a stochastic resynthesis of sound textures. Vibrations in Physical Systems 34(2), 2023.
- MSc thesis: Statistical techniques in granular sound synthesis, AGH 2021. Awarded in the faculty's Best Diploma Thesis Competition.