Model parameters ħ = 1
Engine
Position space
Momentum · oscillator bank
Spectrogram synth
Waveform S(t) Σ Cn(t) sin(ωnt)
The model in eight equations
Each eigenfunction sin(nπx/L) becomes a sinusoidal oscillator of frequency n·f₀, and the spectrum of S(t) at each instant is the momentum distribution of the packet. The engine here is a direct port of qmodel.java from the Max/MSP implementation (gaussian-rev3.maxpat): every clock tick advances t by Δt, recomputes Cn(t) for n = 1…N, and the bank interpolates the amplitudes over the tick, like the list-interpolate → ioscbank~ chain. Partials above Nyquist are muted.
Two switches expose details of the compiled code. Classical drift: qmodel also moves x₀ by (p₀/m)Δt on every step, on top of the phase evolution in Eq. 22; the packet then travels at about twice p₀/m, and the full revival is exact only when 2n₀ is an integer. A-term weighting: in the Java expression the normalization √(2πα)/L multiplies only the A term, so packets with p₀ < 0 are much quieter (this is why Audio Example 5 starts near 70 Hz). Turn both off to hear Eq. 22 as printed.