Music has been a part of magical practises since the beginning of time!
The origins of music? Probably the sounds of nature. Rain dripping, water rushing, thunder, the wind in the trees.
But many rituals, all over the World, can involve hand-clapping, foot tapping, singing, and music from almost any instrument. The instrument may not have any magical qualities exactly, but music can certainly help the mood; especially of a large gathering.