Sound play til entity dead

Is there a way to have a sound (music) play until an entity has died?
Continue to help post