Improvisation, or jamming - is the art of playing music without any preparation ahead of time. To do this well you need an understanding of the structure and rules of music, along with a library of licks and scales that you can adapt to specific circumstances. Blues music is famous for being improvised and is based around the pentatonic scale.