7

According to The Most Popular Keys of All Music on Spotify, an analysis of their song library, sharp keys are more common than flat keys.

the keys distribution of all music on Spotify

Why?

Andrew T.
  • 265
  • 3
  • 12
Randy Zeitman
  • 2,151
  • 1
  • 7
  • 27
  • Comments are not for extended discussion; this conversation has been [moved to chat](https://chat.stackexchange.com/rooms/100042/discussion-on-question-by-randy-zeitman-why-is-more-music-written-in-sharp-keys). – Dom Oct 18 '19 at 12:24
  • It might be more productive to focus on a specific composer or a specific band, e.g., Beethoven, the Beatles. – Robert Soupe Oct 20 '19 at 16:12
  • Here's the Beatles keys: https://www.beatlesbible.com/forum/recording-and-musicology/keys-that-the-beatles-used-now-that-youve-found-another-key/ Here's the Beatles keys: https://www.beatlesbible.com/forum/recording-and-musicology/keys-that-the-beatles-used-now-that-youve-found-another-key/ I dumped that into a spredsheet and did a very casual count and came up with: C 45 B 4 Bb 4 C 30 D 30 E 37 Eb 3 Em 4 G 43 – Randy Zeitman Oct 20 '19 at 21:05

7 Answers7

42

It's an artifact of Spotify's analysis. Notice that this chart shows no songs written in a flat key. Therefore, without a doubt, the chart is simply using "F♯" to mean "F♯ or G♭," "A♯" to mean "A♯ or B♭," and so forth.

In particular, B♭ major (with a key signature of ♭♭ – two flats) is definitely much more common than A♯ (with a key signature of ♯♯♯♯ – ten sharps, which is to say, three double sharps and four single sharps). But the chart shows B♭ as though it were A♯.

Tanner Swett
  • 680
  • 4
  • 11
  • 8
    But (without disagreeing) it's correctly identified F major (1 flat) and C minor (3 flats), but loses the plot after that. Dodgy data! – Steve Mansfield Oct 17 '19 at 18:35
  • 8
    @SteveMansfield It's the **name** of the key this answer is referring to, not its accidentals. This is another example of Bad Data resulting from Non-Experts trying to do "analysis". Musicians know that, say, the key of A-flat is **not** the same as the key of G-sharp, especially on string instruments. The tuning (bending) of notes is different, for just one thing. – Jeff Y Oct 18 '19 at 13:44
  • 5
    @JeffY: The data would be fine if it were labeled as identifying the *key-note pitches* and primary tonality of music, rather than the keys. Most likely Spotify is determining key-note pitches via audio analysis, and would recognize a piece of music in Db major, as having a key-note pitch of C#. Using sharps consistently makes clear that it is not trying to make any distinctions between enharmonically-equivalent keys. – supercat Oct 18 '19 at 15:09
  • 4
    @supercat Right. But **all** the terminology in the chart is related to "key" not "pitch of the tonic" or something. They're even identifying major/minor. So it's bad. – Jeff Y Oct 18 '19 at 15:46
  • 2
    @JeffY: To an audio engineer, the "key" of a piece would be determined by the key-note pitch and primary tonality (major or minor). Further, many pieces of music are played on transposed keyboards. If I set a keyboard to A415 and play a piece of music in Db major, from a music theory standpoint it's in Db major, but anyone interested in playing along with it on an A440 instrument should "pretend" it's in C major. – supercat Oct 18 '19 at 16:04
  • 2
    @supercat And that would be misappropriational hubris. Kinda the point. Any simple consult with any musician could have corrected some of the mis-stated keys, and challenged others completely, like C-sharp. Since that was clearly not done, the underlying message is "we don't care, take it or leave it". Leave it, I should think. – Jeff Y Oct 18 '19 at 16:29
  • 1
    @JeffY: If one wants to play along with a recording, what matters is the key-note pitch. A concert-pitch A440 instrument played in C major will have a key-note pitch of 262Hz, as will an A415 instrument played in Db major, as will a recording of a concert-pitch instrument which is played in F major but then slowed down by a 25%. I would expect the statistics were produced by an automated analysis of key-note frequency, rather than by hiring someone to listen to all the pieces of music and classify them by key. – supercat Oct 18 '19 at 22:50
  • 1
    @JeffY: It's not *bad*, just oversimplified. They're not looking at sheet music, but at the frequency distribution of recorded audio. Each song is pigeonholed into either a “major” or “minor” key, even if it's actually a mix of the two, or one of the other five modes of the diatonic scale, or some other scale altogether. The tonic is pigeonholed into one of the 12 pitch classes of the equal-tempered scale, probably assuming A440 tuning. – dan04 Oct 19 '19 at 06:43
  • 1
    @supercat This isn’t about playing along with a recording. It’s supposedly about distribution of keys in music. It’s totally flawed. – Jeff Y Oct 19 '19 at 12:19
  • @JeffY: This answer and your comments rightly point out that the analysis is crude and the presentation musically illiterate, but those flaws don’t either answer or invalidate the question. Relabelling their “A sharp” to B flat and so on, and allowing for the ambiguities between A flat/G sharp etc, it still clearly shows that the majority of their music is in sharp keys (i.e. G, D, A major, and e, b minor, etc) than “flat keys” (F, B flat, E flat major, d, g, c minor, etc.). So there’s still a real phenomenon here to be explained. – PLL Oct 19 '19 at 16:41
  • 5
    @JeffY: Spotify is a *recorded*-music service, rather than a *printed* music service, and the meaning of "key" is different in the two kinds of music. If Spotify has an option to identify a recording that starts in the same key as another one ends, such an option would classify music by key-note pitch; I would guess the chart is a display of data that was produced for that kind of purpose, rather than for the purpose of identifying keys. As for why C, G, and D are so popular, it's because a standard-tuned guitar can play C, G, D, Dm, A, Am, E, Em, and B7 (but not B triad) open chords. – supercat Oct 19 '19 at 18:13
  • 1
    @JeffY just as supercat stated, Spotify only has the digital file of the music. So, without any external reference, I don't know if they can differentiate between C# or Db. Moreover, if I have to interpret the article correctly, then they were analyzing a whopping over 30 million songs, possibly with some automation. On the other hand, I don't think they had time to contact every artist to confirm the *real* key signature. Of course, I'm also curious on how they chose the songs. There are non-music, duplicate songs, and even more duplicate instrumental/karaoke songs on Spotify... – Andrew T. Oct 19 '19 at 22:21
20

While there are certainly questions about how all of this data was classified, it's not surprising to me that the most popular keys tend slightly toward the sharp side (G, D, and A), with flat keys like F and B-flat ("A-sharp") turning up with smaller percentages.

I assume much of Spotify's catalog is popular music. Guitars and electric basses are rather dominant instruments there, which tend to be biased slightly toward sharp keys like G, D, and A in their typical tunings. (That is, it is often somewhat easier for beginners to play the basic notes and chords in these keys, due to more open strings and the use of only the first few frets.) Obviously keys near to C major on the circle of fifths are also relatively easy to play on piano/keyboard, another central instrument in pop music.

That leaves the mystery of why C#/D-flat and G#/A-flat are also ranked somewhat highly after the central keys of C, G, D, and A. My immediate question is how Spotify determined the key for songs that have more than one key. If they looked at the final key, many pop songs contain a final modulation that moves up by a half step, which would take C and G to D-flat and A-flat. That's speculation, but one potential explanation. (Of course, I'm putting a lot of faith that Spotify's key-finding algorithm is accurate, which it may not be.)

But why the most popular keys tend toward the slightly sharper side seems clear: they work reasonably well on both guitar and piano.

Athanasius
  • 12,142
  • 20
  • 49
  • 1
    Very true - if you were to limit the search to, say, classical music, you'd find that key signatures with more than 3-4 sharps or flats were very rare. (Before equal temperament became the standard, such keys would have sounded very discordant on many instruments.) – Darrel Hoffman Oct 18 '19 at 14:14
  • 2
    Possibly D-flat and A-flat are the result of bands that tune down a half step. – wrschneider Oct 18 '19 at 14:27
  • Exactly. You might add a contrast with brass instruments, which tend to be more comfortable in the flat keys, but are less common than guitars in pop music. – Greg Martin Oct 20 '19 at 19:42
5

Firstly, the data is presented in such a way that it is difficult to see if what they are alleging is true. Secondly, they have no key signatures with flats in their names. I'll give them a pass on six sharps (though this could be just as well written as six flats) but A# major is ridiculous.

I've tabulated the data below. it totals up to 99.8%. I'm not sure if that's my maths or their rounding error. I've totalled up the cases for up to 5 sharps or flats. The cases 0 sharps/flats and 6 sharps/flats do not belong to either the sharp key or flat key category.

For minor keys there is a bias toward sharp keys 14.2% vs flat keys 13.8% but this is vanishingly small. For major keys there is a bias toward sharp keys 31.7% vs flat keys 21.5%. Removing G major (10.7%) from the analysis would cancel this difference, so we can say that on average music written in a major key contains on average about 1/2 a sharp.


5b        Bbm* 3.2%   Dbmaj*  6.0%
4b        Fm   3.0%   Abmaj*  4.3%   
3b        Cm   2.4%   Ebmaj*  2.4%   
2b        Gm   2.6%   Bbmaj*  3.5%
1b        Dm   2.6%   Fmaj    5.3%
TOTAL b       13.8%          21.5%

Natural   Am   4.8%   Cmaj   10.2%

1#        Em   4.2%   Gmaj   10.7% 
2#        Bm   4.2%   Dmaj    8.7%
3#        F#m  2.5%   Amaj    6.1%
4#        C#m  2.1%   Emaj    3.6% 
5#        G#m  1.2%   Bmaj    2.6%
TOTAL #       14.2%          31.7%

6#        D#m  0.9%   F#maj   2.7%

GRAND TOTAL   33.7%          66.1%   

Keys marked with a * are shown as sharp keys in the original data, 
but are better and more commonly written as flat keys.

The bias is, as noted in the article itself, probably due to the instruments used. Older music with wind and brass may favour flat keys, but Spotify will contain a lot of guitar music, and guitar is a little easier to play in sharp keys, particularly in major.

On guitar Amaj, Emaj and Dmaj are among the easiest chords to play. The Relative minors F#m, C#m and Bm are all barre chords however. I think this explains why the bias towards sharp keys occurs only in major but not in minor. For playing in Am/Cmaj the chords Am, Em and Dm are also easy, and there are other easy chord shapes for Cmaj and Gmaj (but Fmaj requires a barre, which can be avoided by playing in the key of Gmaj instead of Cmaj.) There are many songs written for guitar that only work with open string chords, not barre chords, and therefore often can only be played as intended in the key of Gmaj or Amaj for example.

Level River St
  • 1,864
  • 11
  • 13
  • It looks like their rounding error. I added them their numbers and also got 99.8%. – dan04 Oct 19 '19 at 06:20
  • Surprised this isn't voted higher. It's the only answer that attempts to numerically quantify the "real" sharp/flat key distribution. – dan04 Oct 20 '19 at 21:27
4

To answer the question posed in the title, I have noticed three things that gently influence the choice of key.

  • Transposing instruments For long-forgotten historical reasons, transposing instruments are in flat keys (e.g. Horn in F, trumpet in B flat, Sax in E flat). I have seen a few odd instruments in G and D, but flat keys are the norm. This means that if the C instruments are in E major (4 sharps), the trumpets are in F# major with 6 sharps and the Eb Sax will be in C# major with seven sharps. I suspect the average composer will soon decide to raise the whole piece by a semitone to put everyone into more reasonable keys. The effect is to make the flat keys slightly more preferable.
  • Stringed instruments Sharps are always the next position up the fingerboard from the natural note. In contrast, Eb, Ab and Db on the violin are on the string below the natural note. Not a biggie for the experienced player, but a difficulty for the learner.
  • Sharp keys sound brighter There is a school of thought that says sharp keys sound bright and flat keys somewhat dark. This question has a long discussion on the topic.

I don't have authoritative sources to confirm this - it is just my opinion.

kiwiron
  • 764
  • 3
  • 7
4

Simple answer - they've labelled keys in an unusual manner. G♯ is normally written as A♭; A♯ more often as B♭. That's for starters. Redefine in the more commonly used key names, and the proportions change.

At least it's not like some guitar sites, which eschew flats altogether, and only live in a world of sharps!

Tim
  • 183,051
  • 16
  • 181
  • 444
3

In many contexts which describe audio pitches, it is common to use the names "C C# D D# E F F# G G# A A# B" [except in German, where the last three notes would be "A B H"]. The chart is most likely produced by processing the songs, identifying the apparent key note and primary tonality, and then determining the pitch of the key note using the above names. Listening to a piece of music, it would be impossible to distinguish between B and Cb, F# and Gb, or C# and Db, or between the associated pairs of relative minor keys. Using A# to refer to Bb may seem unusual, but it helps to make clear that the chart is only identifying the audio pitches associated with the key notes, rather than making any judgment as to how they are written.

supercat
  • 3,951
  • 1
  • 16
  • 17
2

Aside from the notational issue of "no flat keys," the data as presented isn't consistent with common sense.

There are only a handful of classical pieces in D sharp minor in the entire repertoire (I challenge anyone to name more than five), and nobody is likely to write anything for guitar in either D sharp or E flat minor, so Spotify's claim that almost 1 in 100 pieces is in that key is simply unbelievable.

More likely, there are about 1 in 100 pieces that are in either D minor or E minor, but were not played at A=440 pitch, and Spotify's software mislabelled them.

Since there is no reason to believe the other groups are any more accurate, the whole chart is a work of fiction unless somebody can prove otherwise.

guest
  • 29
  • 1
  • 1
    There’s a big difference between “their analysis was a bit crude and the presentation misleading” (which, as you say, it clearly was) and “the whole chart is a work of fiction”. Exactly as you say, it’s pretty clear what their analysis actually did — they identified the tonic pitch somehow, and labelled that pitch assuming A440 equal temperament (and classified as major/minor somehow). Crude, but it still tells us something meaningful. – PLL Oct 19 '19 at 16:54
  • @PLL - the meaningful thing it tells us is that if you don't know what you're doing, it's best to leave it alone! – Tim Oct 20 '19 at 16:59