function playSongAtIndex(index) {
		/*
  	Stop the current song.
  */
		stop();

		/*
  	Determine if there is a new playlist, if so set the active playlist and change the song.
  */
		if (_helpers2.default.checkNewPlaylist(null)) {
			_helpers2.default.setActivePlaylist(null);

			_helpers2.default.changeSong(index);
		}

		/*
  	Check if the song is new. If so, change the song.
  */
		if (_helpers2.default.checkNewSong(index)) {
			_helpers2.default.changeSong(index);
		}

		/*
   Sync all of the play pause buttons.
  */
		_visual2.default.syncMainPlayPause('playing');
		_visual2.default.syncPlaylistPlayPause(_config2.default.active_playlist, 'playing');
		_visual2.default.syncSongPlayPause(_config2.default.active_playlist, _config2.default.active_index, 'playing');

		/*
   Play the song
  */
		play();
	}
/**
  * Plays the song at a specific index in the songs array
  *
  * Public Accessor: Amplitude.playSongAtIndex( song )
  *
  * @access public
  * @param {number} index - The number representing the song in the songs array
  */
Plays the song at a specific index in the songs array
Public Accessor: Amplitude.playSongAtIndex( song )

@access public
@param {number} index - The number representing the song in the songs array
Plays the song at a specific index in the songs array Public Accessor : Amplitude . playSongAtIndex ( song ) @access public @param { number } index - The number representing the song in the songs array
function playSongAtIndex(index) {
		stop();
		if (_helpers2.default.checkNewPlaylist(null)) {
			_helpers2.default.setActivePlaylist(null);
			_helpers2.default.changeSong(index);
		}
		if (_helpers2.default.checkNewSong(index)) {
			_helpers2.default.changeSong(index);
		}
		_visual2.default.syncMainPlayPause('playing');
		_visual2.default.syncPlaylistPlayPause(_config2.default.active_playlist, 'playing');
		_visual2.default.syncSongPlayPause(_config2.default.active_playlist, _config2.default.active_index, 'playing');
		play();
	}
function playSongAtIndex ( index ) { stop ( ) ; if ( _helpers2 . default . checkNewPlaylist ( null ) ) { _helpers2 . default . setActivePlaylist ( null ) ; _helpers2 . default . changeSong ( index ) ; } if ( _helpers2 . default . checkNewSong ( index ) ) { _helpers2 . default . changeSong ( index ) ; } _visual2 . default . syncMainPlayPause ( 'playing' ) ; _visual2 . default . syncPlaylistPlayPause ( _config2 . default . active_playlist , 'playing' ) ; _visual2 . default . syncSongPlayPause ( _config2 . default . active_playlist , _config2 . default . active_index , 'playing' ) ; play ( ) ; }
Plays the song at a specific index in the songs array
 Public Accessor: Amplitude.playSongAtIndex( song )
Plays the song at a specific index in the songs array Public Accessor : Amplitude . playSongAtIndex ( song )
/*
  	Stop the current song.
  */ /*
  	Determine if there is a new playlist, if so set the active playlist and change the song.
  */ /*
  	Check if the song is new. If so, change the song.
  */ /*
   Sync all of the play pause buttons.
  */ /*
   Play the song
  */