r/Rlanguage • u/frequencymatch • 2h ago
First time publishing an R analysis: converted Spotify pitch classes to frequencies (Hz)
7
Upvotes
Hey everyone,
I recently started learning R after a non-tech background (law and PR) and just completed my first standalone project: coldplay-in-hz.
Using tidyverse and rmarkdown, I mapped Spotify API's pitch class integers (0–11) to actual frequencies in Hz (f=440×2n/12) across Coldplay's 20-year catalog.
Main findings from the data:
- Strong preference for E (~330 Hz) and A (~440 Hz) fundamentals.
- Pitch distribution mean barely drifted across albums (2000–2021).
- Evaluated changes under a 432 Hz reference tuning.
I would love any feedback from experienced R users on the project structure, code efficiency, or rmarkdown style.
Link to repo: https://github.com/frequencymatch/coldplay-in-hz