 He was son of the Catalan writer Joaquin Nin Tudó and the Cuban from Camagüey Àngela Castellanos Perdomo.Nin studied piano with Moritz Moszkowski and composition at the Schola Cantorum (where he taught from 1906 to 1908).He toured as a pianist and was known as a composer and arranger of popular Spanish folk music.