He wrote church music , such as motets , as well as secular ( non-religious ) chansons . While also noted as a composer of sacred music , such as motets , he was one of the most renowned 15th-century composers of secular chansons .