What is the relationship between the development of ancient music and religious sacrifice?

In slave society, the religious sacrificial activities of the ancients became the custom of worshipping ancestors and natural gods. This gave birth to a "witch" who worshipped her ancestors as a profession. They claimed to be the messengers of God and the king, and presided over ceremonies such as praying for rain, calming the wind, exorcising evil spirits, eliminating disasters and treating diseases. In these ceremonies, most wizards perform song and dance programs.

Of course, these wizards all serve the slave owners, and the slave owners use them and these activities to achieve the purpose of singing praises for them. For example, the ancient book Lv Chunqiu? The article "Ancient Music" records:

Tang made Yi Yin a great success, sang the morning dew, and repaired Jiu Shao and Liu Lie.

In other words, the Shang Emperor Tang asked Yi Yin to sing praises for him, which was a way to publicize noble emperors and praise their literary martial arts.