What is a piece composed or played at first thought; a composition in the style of an extempore piece called?

impromptu — (Mus.) A piece composed or played at first thought; a composition in the style of an extempore piece. (Webster's 1913.)

Sources