btw being a physicist, I thought I might add a bit of math info regarding the number of possible melodies, which some here might already know about.
Even if we take a diatonic scale with an 8-note melody or theme, choosen out of 12 chromatic notes with no repetitions, the number of possible combinations are 12!/(12-8)! = 19 million. (the ! refers to the factorial function)
That means even without note repetitions there are 19 million possible diatonic melodies. But of course most of these will not sound pleasant. But even if 1/100th of these are good, we have 200,000 melodies. Now imagine if we add 7 note or 6 note or 5 note melodies, allso variations in rhythm.
There is much room for new music!
Anand
anand, being a physicist myself I have to correct you there 😉: the minimal number of 8-note melodies is 12^8 (taking a melody as an ordered set with repetitions - see guy’s first masterpiece 😃), which is already nearly half a billion. as you point out this does not take into account that notes can have different lengths … as well as different velocities, being played with different articulations, dynamics, vibrato—and changing some of these additional properties you can easily mess up any good melody.
so the odds to find a good melody by chance should be far less than hitting the jackpot. but the amazing examples in this thread (which I enjoyed very much!) show that music is not math and that all these extremely talented people here definitively know what they are doing 😊.