Show HN: Play a physically simulated trombone in the browser
nuchi.github.io
nuchi.github.io
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
[2] https://ccrma.stanford.edu/~jos/pasp/Digital_Waveguide_Theor...
I can imagine synth musicians coming up with all kinds of new sounds with that style of interface, but with switchable sound samples.