Of course, any digitally representable artform can be enumerated this way. What's special is that melodies have low enough entropy that it's actually practical to create them all, which isn't the case with (say) movies or novels. And that low entropy is also why spurious similarities occur, as when huge pop stars are accused of plagiarising some band with 200 soundcloud followers.