How excactly does the slider guitar on guitar hero world tour work?

The slider has five sections, which are the green, red, yellow, blue and orange buttons. When playing sometimes you will see purplish, seethrough notes. These can be played by tapping the button or the slider bar. It can also be used as a replacement fro the whammy bar.