Jazz improvisation that involves altering notes in the melody is called melodic improvisation.
There are three methods of jazz improvisation: Harmonic improvisation, melodic improvisation and motivic improvisation.
A key aspect of jazz is Jazz improvisation, creation of new melodic solo lines or accompaniment parts.