10 ms·
I've been working on this physically simulated trombone on and off for a few months. A recent Show HN doing something similar [1] gave me the motivation to go a
by matheist 5y ago
I've been working on this physically simulated trombone on and off for a few months. A recent Show HN doing something similar [1] gave me the motivation to go and finish it up.
It's a physical simulation of a trombone, with lips, mouthpiece, bore, slide, and bell. The overall approach is a digital waveguide [2], with lips modeled as a blown-open valve. Lip and bell parameters are approximated from [3].
Move the cursor (or your finger) left/right to control embouchure (which controls the lip-valve's spring constant) and move the cursor up/down to extend/retract the slide (modeled as a variable delay line). Space-bar/touch/click to blow. If you're at a keyboard, g to growl and f to flutter-tongue.
Diagonal colored lines indicate where the embouchure and slide length align to form a resonance, and the vertical dashed lines are rough locations of B-flat and F.
[1] https://news.ycombinator.com/item?id=27207250 https://news.ycombinator.com/item?id=27207250
[2] https://ccrma.stanford.edu/~jos/pasp/Digital_Waveguide_Theory.html https://ccrma.stanford.edu/~jos/pasp/Digital_Waveguide_Theor...
[3] https://core.ac.uk/download/pdf/56376581.pdf https://core.ac.uk/download/pdf/56376581.pdf