In music, counterpoint is the relationship between voices that are harmonically interdependent (polyphony) yet independent in rhythm and contour. It has been most commonly identified in the European classical tradition, strongly developing during the Renaissance and in much of the common practice period, especially in the Baroque. The term originates from the Latin punctus contra punctum meaning "point against point".
Counterpoint generally involves musical lines with strongly independent identities. Counterpoint has been used to designate a voice or even an entire composition. In each era, contrapuntally organized music writing has been subject to rules—sometimes strict ones. Chords are the simultaneous soundings of notes; whereas harmonic, "vertical" features are considered secondary and almost incidental when counterpoint is the predominant textural element. Counterpoint focuses on melodic interaction—only secondarily on the harmonies produced by that interaction. In the words of John Rahn:
It is hard to write a beautiful song. It is harder to write several individually beautiful songs that, when sung simultaneously, sound as a more beautiful polyphonic whole. The internal structures that create each of the voices separately must contribute to the emergent structure of the polyphony, which in turn must reinforce and comment on the structures of the individual voices. The way that is accomplished in detail is ... 'counterpoint'.
Some examples of related compositional techniques include: the round (familiar in folk traditions), the canon, and perhaps the most complex contrapuntal convention: the fugue. All of these are examples of imitative counterpoint.
Species counterpoint was developed as a pedagogical tool in which students progress through several "species" of increasing complexity, with a very simple part that remains constant known as the cantus firmus (Latin for "fixed melody"). Species counterpoint generally offers less freedom to the composer than other types of counterpoint and therefore is called a "strict" counterpoint. The student gradually attains the ability to write free counterpoint (that is, less rigorously constrained counterpoint, usually without a cantus firmus) according to the given rules at the time. The idea is at least as old as 1532, when Giovanni Maria Lanfranco described a similar concept in his Scintille di musica (Brescia, 1533). The 16th-century Venetian theorist Zarlino elaborated on the idea in his influential Le institutioni harmoniche, and it was first presented in a codified form in 1619 by Lodovico Zacconi in his Prattica di musica. Zacconi, unlike later theorists, included a few extra contrapuntal techniques, such as invertible counterpoint.
A succession of later theorists quite closely imitated Fux's seminal work, often with some small and idiosyncratic modifications in the rules.
The following rules apply to melodic writing in each species, for each part:
And, in all species, the following rules govern the combination of the parts:
In first species counterpoint, each note in every added part (parts being also referred to as lines or voices) sounds against one note in the cantus firmus. Notes in all parts are sounded simultaneously, and move against each other simultaneously. Since all notes in First species counterpoint are whole notes, rhythmic independence is not available.
In the present context, a "step" is a melodic interval of a half or whole step. A "skip" is an interval of a third or fourth. (See Steps and skips.) An interval of a fifth or larger is referred to as a "leap".
A few further rules given by Fux, by study of the Palestrina style, and usually given in the works of later counterpoint pedagogues, are as follows.
In the following example in two parts, the cantus firmus is the lower part. (The same cantus firmus is used for later examples also. Each is in the Dorian mode.)
In second species counterpoint, two notes in each of the added parts work against each longer note in the given part.
Additional considerations in second species counterpoint are as follows, and are in addition to the considerations for first species:
In third species counterpoint, four (or three, etc.) notes move against each longer note in the given part.
Three special figures are introduced into third species and later added to fifth species, and ultimately outside the restrictions of species writing. There are three figures to consider: The nota cambiata, double neighbor tones, and double passing tones. Double neighbor tones: the figure is prolonged over four beats and allows special dissonances. The upper and lower tones are prepared on beat 1 and resolved on beat 4. The fifth note or downbeat of the next measure should move by step in the same direction as the last two notes of the double neighbor figure. Lastly a double passing tone allows two dissonant passing tones in a row. The figure would consist of 4 notes moving in the same direction by step. The two notes that allow dissonance would be beat 2 and 3 or 3 and 4. The dissonant interval of a fourth would proceed into a diminished fifth and the next note would resolve at the interval of a sixth.
In fourth species counterpoint, some notes are sustained or suspended in an added part while notes move against them in the given part, often creating a dissonance on the beat, followed by the suspended note then changing (and "catching up") to create a subsequent consonance with the note in the given part as it continues to sound. As before, fourth species counterpoint is called expanded when the added-part notes vary in length among themselves. The technique requires chains of notes sustained across the boundaries determined by beat, and so creates syncopation. Also it is important to note that a dissonant interval is allowed on beat 1 because of the syncopation created by the suspension.
In fifth species counterpoint, sometimes called florid counterpoint, the other four species of counterpoint are combined within the added parts. In the example, the first and second bars are second species, the third bar is third species, the fourth and fifth bars are third and embellished fourth species, and the final bar is first species.
Since the Renaissance period in European music, much contrapuntal music has been written in imitative counterpoint. In imitative counterpoint, two or more voices enter at different times, and (especially when entering) each voice repeats some version of the same melodic element. The fantasia, the ricercar, and later, the canon and fugue (the contrapuntal form par excellence) all feature imitative counterpoint, which also frequently appears in choral works such as motets and madrigals. Imitative counterpoint spawned a number of devices that composers use to give their works both mathematical rigor and expressive range. These devices include:
From a historical perspective, the didactic strict counterpoint was used for musical training purposes from the Renaissance to the present day, but was never employed in practice. Broadly speaking, due to the development of harmony, from the Baroque period on, most contrapuntal compositions were written in the style of free counterpoint. This means that the general focus of the composer had shifted away from how the intervals of added melodies related to a cantus firmus, and more toward how they related to each other.
Nonetheless, according to Kent Kennan: "....actual teaching in that fashion (free counterpoint) did not become widespread until the late nineteenth century." Young composers of the seventeenth and eighteenth centuries, such as Mozart, Beethoven, and Schumann, were still educated in the style of "strict" counterpoint, but in practice, they would look for ways to expand on the traditional concepts of the subject.
Main features of free counterpoint:
Linear counterpoint is "a purely horizontal technique in which the integrity of the individual melodic lines is not sacrificed to harmonic considerations. "Its distinctive feature is rather the concept of melody, which served as the starting-point for the adherents of the ‘new objectivity’ when they set up linear counterpoint as an anti-type to the Romantic harmony."  The voice parts move freely, irrespective of the effects their combined motions may create." In other words, either "the domination of the horizontal (linear) aspects over the vertical" is featured or the "harmonic control of lines is rejected."
Associated with neoclassicism, the first work to use the technique is Igor Stravinsky's Octet (1923), inspired by J. S. Bach and Giovanni Palestrina. However, according to Knud Jeppesen: "Bach's and Palestrina's points of departure are antipodal. Palestrina starts out from lines and arrives at chords; Bach's music grows out of an ideally harmonic background, against which the voices develop with a bold independence that is often breath-taking."
According to Cunningham, linear harmony is "a frequent approach in the 20th century...[in which lines] are combined with almost careless abandon in the hopes that new 'chords' and 'progressions,'...will result." It is possible with "any kind of line, diatonic or duodecuple."
Dissonant counterpoint was originally theorized by Charles Seeger as "at first purely a school-room discipline," consisting of species counterpoint but with all the traditional rules reversed. First species counterpoint must be all dissonances, establishing "dissonance, rather than consonance, as the rule," and consonances are "resolved" through a skip, not step. He wrote that "the effect of this discipline" was "one of purification." Other aspects of composition, such as rhythm, could be "dissonated" by applying the same principle (Charles Seeger, "On Dissonant Counterpoint," Modern Music 7, no. 4 (June–July 1930): 25-26).
Seeger was not the first to employ dissonant counterpoint, but was the first to theorize and promote it. Other composers who have used dissonant counterpoint, if not in the exact manner prescribed by Charles Seeger, include Ruth Crawford-Seeger, Carl Ruggles, Henry Cowell, Henry Brant, Dane Rudhyar, Lou Harrison, Fartein Valen, and Arnold Schoenberg.