SPB Git

Repository Public

percussion.md 2.7 KB

# Percussion

A struck body is a sum of modes, each a damped sinusoid:

y(t) = sum_k a_k exp(-6.908 t / T_k) sin(2 pi r_k f0 t)

The frequency ratios r_k are those of the body:

Body Ratios Source
glockenspiel 1, 2.756, 5.404, 8.933, 13.34 free uniform bar (Euler-Bernoulli): (3.011^2, 5^2, 7^2, 9^2, 11^2) / 3.011^2
marimba 1, 4, 9.9, 17.6 bar undercut so that mode 2 is the double octave
vibraphone 1, 4, 10, 18.6 same tuning, long decay
kalimba 1, 6.27, 17.55 clamped-free bar
bell 0.5, 1, 1.2, 1.5, 2, 2.6, 3, 4, 5.2, 6.6 hum, prime, tierce, quint, nominal... of a tuned church bell
tubular 1, 2, 3.01, 4.03, 5.08, 6.15 the strike tone is the missing fundamental of modes near 2 : 3 : 4
glass, woodblock plausible sets not derived from a specific object

Amplitudes and relative decays are plausible values, not measurements of an instrument. The mallet multiplies each amplitude by 1 / (1 + (f / f_c)^2) with f_c = 300 + 14000 hardness^2 (0.3 + 0.7 v) + 1.5 f0 Hz: a soft mallet stays in contact longer and excites fewer modes. T_k = t60(body) * decay * (261.6 / f0)^0.6 * d_k. partials [..] replaces the ratios by custom ones (amplitudes 1/k, decays 1/sqrt(r)).

The marimba and vibraphone tube resonators are not modelled; the vibraphone motor is an amplitude tremolo. The modes are computed by coupled-form rotation, so the first mode is exact (error below 0.01 cent).

# kick

f(t) = tune * 2^(sweep exp(-t / tau) / 12),   y = tanh(k sin(phase)) * exp(-6.9 t / decay) + click

A sine whose pitch falls exponentially from sweep semitones above tune, the standard analogue bass-drum circuit behaviour. It is not a membrane model: a real drum head has inharmonic modes (1, 1.59, 2.14, 2.30...) and its pitch glide comes from tension modulation.

# snare

Two sinusoids at tune and 1.78 tune (an inharmonic pair in the range of a snare head's lowest modes; the ratio is a design choice, not a measurement) with a 5-semitone drop over 12 ms, plus white noise through a band-pass at noise.color and a 700 Hz high-pass for the wires. The coupling of wires and head is not modelled: the noise has its own envelope.

# hihat

Six polyBLEP square oscillators at 205.3, 304.4, 369.6, 522.7, 540 and 800 Hz times 6.5 times tune (the ratios of a well-known drum machine's cymbal circuit, moved into the cymbal range), through band-passes at 3.44 and 7.1 kHz and a high-pass. This is a dense inharmonic cluster, not a plate model; a cymbal has thousands of modes and nonlinear mode coupling.

Files main
Menu

Theme