He was professor of music at the University of Cambridge from 1856 to 1866 , and principal of the Royal Academy of Music from 1866 until his death .
From 1866 until his death he was Principal of the Royal Academy of Music .