In painting, a "capriccio" is an architectural fantasy, placing together buildings, archaeological ruins and other architectural elements in fictional and often fantastical combinations.
A "capriccio" is a piece of music, usually fairly free in form and of a lively character. The typical capriccio is one that is fast, intense, and often virtuosic in nature.