Answer:
The functions of gamelan Javanese gamelan does have its religious purposes as well, as an accompaniment during religious ceremonies. It has also been used as a form of entertainment performed for the amusement of the royal family, as well as accompanying the wayang puppet shows.