I'm studying music by myself and I'm dealing with several doubts: one of these is, are there some criteria for using a chord with a different bass in a chord progression? And how should I use it? Also, are there some specific ways to use non-diatonic chords inside a progression? I was analyzing yesterday this song by Bruno Mars, which I really like (D Major key), where you can find for example both Gmaj7 and Gm chords, and the second one of course is not constructed in the key of D major. I just want to understand a bit better the whole thing!
You cand find the sheet music here:
Bruno Mars - Versace on the floor
https://musescore.com/user/16069731/scores/3461536
Thank you in advance!