One such moment happened on the song “Complexion.” Terrace Martin brought Robert Glasper into Dr. Dre’s studio for a session, and he and Kendrick played Glasper a succession of tracks—an opportunity to get his playing on as many songs as they could in one shot.