 He studied music at the and, at 18 years of age, composed the "Misa en Re Mayor" ("Mass in D Major").In 1806 he was Dominican friar, but his behaviour in this religious Order was relaxed.Alcedo was the winner of an 1821 contest sponsored by General José de San Martín to choose a "himno nacional" (national anthem) for Peru.