Three books of masses survive ; many of the works are based on motets written by King John IV himself .
Others are based on motets by Palestrina .
Three books of masses survive ; many of the works are based on motets written by King John IV himself , and others are based on motets by Palestrina .