A violin sonata is a musical composition for solo
violin, often (but not always) accompanied by a
piano or other keyboard instrument, or by
figured bass in the
Baroque.
Some violin sonatas, notably those by Mozart, Beethoven, and César Franck, are primarily piano works with the violin playing a lesser role.