Sentence:  As the music came fresher on their ears, they danced to its cadence, <WSD>extemporizing</WSD> new steps and attitudes. 
Meaning of the word marked with <WSD> tags:  To do, create, improvise, adapt, or devise in an impromptu or spontaneous manner.