Let's discuss "Bebop Scale" or "Seventh Scale" coined by the late, great Barry Harris. There are additional books written on the topic by David Baker, Wendell Harrison, and Jerry Bergonzi. The concept is to insert one or more half steps in a given scale to create tension and embellish chord/scale tones. I prefer to label them as extra notes being that you can utilize other intervals to land on particular diatonic pitches. The running up and down of these scales is just the beginning . The "extra note" is a methodology ....a musical device not an all end to well crafted lines. It's a lesson in rhythm and the intellgent use of chromaticism. Starting on different parts of the beat, combining the scale rules with arpeggios/broken chords, chromatic enclosures, and register shifting are a few ways to convert mere scales to melody. Your best teacher are the recordings. Charlie Parker, Dizzy Gillespie, Miles Davis, Bud Powell, Thelonious Monk, Dexter Gordon, and Wardell Gray are the sources. The vocabulary is there for the taking. Peace & Keep Swinging, Andre Hayward