News for hackers. Stuff that matters.
Re:Why Fibonacci? by gjm11 on Wednesday November 18, 2026 @08:20AM (#50545985)
Fun fact: this is why the musical interval called a tritone[1] sounds so dissonant that it's been called "diabolus in musica", "the devil in music"[2].

In equal temperament[3] you get this interval from two notes whose frequencies differ by a factor of the square root of 2. And this also has a continued fraction whose coefficients are very small: [1,2,2,2,...], so it also is very badly approximated by rational numbers.

And the musical intervals that sound "clean" and consonant are exactly those that are very close to simple rational numbers. Why? No one knows for certain but the following seems to be a big part of the answer[4]: most of the instruments we use in "Western" music involve some basically-one-dimensional thing sustaining vibrations: either a string (violin, piano, guitar, ...) or a long thin tract of air (oboe, trumpet, organ, voice, ...). The modes of vibration such a thing can support have frequencies lying in arithmetic progression: f, 2f, 3f, etc. or some subset thereof. So the sound of any note you play with such a thing can be thought of as a combination of pure sinusoidal tones at those frequencies.

Now, if you have people listen to two-note chords where the individual notes are pure sinusoids then they don't strongly prefer simple-rational-number frequency ratios. Instead, what happens is that if the frequencies are very close but not so close that they sound like a single note, the "beating" effects become unpleasant, and that's where a sense of dissonance comes from.

And if instead you combine two notes each of which is built out of lots of sinusoids at frequencies f1, 2.f1, 3.f1, etc., and f2, 2.f2, 3.f2, etc., then you get dissonance when two of the constituent sinusoids are close-but-not-close-enough. And if the ratio between f1 and f2 is a simple rational number then all the "close" things line up exactly[5] so the level of dissonance is low; if it's very close to a simple rational number then they line up almost exactly which is almost as good; but if not, then there are pairs that come close-but-not-close-enough.

So very-irrational ratios -> clashing harmonics -> dissonance, so a sqrt(2) frequency ratio sounds dissonant, so a tritone sounds dissonant. Diabolus in musica!

[1] or augmented fourth, or diminished fifth; C to F#, etc; the interval at the start of "Maria" from West Side Story and all over Britten's War Requiem

[2] Claims that the use of this interval was forbidden by the Church, etc., are bullshit, though.

[3] Where you divide an octave into twelve exactly equal semitones. This has been the usual arrangement in "Western" music for quite some time, but it's not the only thing you can do. However, what I say about tritones is still approximately true in other temperaments.

[4] William Sethares's book Tuning, Timbre, Spectrum, Scale gives a very nice account of this.

[5] If you make this mathematically precise then you get a theorem of the form "two unequal rational numbers can't be too close together given the size of their denominators", which is what you use to e.g. prove that e, the base of natural logarithms, is not a rational number, because the well-known infinite series for it gives you very-good-but-not-exact rational approximations.

Re:Why Fibonacci? by rmunn on Wednesday November 18, 2026 @09:08AM (#50546512)
I sang in a choir once, twenty years ago, that performed Benjamin Britten's War Requiem. Most difficult choral piece I've ever performed. Tritones all over the place. They are very, very difficult to sing, because our musical sense (developed on Western music) just doesn't assign anything to them at all. A fourth makes sense musically, and a fifth does too, but halfway between a fourth and a fifth? Really hard to nail that interval as a singer. Really hard. I eventually just got used to thinking "sing note X, then sing the note up somewhere in the fourth-to-fifth range above X that makes the least sense musically; that's the right note". And then I could sing a tritone.
Re:Why Fibonacci? by amavect on Wednesday November 18, 2026 @01:44PM (#50550343)
In jazz, the tritone takes a consonant function in a Maj11 chord. A tritone (600 cents) approximates 45/32 (590 cents), derived by stacking major thirds (5/4) with minor thirds (6/5). But 45/32 doesn't show up in the continued fraction, so maybe it doesn't count.

7/5 does show up in the continued fraction, and I consider it consonant.