Several months ago, I posted a piece which was at the time an exercise in sonata allegro form, which I decided to make the third movement of a sonata in d minor. I've had this theme in my head for a while, so I decided it would be the perfect time to use it. I went down a big rabbit hole of nonfunctional modal harmony, which was quite fun but really challenging to work out (though I wrote the secondary theme in five minutes during a chemistry lecture).
sonata in d minor movement 1 audio.mp3
sonata in d minor movement 1 score.pdf