changed updateVisualization to get wavelength and beat from files