BAIS-462 Final Project
Music Is Good, Actually
Music is one of my greatest passions, and because of that I love to support independent or less popular artists. I go out of my way to find unique or interesting groups that explore themes and sounds that aren’t well-represented within mainstream music. I also don’t have a single particular taste in music, so my favorite artists often have a large range of tone, mood, and content. Since music is such an important part of my life, I decided to explore and compare the different moods, traits, and sentiments present both lyrically and sonically using the NRC and Bing lexicons and the interacting with the Spotify API through the spotifyr R package.
Datasets
For this analysis, I’ll be using two self-compiled data sets, one containing lyric data and the other containing audio features pulled from the Spotify API. A full data dictionary for the Spotify audio features can be found here.
Lyrical Sentiment Analysis
Using the Bing and NRC lexicons, we can begin by performing a simple valence analysis of the lyrical content from three of my favorite performers: San Fermin, Kishi Bashi, and Streetlight Manifesto. The NRC lexicon applies 10 different attributes to words to categorize tone. By comparing the lexicon to each individual lyric grouped by artist, we can create pie charts to observe the distribution of words into each category.
Most lyrics used by San Fermin have positive connotations, followed very close by negative. Interestingly, sadness and joy are the next largest groups despite also being contradictory. We can also see that “love” is the most sung lyric, which adds greatly to the positivity score, despite there being so many more negative words.
Compared to San Fermin, Streetlight Manifesto’s lyrics are much more negative, with sadness and fear being the next largest categories. “Love” is also Streetlight’s most frequent positive lyric (“whoa” notwithstanding since it’s a common ska construction for maintaining rhythm).
Finally, Kishi Bashi is overwhelmingly positive and joyful.
Comparison of Sonic Valence by Artist
Using the Spotify API, we can also visualize the average sonic valence (used to denote when a song sounds “positive” with 1 being highly confident that the song is positive) of each artist over their career to see how that comapres to the sentiment distribution expressed above.
Interestingly, despite having the darkest subject matter and generally negative sentiments, Streetlight Manifesto has the highest average valence score. Kishi Bashi, despite being overwhelmingly positive lyrically, has the lowest average valence.
Comparison of Lyrical Sentiment and Valence Over Time
Combining the lexicons and the Spotify API, we can compare visualizations of how the Bing sentiment and valence have changed over time.
Comparing the two visualizations, we can see that sonic valence only sometimes has a direct relationship with lyrical sentiment. For example, Kishi Bashi is the only artist to have a positive average sentiment for any years. He had an average sentiment score of +25 for his third and fourth albums in 2016 and 2019, yet when cross-referencing with the average track valence in those same years, average valence had dropped from ~0.55 to 0.3.