I'm looking to understand music theory behind dissonance, unresolved dark music. What makes a song sound serious and not "rainbows". When writing a bassline or melodies, is it possible to achieve darkness in all 12 major scales? Or is it only necessary to use minors and some other modes? I know about tritones and that no matter what scale, you can make tritones and achieve dissonance. But what other ways I can achieve this? I know that close intervals sounds more dissonant like minor 2nd, but then that doesn't explain why tritone sounds dissonant when it's sits next to perfect 5th.
I want to know what intervals should I play and how to to end my melody progression. I know that I should not resolve to tonal center at the end of progression but that doesn't always work either. Like I-VI-II-VI would be a good example of unresolved progression? It doesn't end on tonal frst note but on 6th degree which makes tension I suppose?
Looking for all the logic behind dark music from theory side. I just learned all the 12 major scales and their fingerings and now I when I jam on my synthesizer, my basslines and melodies sounds cheesy.
Here is the example of sound I want to achieve: