In music, an ostinato (; , compare English obstinate) is a motif or phrase that persistently repeats in the same musical voice, frequently in the same pitch.

Both ostinatos and ostinati are accepted English plural forms, the latter reflecting the word's Italian etymology.

Well-known ostinato-based pieces include classical compositions such as Ravel's Boléro and the Carol of the Bells, and popular songs such as John Lennon's "Mind Games" (1973), Donna Summer and Giorgio Moroder's "I Feel Love" (1977), Henry Mancini's theme from Peter Gunn (1959), The Who's "Baba O'Riley" (1971), The Verve's "Bitter Sweet Symphony" (1997), and Flo Rida's "Low" (2007).Bufe, Chaz (1994).An Understandable Guide to Music Theory: The Most Useful Aspects of Theory for Rock, Jazz, and Blues Musicians, p. 59. .

The repeating idea may be a rhythmic pattern, part of a tune, or a complete melody in itself.Kamien, Roger (1258). Music: An Appreciation, p. 611. . Strictly speaking, ostinati should have exact repetition, but in common usage, the term covers repetition with variation and development, such as the alteration of an ostinato line to fit changing harmonies or keys.

Within the context of European classical and film music, Claudia Gorbman defines an ostinato as a repeated melodic or rhythmic figure that propels scenes that lack dynamic visual action.Gorbman, Claudia. "Film Music". Film Studies: Critical Approaches. Oxford: Oxford University Press. 2000. p. 43.

Ostinati play an important part in improvised music (rock and jazz), in which they are often referred to as riffs or vamps. A "favorite technique of contemporary jazz writers", ostinati are often used in modal and Latin jazz and traditional African music including Gnawa music.Rawlins, Robert (2005). Jazzology: The Encyclopedia of Jazz Theory for All Musicians, pp. 132–133. .

The term ostinato essentially has the same meaning as the medieval Latin word , the word ground as applied to classical music, and the word riff in contemporary popular music.

European classical music Within the domain of European classical music traditions, Ostinati are used in 20th-century music to stabilize groups of pitches, as in Stravinsky's The Rite of Spring Introduction and Augurs of Spring. A famous type of ostinato, called the Rossini crescendo, owes its name to a crescendo that underlies a persistent musical pattern, which usually culminates in a solo vocal cadenza. This style was emulated by other bel canto composers, especially Vincenzo Bellini; and later by Wagner (in pure instrumental terms, discarding the closing vocal cadenza).

Applicable in homophonic and contrapuntal textures, they are "repetitive rhythmic-harmonic schemes", more familiar as accompanimental melodies, or purely rhythmic.DeLone, Richard (1975). "Timbre and Texture in Twentieth Century Music", Aspects of 20th Century Music, p. 123. Wittlich, Gary (ed.). Englewood Cliffs, New Jersey: Prentice-Hall. . The technique's appeal to composers from Debussy to avant-garde composers until at least the 1970s "... lies in part in the need for unity created by the virtual abandonment of functional chord progressions to shape phrases and define tonality". Similarly, in modal music, "... relentless, repetitive character help to establish and confirm the modal center". Their popularity may also be justified by their ease as well as range of use, though, "... ostinato must be employed judiciously, as its overuse can quickly lead to monotony".

Medieval Ostinato patterns have been present in European music from the Middle Ages onwards. In the famous English canon "Sumer Is Icumen In", the main vocal lines are underpinned by an ostinato pattern, known as a pes:

Later in the medieval era, Guillaume Dufay's 15th-century chanson Resvelons Nous features a similarly constructed ostinato pattern, but this time 5 bars long. Over this, the main melodic line moves freely, varying the phrase-lengths, while being "to some extent predetermined by the repeating pattern of the canon in the lower two voices."Fallows, D. (1982, p. 89). Dufay. London, Dent.

Ground bass: Late Renaissance and Baroque

Ground bass or basso ostinato (obstinate bass) is a type of variation form in which a bass line, or harmonic pattern (see Chaconne; also common in Elizabethan England as Grounde) is repeated as the basis of a piece underneath variations.Bartlette, Christopher, and Steven G. Laitz (2010). Graduate Review of Tonal Theory. New York: Oxford University Press, p. 230 Aaron CoplandCopland, Aaron and Rich, Alan (2002). What to Listen for in Music, p. 117. . describes basso ostinato as "... the easiest to recognize" of the variation forms wherein, "... a long phrase—either an accompanimental figure or an actual melody—is repeated over and over again in the bass part, while the upper parts proceed normally [with variation]". However, he cautions, "it might more properly be termed a musical device than a musical form."

One striking ostinato instrumental piece of the late Renaissance period is "The Bells", a piece for virginals by William Byrd. Here the ostinato (or 'ground') consists of just two notes:

In Italy, during the seventeenth century, Claudio Monteverdi composed many pieces using ostinato patterns in his operas and sacred works. One of these was his 1650 version of "Laetatus sum", an imposing setting of Psalm 122 that pits a four-note "ostinato of unquenchable energy."Stevens, D (1978, p81) Monteverdi: sacred, Secular and Occasional Music. New Jersey, Associated University Presses. against both voices and instruments:

