Musical composition free in form and inspiration, often for an instrumental soloist.
Most fantasias try to convey the impression of improvisation. The first were Italian works for lute (с 1530). Keyboard fantasias became common in the late 16th century; both organ and harpsichord fantasias flourished in the 17th and 18th centuries in Britain, Germany, and France. Fugal, imitative texture, sometimes highly learned in character, was common from the beginning, often alternating with running passagework and highly chromatic chordal passages in free rhythms. Ensemble fantasias were widely composed as well.