Watch the Pushin' The Ninth online guitar lesson by Fareed Haque from 30 Beginner Jazz Licks You MUST Know
Notice that the chromatic note brings out sound of the 9th. It emphasizes it by leading your ear to the 9th. Young musicians typically assume that chromatic notes make music sound dissonant or less melodic, weird, atonal. In fact, musically correct use of chromatics emphasizes the sound of the notes that they lead to, and can make a piece sound more melodic, and more in key. On the other hand, random use of chromatics is confusing to the ear and will make music sound less tonal and melodic. So using chromatics correctly is the key to making them work for you.
Just like the "Sassy Slap Down" above, this lick outlines a m9th chord - and has a little F6 chord in there - so it can work on all of the same chords as above. But don't take my word for it, go through the lick and analyze the notes to see for yourself what happens when the lick is played on different chords. Music theory is not mysterious, just a bit detailed - go through the notes intervals and chords and it will make sense. Make sure to play these in many positions, many string groups.