Later in the same century, Henry Purcell became famous for his skilful deployment of ground bass patterns. His most famous ostinato is the descending chromatic ground bass that underpins the aria "When I am laid in earth" ("Dido's Lament") at the end of his opera Dido and Aeneas: While the use of a descending chromatic scale to express pathos was fairly common at the end of the seventeenth century, Richard Taruskin pointed out that Purcell shows a fresh approach to this musical trope: "Altogether unconventional and characteristic, however, is the interpolation of an additional cadential measure into the stereotyped ground, increasing its length from a routine four to a haunting five bars, against which the vocal line, with its despondent refrain ("Remember me!"), is deployed with marked asymmetry. That, in addition to Purcell's distinctively dissonant, suspension-saturated harmony, enhanced by additional chromatic descents during the final ritornello and by many deceptive cadences, makes this little aria an unforgettably poignant embodiment of heartache."Taruskin, R. (2010, p.13&) The Oxford History of Western Music: Music in the Seventeenth and Eighteenth centuries. Oxford University Press. See also: Lament bass. However, this is not the only ostinato pattern that Purcell uses in the opera. Dido's opening aria "Ah, Belinda" is a further demonstration of Purcell's technical mastery: the phrases of the vocal line do not always coincide with the four-bar ground:

"Purcell's compositions over a ground vary in their working out, and the repetition never becomes a restriction."Harris, Ellen T. (1987, p108) Henry Purcell's Dido and Aeneas. Oxford, Clarendon Press. Purcell's instrumental music also featured ground patterns. A particularly fine and complex example is his Fantasia upon a Ground for three violins and continuo:

The intervals in the above pattern are found in many works of the Baroque Period. Pachelbel's Canon also uses a similar sequence of notes in the bass part:

Two pieces by J.S.Bach are particularly striking for their use of an ostinato bass: the Crucifixus from his Mass in B minor and the Passacaglia in C minor for organ, which has a ground rich in melodic intervals: The first variation that Bach builds over this ostinato consists of a gently syncopated motif in the upper voices: This characteristic rhythmic pattern continues in the second variation, but with some engaging harmonic subtleties, especially in the second bar, where an unexpected chord creates a passing implication of a related key: In common with other Passacaglias of the era, the ostinato is not simply confined to the bass, but rises to the uppermost part later in the piece: A performance of the entire piece can be heard here.

Late eighteenth and nineteenth centuries

Ostinatos feature in many works of the late 18th and early 19th centuries. Mozart uses an ostinato phrase throughout the big scene that ends Act 2 of the Marriage of Figaro, to convey a sense of suspense as the jealous Count Almaviva tries in vain to incriminate the Countess, his wife, and Figaro, his butler, for plotting behind his back. A famous type of ostinato, called the Rossini crescendo, owes its name to a crescendo that underlies a persistent musical pattern, which usually culminates in a solo vocal cadenza.

In the energetic Scherzo of Beethoven’s late C sharp minor Quartet, Op. 131, there is a harmonically static passage, with "the repetitiveness of a nursery rhyme"Radcliffe, .P (1965, p.158) Beethoven’s String Quartets. London, Hutchinson. that consists of an ostinato shared between viola and cello supporting a melody in octaves in the first and second violins: Beethoven reverses this relationship a few bars later with the melody in the viola and cello and the ostinato shared between the violins:

Both the first and third acts of Wagner's final opera Parsifal feature a passage accompanying a scene where a band of Knights solemnly processes from the depths of forest to the hall of the Grail. The "Transformation music" that supports this change of scene is dominated by the iterated tolling of four bells: Brahms used ostinato patterns in both the finale of his Fourth Symphony and in the closing section of his Variations on a Theme by Haydn:

Twentieth century Debussy featured an ostinato pattern throughout his Piano Prelude "Des pas sur la neige". Here, the ostinato pattern stays in the middle register of the piano – it is never used as a bass. "Remark that the footfall ostinato remains nearly throughout on the same notes, at the same pitch level... this piece is an appeal to the basic loneliness of all human beings, oft-forgotten perhaps, but, like the ostinato, forming a basic undercurrent of our history."Schmitz, E. R. (1950, pp. 145–7) the Piano Works of Claude Debussy. New York, Dover. Of all the major classical composers of the 20th century, Stravinsky is possibly the one most associated with the practice of ostinato. In conversation with the composer, his friend and colleague Robert Craft remarked "Your music always has an element of repetition, of ostinato. What is the function of ostinato?" Stravinsky replied; "It is static – that is, anti-development; and sometimes we need a contradiction to development."Stravinsky, I. and Craft R. (1959, p.42) Conversations with Igor Stravinsky. London, Faber. Stravinsky was particularly skilled at using ostinatos to confound rather than confirm rhythmic expectations. In the first of his Three Pieces for String Quartet, Stravinsky sets up three repeated patterns, which overlap one another and never coincide. "Here a rigid pattern of (3+2+2/4) bars is laid over a strictly recurring 23-beat tune (the bars being marked by a cello ostinato), so that their changing relationship is governed primarily by the pre-compositional scheme."Walsh, S. (1988, p57) The Music of Stravinsky. London, Routledge. "The rhythmical current running through the music is what binds together these curious mosaic-like pieces."Vlad, R (1978, p52) Stravinsky. Oxford University Press.