Undoubtedly, Saul was in the grips of very great depression; maybe we can interpret the depressing spirit as actually being a demon. It was afflicting him with depression. Somehow, even when the music of a human was played, the distressing spirit, the demon, was also nullified and he quit agitating Saul so that Saul then could get a bit of his composure back once again.