To speak or to play a piece of music without preparation;
improvise;
as, Most of his speech was ad-libbed.
Latin ad libitum (at one's pleasure).