What made Saul's evil spririt from God go away?

The evil spirit from God went away when David played his harp

When the evil spirit from God was upon Saul, that David took an harp, and played with his hand: so Saul was refreshed, and was well, and the evil spirit departed from him. 1 Samuel 16:23