Once you get past the FFT materials Lennart mentioned, you may need to look at the Markov chains to analyze the intervals between notes and aggregated patterns.
This is a kind of curved land, but Markov chains have been used in the past to create a kind of statistical model of melodies from different songs that can be used to create new melodies. Markov chains can do the same with written English sentences. For an example of how this looks, play with megahal chatbot to see how brand chains can produce distorted output that statistically looks like its input (in the case of megawal it looks like English sentences)
You could come to terms with the top 100, and the next major blow came at the brand chain generator.
On the other hand, you might think that this is not the quality of the music that makes a song popular. Or perhaps this is the quality of a musical problem in combination with marketing.
Breton
source share