Tuesday, October 3, 2017

Genres in the Key of Life: Different Music Uses Different Scales | Insights

Our first foray into key signatures found G and C major to be the most popular musical keys on Spotify, probably because the former is easiest to play on a guitar, the latter on piano.

Now, let’s look at how key signatures vary between genre.

Detecting key signature through audio analysis

Trained musicians practice the art of listening to and explaining music, but it is nearly impossible to scale this kind of manual expertise over a massive collection of recorded music. Meanwhile, over the last couple decades, the machine perception of music signals is an active area of research in computer science [1].

Here, in lieu of a small army of musicologists, we leverage an algorithm that automatically estimates musical key directly from the audio signal by aggregating the contributions of different frequencies for each pitch class in the 12-Tone Equal Temperament (12-TET) scale. We can then infer musical key by finding the one (major or minor over all roots) that best matches the observed pitch classes.

Genres

If we look at percentage of total songs within a genre broken out by key signature, shapes emerge. Here’s Hip Hop:

Perhaps most striking here is the spike in Db. This is likely a result of our key signature classifier defaulting the spoken word to that key (or, perhaps, somehow, the resting human voice often naturally gets pitched at Db, not that we looked into that).

If we start to look across genres, we start to see bumps in C and G major, the “easy” keys on piano and guitar. And it seems everyone is avoiding the hard keys, particularly Eb (notoriously difficult to play on guitar):

Country, Rock, Folk Americana, and Blues in particular exhibit a “spiky” behavior, where they skip the black keys in favor of notes that are easier to play on keyboards and guitars. Perhaps musicians in these genres (understandably) don’t practice in all 12 keys.

Here are 20 popular genres on Spotify plotted by key signature, with lots of detail to discern:

Artists and Key Signatures over Time

Now that we’re familiar with the general trends, let’s look at key preferences among some legendary, deep-catalog artists: David Bowie, Michael Jackson, Prince, and Stevie Wonder. We can see how each artist trended between major (“happy,” generally speaking) and minor (“sad”) modes, as well as the keys they favored, in each decade:

Next Steps

Plenty of exciting work is happening here at Spotify in the area of audio research, offering more fertile ground for analysis. We’ve already looked at the most dramatic moments in Spotify songs; perhaps next time we can get to the bottom of the most epic key changes as part of an examination of how chords change within songs.


Filed under: Inside Music [from http://ift.tt/2mlLnax]

No comments: