step 1 has cleaned up my previous %musicisplaying mess. i now have a 100% reliable way to monitor music playing.

Create a Music Playing state that you can use as a profile condition
%MTRACK doesn't usually work so learn how to create a profile that enables when music is playing