Throughout her career Madonna has been involved in writing and producing most of her own music.