Modes refer to the different musical scales used in ancient music such as Ionian, Dorian, Phrygian, and Lydian.