Improvisation was the act of creating music or dialogue as one went along, rather than performing a pre-existing song or play.
In 2369, Nella Daren encouraged Jean-Luc Picard to improvise around the melody of the piano and Ressikan flute duet they were playing together. (TNG: "Lessons")