The real composer thinks about his work the whole time; he is not always conscious of this, but he is aware of it later when he suddenly knows what he will do.
The Church knew what the psalmist knew: Music praises God. Music is well or better able to praise him than the building of the church and all its decoration; it is the Church's greatest ornament.