A beam is a flat or diagonal line used to attach multiple consecutive notes (and irregularly rests) to designate rhythmic grouping. The rhythmic value can be determined through the number of notes. One beam is 8th note, 2 is 16th, 3 is 32nd, etc. in other words, the first beam touching the stem.