Watch the Melody in A online guitar lesson by Joe Dalton from Fretboard Epiphanies
Here's some practical application. The right hand pattern is a little more complex. What we are looking at is actually two patterns. The first measure facilitates getting the melody note. The second measure helps keep the time, playing the background notes. These are just some examples to give you ideas for creating your own melodies or arrangements.