A chorale fantasia is an extended composition built around a chorale melody. It may be written for organ or for singers and instruments, with the chorale serving as a cantus firmus: a recognizable melodic foundation around which the rest of the music unfolds.
Rather than setting the tune uniformly from beginning to end, a fantasia can develop its successive phrases in contrasting sections. In vocal examples, the chorale melody is often assigned to the soprano; the resulting scale and elaborate treatment distinguish the form from a simple presentation of a hymn tune.
Chorale fantasias appeared in the 17th century in the North German tradition. Early composers associated with the form include Jan Pieterszoon Sweelinck, Heinrich Scheidemann and Franz Tunder. Their works could treat each phrase of a chorale differently, producing large sectional pieces.
By the middle of the 18th century, this type of organ composition had become rare. Johann Sebastian Bach used the term for various organ chorale types before restricting it to large compositions presenting the chorale melody in the bass. His vocal movements described as chorale fantasias include the opening choruses of his chorale cantatas.
In the 19th century, Max Reger revived the chorale fantasia, applying the term to monumental pieces based on chorale melodies.
Choose a chorale melody and make it the foundation of the piece. Divide it into phrases and plan a section around each one. Give the phrases contrasting treatments rather than repeating the same texture throughout, while preserving enough of the melody for the listener to recognize it.
For an organ work, you could set a chorale phrase clearly in one part while developing material from it in the other parts. Vary the density and character of the accompaniment between sections, then connect the sections into a larger musical arc. A change of registration could help distinguish one treatment from another.
For singers and instruments, you could place the chorale in the soprano as a cantus firmus and build independent vocal or instrumental lines around it. Alternatively, experiment with the melody in the bass, keeping its phrases audible against the surrounding texture.