@name Pimp Stereo
@inputs Left Right
@outputs Sample:string
@persist Index
@trigger 

if(Left){
    Index++
    }
if(Right){
    Index--
    }
if(Index < 1){
    Index = 6
    }
if(Index > 6){
    Index = 1
    }

Songs = array("ambient/music/latin.wav","ambient/music/country_rock_am_radio_loop.wav","ambient/music/cubanmusic1.wav","ambient/music/bongo.wav","ambient/music/flamenco.wav","ambient/music/dustmusic3.wav")

if(first() || duped()){
    Index = 1
    }
Sample = Songs[Index, string]
