A cornet is a brass instrument that looks like a smaller, wider trumpet. It is similar to the trumpet in design and range, but has a shorter, partly conical tube and a less brilliant tone. The most common cornet is a transposing instrument in B♭, but there are also soprano cornets in E♭ and cornets in A and C. The cornet is distinguished from the trumpet by its conical bore, more compact shape, and mellower tone quality. The cornet was invented around 1828 when musicians added valves to a post horn in an attempt to create a musical instrument with a wider range and different sound to the trumpet. The cornet used to be a common feature of jazz bands, until it was replaced by the trumpet. The difference in tone or timbre is why a cornet cant usually be played as a substitute for a trumpet (or vice versa), even though they are played in the same way and at identical pitches.