TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Mathematical explanation of music and white/black notes in a piano

161 pointsby tpintoover 14 years ago

14 comments

gjm11over 14 years ago
The short answer is: the diatonic scale in a given key consists of notes whose frequencies are those of the keynote times certain simple rational numbers; the white notes on the piano are those that belong to the diatonic scale based on C.<p>What's special about those simple rational-number ratios? Answer: on most musical instruments, notes whose frequencies are in simple rational ratios sound nice together. This turns out (surprisingly, at least to me) to be a fact about the instrument and not merely about the notes; when you play a given note on a given instrument, you get (kinda) sine waves whose frequencies are those of the given note, plus some higher frequencies; exactly what the higher frequencies are and how much of each you get depends on the instrument. For most instruments, the higher frequencies are integer multiples of the fundamental frequency, and that turns out to mean that the good-sounding combinations of notes are ones with simple rational frequency ratios; but there are instruments that behave differently (e.g., a tuned circular drum; or you can make a synthesized instrument that does anything you like) and <i>different chords will sound good on them</i>.<p>For much more on this, see William Sethares's book "Tuning, Timbre, Spectrum, Scale" and his web pages at <a href="http://eceserv0.ece.wisc.edu/~sethares/ttss.html" rel="nofollow">http://eceserv0.ece.wisc.edu/~sethares/ttss.html</a> where you can find, e.g., some music in unorthodox scales performed on (synthetic) instruments designed to make the harmony sound good.<p>For instance: listen to <a href="http://eceserv0.ece.wisc.edu/~sethares/mp3s/tenfingersX.mp3" rel="nofollow">http://eceserv0.ece.wisc.edu/~sethares/mp3s/tenfingersX.mp3</a> and hear how out-of-tune it sounds. Now try <a href="http://eceserv0.ece.wisc.edu/~sethares/mp3s/Ten_Fingers.mp3" rel="nofollow">http://eceserv0.ece.wisc.edu/~sethares/mp3s/Ten_Fingers.mp3</a> which has exactly the same notes but played on a synthetic instrument designed to make the harmonies work.
extensionover 14 years ago
The top answer on stackexchange is a <i>superb</i> explanation of musical science that most of the finest musicians in history could not give you. They just don't teach you these things in music class.<p>Musical culture seems to resist illumination, perhaps fearing that the "magic" will somehow be broken. The irony is that music <i>is</i>, in a sense, a mathematical illusion, but revealing the trick only makes it more fascinating.<p>I will add one important point that hasn't really been made: The purpose of equal temperament may have <i>originally</i> been to "change keys without retuning", but it also essentially allows you to play in 12 different keys <i>at the same time</i>. This has been exploited to great lengths as source of musical novelty and is absolutely fundamental to modern music.
评论 #1941380 未加载
评论 #1941347 未加载
评论 #1940926 未加载
kainhighwindover 14 years ago
I'm glad folks are finding this interesting. However, this is pretty much common knowledge to anyone who has taken music theory. It's usually not given a great deal of attention as most musicians using the standard 12 tone don't care much about what's going on under the hood. They're a bit like programmers who use a high level language and an IDE and don't know how a compiler or assembly works.<p>Just a bit funny to come across it here, it'd be a bit like finding out musicians were talking on a forum going 'wow, computer programs are written using structured text files!' or something of the like. Not trying to be rude..
hasenjover 14 years ago
The piano to me feels like an iPhone, it does a lot of things well, and it hides many details from you. I don't know if real pianos are tunable/adjustable, but the electronic one we have at home certainly isn't (except in its ability to sounds as different instruments).<p>I recently bought a Oud[1], a classical stringed middle eastern instrument, it's not fretted, it's portable, and adjustable. To me, when I compare it to the piano, the Oud feels like the Unix of musical instruments. It's a bit hard to get used to at first, but it's designed to be lite-weight (portable) and adjustable, allowing power users to be very creative and expressive. Most other users will stick to a standard tuning and placement of fingers.<p>I'm not super-bothered by the way the piano is layed out, to me it's just a simplified instrument that works for 95% of the cases.<p>What I don't understand is why do all the middle eastern scales (maqam[2]) have 7 tones. The fact the western C major scale also has 7 tones is just another example of yet another scale with 7 tones (and it happens to correspond to the Ajam maqam[3]).<p>There are some middle eastern scales not really playable on a piano, like the Rast[4], unless the piano is somehow adjustable.<p>[1]: <a href="http://en.wikipedia.org/wiki/Oud" rel="nofollow">http://en.wikipedia.org/wiki/Oud</a><p>[2]: <a href="http://en.wikipedia.org/wiki/Arabic_maqam" rel="nofollow">http://en.wikipedia.org/wiki/Arabic_maqam</a><p>[3]: <a href="http://en.wikipedia.org/wiki/Ajam_(maqam)" rel="nofollow">http://en.wikipedia.org/wiki/Ajam_(maqam)</a><p>[4]: <a href="http://en.wikipedia.org/wiki/Rast_(maqam)" rel="nofollow">http://en.wikipedia.org/wiki/Rast_(maqam)</a>
评论 #1941028 未加载
cletusover 14 years ago
Years ago I watched a British documentary called <i>Howard Goodall's Big Bangs</i>. It's well worth watching. It explains how music theory developed from Pythagoras's (matching the 12 keys on the piano). It's an interesting exercise to "prove" these 12 steps based on this simple ratio.<p>What came much later was equal temperament. The 12 steps don't match up exactly. Equal temperament changes the notes slightly by changing the ratio slightly (to factors of the 12th root of 2). I believe it was Bach who first discovered this.<p>Not all cultures use equal temperament but it is overwhelmingly dominant in the West.<p>The series also explains chords, keys and so on. For someone like me who is more mathematically inclined it was fascinating. Give it a look if you can.<p>Oh also it wasn't the BBC as you might expect. It was Channel 4.
fxjover 14 years ago
12 tones is not the only possibility. there is also a 19 tone scale:<p><a href="http://en.wikipedia.org/wiki/19_equal_temperament" rel="nofollow">http://en.wikipedia.org/wiki/19_equal_temperament</a><p>there are also some mp3 files using 19 tone scale: e.g. <a href="http://www.harrington.lunarpages.com/mp3/Jeff-Harrington_Prelude_3_for_19ET_Piano.mp3" rel="nofollow">http://www.harrington.lunarpages.com/mp3/Jeff-Harrington_Pre...</a>
评论 #1941048 未加载
hugh3over 14 years ago
I think there are different answers at different levels.<p>On one level, the white notes are the notes of the C major scale, and the black notes are the semitones which are left over. Why not put all the semitones in one row? That would be much harder to play. Why split it into "C major" and "leftovers"? A bunch of semi-arbitrary decisions made by early harpsichord manufacturers, I guess, which happen to make the instrument easier to play than most alternatives.<p>If you're looking for an explanation of why the notes of the major scale sound good together whereas most alternative modes sound weird, that's a more difficult question.
评论 #1940628 未加载
cturnerover 14 years ago
I've recently read _How Music Works_.<p><pre><code> http://www.amazon.co.uk/How-Music-Works-listener%C2%92s-harmony/dp/1846143152/ref=sr_1_1?ie=UTF8&#38;qid=1290710570&#38;sr=8-1 </code></pre> Covers the physics of sound and harmonics as well. Recommend.
JonnieCacheover 14 years ago
I can highly recommend this lecture, Notes and Neurons, from the 2009 World Science Festival. It features a panel of neuroscientists discussing the possible physiological encodings of the various mathematical structures discussed here. It also includes some amazing participative musical performances from Bobby McFerrin.<p><a href="http://www.worldsciencefestival.com/video/notes-neurons-full" rel="nofollow">http://www.worldsciencefestival.com/video/notes-neurons-full</a>
edanmover 14 years ago
If you missed it, there's a link to a <i>free</i> ebook called "Music: a Mathematical Offering" -<a href="http://www.maths.abdn.ac.uk/~bensondj/html/maths-music.html" rel="nofollow">http://www.maths.abdn.ac.uk/~bensondj/html/maths-music.html</a><p>Haven't read it, but it looks good.
wzddover 14 years ago
If you're just after a listen, there are lots of examples of alternative systems on youtube. Here's 19-tone, equal temperament (as opposed to the usual 12 TET): <a href="http://www.youtube.com/watch?v=1EP0KvbxW8o" rel="nofollow">http://www.youtube.com/watch?v=1EP0KvbxW8o</a><p>I like the above example because it always starts by sounding "off" to me but seems okay by the end of the piece. It's a matter of what you're used to.
stupidsignupover 14 years ago
For anyone interested in that kind of stuff: read "Musimathics", volume I especially.
MrJagilover 14 years ago
kinda-off-topic: I am very often baffled by the sheer mathematical and general complexity of music. Each music-related wikipedia article is the stub of a link-tree that quickly ends up in confounding complexity.<p>The highly emotional associations I get of rock musicians and metal concerts when thinking about music could not be further from the science of music.
jacquesmover 14 years ago
<a href="http://en.wikipedia.org/wiki/Circle_of_fifths" rel="nofollow">http://en.wikipedia.org/wiki/Circle_of_fifths</a>