Stems can also be used to indicate the direction of a melody. When a stem points up, the melody is ascending. When a stem points down, the melody is descending.
In some cases, stems may be omitted altogether. This is often done when notes are very short, such as grace notes or 32nd notes.
Stems are an important part of music notation, and they play a vital role in helping musicians to understand and interpret music.