When I listen to Bach, Handel or Vivaldi (especially Baroque composers) every single note seems to fit there perfectly I mean pretty consonant to their location.
As I was trying to learn tonal harmony and counterpoint (I am a beginner as you can see) I've seen Shostakovich's Prelude and Fugue in C (see here) Especially between the seconds 24-30 some notes played in the chords disturb my ear.
I cant seem to find the perfection in Bach's Prelude and Fugues. I don't mean Shostakovich is bad, I appreciate his works, just that piece sounds strange to me. What does make Shostakovich to select such dissonant notes freely? What makes a dissonant note dissolve?