While best known for his sacred music, he also wrote popular secular music While in Zaragoza, in 1600, he became a priest. In 1612 he returned to Barcelona, becoming maestro de capilla at the cathedral, a distinguished post which he held until his death.
Most of his music dates from the time he was in Barcelona.
Evidently a condition of his employment was to produce a fixed quantity of new liturgical music each year. Unusually for many composers of the time, most of it has survived.
Also while in Barcelona he served as an organ consultant, and helped in various organ building projects in Catalonia. He died in Barcelona.