In music, a chorale prelude is a short liturgical composition for organ using a chorale tune as its basis. It was a predominant style of the German Baroque era and reached its culmination in the works of J.S. Bach, who wrote 46 (with a 47th unfinished) examples of the form in his Orgelbüchlein, along with multiple other works of the type in other collections.
The liturgical function of a chorale prelude in the Baroque period is debated. One possibility is that they were used to introduce the hymn about to be sung by the congregation, usually in a Protestant, and originally in a Lutheran, church.
Although it was typically a polyphonic setting, the chorale would be plainly audible. There was sometimes an obbligato line above or below the melody.
As an independent genre, the chorale prelude began with the works of Dieterich Buxtehude, 48 of which are listed as extant in New Grove II. Numerous examples also exist from the 19th and 20th centuries, including some by Johannes Brahms and Max Reger. Works in the form continue to be composed in the present day.
Most of the chorale prelude form is a theme and variation with a "long A" where the voices retrograde, invert, imitate while following the original basso continuo.
Probably, the earliest record of a melody used in chorale prelude by Johann Sebastian Bach is his arrangement of Gelobet seist du, Jesu Christ (BWV 604). This melody appears in a manuscript c. 1370, in the city of Celle. Later, it appears with an original text by Martin Luther, printed in the hymnal Eyn geystlich Gesangk Buchleyn in Wittenberg in 1524, edited by Johann Walter. In 1715, the hymn's book of Gotha, Germany, had already printed the melody of Gelobet seist du, Jesu Christ. Soon after, in 1717, Bach was requested by the Duke of Saxe Gotha to present a musical passion.