>>53963004I think it's just a matter of paying attention to the 'tone' of a scene. If you're going for something heartwarming, you slot in some music that you find heartwarming. The right BGM can help enhance the atmosphere, so long as it's not so intrusive that it distracts the reader.
I also try to keep the length of the track in mind. If it's too long, it might keep playing even after the scene has transitioned to something else. I usually have the track playing on repeat while I'm writing the scene, and then play it back again while I read through it. The sweet spot is if the track ends at the same time as the scene. It's not perfect, since people have different reading speeds. But it makes for a decent enough baseline.