Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Open vs. Closed Pipes – Flutes vs. Clarinets (2007) (unsw.edu.au)
34 points by vo2maxer on Nov 11, 2019 | hide | past | favorite | 7 comments


If you want an simple algorithm to model this, waveguide synthesis can give surprisingly convincing results, including the difference between open and closed pipes. In short, a waveguide model involves delaying the signal (to simulate the signal traveling down the pipe), inverting it (to simulate wave reflection as described in TFA), and adding back to the pre-delayed signal.

Open pipes have two reflections, therefore two inversions in the corresponding algorithm, which can be combined into a simple positive feedback loop. Closed pipes only have one reflection, which is simulated by a negative feedback loop.

Here's an explorable where you can test it. In particular, in the "controlling the pitch" and "note transitions" sections, you can try changing the feedback between positive and negative values, and hear the corresponding flute/clarinet change in timbre.

https://www.osar.fr/notes/waveguides/


Thank you. That page's few simple examples did a lot to clarify my understanding of waveguide synth.


So that's why clarinet "squeaks" sound so grating: the higher overtones don't fit cleanly into the twelve-note scale.


I pity the family of a beginning clarinet student, like mine when I was learning to play it. Gaining control of the amount of wind to put into the instrument along with understanding how the mouthpiece and reed interact with your mouth, lips, and teeth takes a lot of practice during which time, mostly squeaks are produced. But, it's like riding a bike. Once mastered, you rarely fall off. It just takes practice.


But clarinets, with their (literally) odd harmonics, work very nicely for the Bohlen-Pierce scale [1], which is a 13-note scale based on the tritave, not octave.

[1] https://en.wikipedia.org/wiki/Bohlen%E2%80%93Pierce_scale


Was expecting to see something related to unix pipes, was pleasantly surprised


Fascinating!




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: