24 The ordination and direction of man to his ultimate end - which is God - by absolute and necessary law based on the nature and the infinite perfection of God Himself is so solid that not even God could exempt anyone from it. This eternal and unchangeable law commands that man himself and all his actions should manifest and imitate, so far as possible, God's infinite perfection for the praise and glory of the Creator. Since man is born to attain this supreme end, he ought to conform himself and through his actions direct all powers of his body and his soul, rightly ordered among themselves and duly subjected to the end they are meant to attain, to the divine Model. Therefore even art and works of art must be judged in the light of their conformity and concord with man's last end.
Source: Musicae Sacrae (Vatican.va)