I enjoy classical music in my free time. From Claudio Monteverdi to Dmitri Shostakovich, my interest spans from the Baroque to modern times, and over various genres such as opera, symphony orchestra, and string quartet. Classical music is not only inspiring and joyful to listen to but also fun to play with. Here I showcase a small project working with Tchaikovsky's masterpiece 1812 Overture in R.
I cut a 20-second (12:00-12:20) clip out of the video "Tchaikovsky - 1812 Overture (Full with Cannons)" [1] on YouTube and plot the change in frequency in R:
The spectrogram video is as follows. The noticeable spikes at the 1st and the 2nd second on the time axis (x-axis) corresponds to the first and second cannon fires. Further analyses would enable us to identify each sound on the spectrogram, but that's beyond the scope of this little showcase.
References:
[1] "Tchaikovsky - 1812 Overture (Full with Cannons)". https://youtu.be/VbxgYlcNxE8
[2] R packages used to complete this project: av, purrr