The melody is usually the most prominent and memorable part of a song. It is often played by a lead instrument, such as the voice, piano, or guitar. The melody is what you sing along to or hum when you are thinking of a song.
The accompaniment, on the other hand, is the music that supports the melody. It is usually played by multiple instruments, such as the piano, guitar, bass, and drums. The accompaniment provides a harmonic foundation for the melody and helps to create a sense of rhythm and movement.
Here is a simple example of a melody and accompaniment:
```
Melody: Twinkle, twinkle, little star
Accompaniment: [Chords: C, G, Am, F]
```
In this example, the melody is the vocal line that sings the words "Twinkle, twinkle, little star". The accompaniment is the piano chords that are played underneath the melody. The chords provide harmonic support for the melody and help to create a sense of rhythm and movement.
Melody and accompaniment are essential components of music. They work together to create a beautiful and cohesive whole.