In music, consonance and dissonance are categorizations of simultaneous or successive sounds. Within the Western tradition, some listeners associate consonance with sweetness, pleasantness, and acceptability, and dissonance with harshness, unpleasantness, or unacceptability, although there is broad acknowledgement that this depends also on familiarity and musical expertise. The terms form a structural dichotomy in which they define each other by mutual exclusion: a consonance is what is not dissonant, and a dissonance is what is not consonant. However, a finer consideration shows that the distinction forms a gradation, from the most consonant to the most dissonant. In casual discourse, as German composer and music theorist Paul Hindemith stressed, "The two concepts have never been completely explained, and for a thousand years the definitions have varied". The term sonance has been proposed to encompass or refer indistinctly to the terms consonance and dissonance.
The opposition between consonance and dissonance can be made in different contexts:
In acoustics or psychophysiology, the distinction may be objective. In modern times, it usually is based on the perception of harmonic partials of the sounds considered, to such an extent that the distinction really holds only in the case of harmonic sounds (i.e. sounds with harmonic partials).
In music, even if the opposition often is founded on the preceding, objective distinction, it more often is subjective, conventional, cultural, and style- or period-dependent. Dissonance can then be defined as a combination of sounds that does not belong to the style under consideration; in recent music, what is considered stylistically dissonant may even correspond to what is said to be consonant in the context of acoustics (e.g. a major triad in 20th century atonal music). A major second (e.g. the notes C and D played simultaneously) would be considered dissonant if it occurred in a J.S. Bach prelude from the 1700s; however, the same interval may sound consonant in the context of a Claude Debussy piece from the early 1900s or an atonal contemporary piece.