During the Baroque and early classical periods composers were fascinated with writing music that was appropriate for dances.