Musical improvisation
Musical improvisation (also known as musical extemporization) is the creative activity of immediate ("in the moment") musical composition, which combines performance with communication of emotions and instrumental technique as well as spontaneous response to other musicians. Sometimes musical ideas in improvisation are spontaneous, but may be based on chord changes in classical music, and many other kinds of music. One definition is a "performance given extempore without planning or preparation." Another definition is to "play or sing (music) extemporaneously, by inventing variations on a melody or creating new melodies, rhythms and harmonies."
Encyclopædia Britannica defines it as "the extemporaneous composition or free performance of a musical passage, usually in a manner conforming to certain stylistic norms but unfettered by the prescriptive features of a specific musical text. Music originated as improvisation and is still extensively improvised in Eastern traditions and in the modern Western tradition of jazz."