# Bar (music)

In musical notation, a bar (or measure) is a segment of music bounded by vertical lines, known as bar lines (or barlines), usually indicating one or more recurring beats. The length of the bar, measured by the number of note values it contains, is normally indicated by the time signature.

## Types of bar lines

Regular bar lines consist of a thin vertical line extending from the top line to the bottom line of the staff, sometimes also extending between staves in the case of a grand staff or a family of instruments in an orchestral score.
A double bar line (or double bar) consists of two single bar lines drawn close together, separating two sections within a piece, or a bar line followed by a thicker bar line, indicating the end of a piece or movement. Note that double bar refers not to a type of bar (i.e., measure), but to a type of bar line. Typically, a double bar is used when followed by a new key signature, whether or not it marks the beginning of a new section.
A repeat sign (or, repeat bar line) looks like the music end, but it has two dots, one above the other, indicating that the section of music that is before is to be repeated. The beginning of the repeated passage can be marked by a begin-repeat sign; if this is absent, the repeat is understood to be from the beginning of the piece or movement. This begin-repeat sign, if appearing at the beginning of a staff, does not act as a bar line because no bar is before it; its only function is to indicate the beginning of the passage to be repeated.
A mensurstrich is a bar line which stretches only between staves of a score, not through each staff; this is a specialized notation used by editors of early music to help orient modern musicians when reading music which was originally written without bar lines.
Lines extending only partway through the staff are rarely used, sometimes to help orient the reader in very long measures in complex time signatures, or as brief section divisions in Gregorian chant notation.
Some composers use dashed or dotted bar lines; others (including Hugo Distler) have placed bar lines at different places in the different parts to indicate different stress patterns from part to part.
If many consecutive bars contain only rests, they may be replaced by a single bar containing a multirest, as shown. The number above shows the number of bars replaced.

## Bars and stresses

Whether the music contains a regular meter or mixed meters, the first note in the bar (known as the downbeat) is usually stressed slightly in relation to the other notes in the bar.
Igor Stravinsky said of bar lines:
   The bar line is much, much more than a mere accent, and I don't believe that it can be simulated by an accent, at least not in my music.
Bars and bar lines also indicate grouping: rhythmically of beats within and between bars, within and between phrases, and on higher levels such as meter.

## Numbering bars

The first metrically complete bar within a piece of music is called "bar 1" or "m. 1". When the piece begins with an anacrusis (an incomplete bar at the beginning of a piece of music), "bar 1" or "m. 1" is the following bar. Bars contained within first or second endings are numbered consecutively.

## History

The earliest bar lines, used in keyboard and vihuela music in the 15th and 16th centuries, didn't reflect a regular meter at all but were only section divisions, or in some cases marked off every beat.
Bar lines began to be introduced into ensemble music in the late 16th century but continued to be used irregularly. Not until the mid-17th century were bar lines used in the modern style with every measure being the same length, and they began to be associated with time signatures.
Modern editions of early music that was originally notated without bar lines sometimes use a mensurstrich as a compromise.

## Hypermeasure

A hypermeasure, large-scale or high-level measure, or measure-group is a metric unit in which, generally, each regular measure is one beat (actually hyperbeat) of a larger meter. Thus a beat is to a measure as a measure/hyperbeat is to a hypermeasure. Hypermeasures must be larger than a notated bar, perceived as a unit, consist of a pattern of strong and weak beats, and along with adjacent hypermeasures, which must be of the same length, create a sense of hypermeter. The term was coined by Edward T. Cone in Musical Form and Musical Performance (New York: Norton, 1968), and is similar to the less formal notion of a phrase.