Similar to I accidentally composed a song that sounds like a famous song and Unintentional plagiarism while composing, now and then I accidentally write a song that turns out to already exist. For example, I wrote a piece for Big Band, and just before I finalized the arrangement I asked my girlfriend whether she wanted to listen to it, and she then remarked that the main groove was basically from Time of my Life (Dirty Dancing).
I'm not asking about what to do once I've found out. I'm already able to decide whether there is enough original material in the piece. My question is:
How can I find out whether my song, or important elements from it, already exists? Ideally in an efficient and reliable fashion.
I've tried all sorts of online music/melody recognition platforms. Half of them only work with a copy of the original song, and most "Hum to recognize" services seem to be unreliable. Furthermore, sometimes it's not the melody that I've taken, but a distinctive groove or instrumentation. I know of no services that claim to detect that. Finally, some melodies and songs I've accidentally plagiarized are actually unnamed pieces of film music or advertisement jingles, so they don't show up in some standard song databases.
Is there maybe a technique (analysing the song in some way to categorize it), some database that I can search semi-manually, a forum where I can ask other people (I imagine this to be a fun game potentially), or something like that? Or possibly important elements and aspects (chord progressions, melodies, rhythms, ...) that I can extract and search for these in isolation?
My question is not about the legal aspects of plagiarism. It's rather that I've found that I'm much more enthusiastic about those pieces of mine that are more original, because I feel prouder with them and see myself more in them. I can define my personal style with them. Finding out that my piece already largely exists usually takes a lot of motivation away from working on it, so I'd rather like to find out early.