4 ms·
Show HN: Play a physically simulated trombone in the browser
- matheist 5y agoI'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
- ksaj 5y agoThis is really interesting. Even though it's a trombone simulator, because of the way it is played, it really could be an instrument of its own. But I did learn a lot about trombone I didn't know before, so it does exactly what your text says you want it to. I can imagine synth musicians coming up with all kinds of new sounds with that style of interface, but with switchable sound samples.