public void updateData(float heightCoefficient, float amplitude) {
		for (GLWave wave : waves) {
			wave.setCoefficient(Utils.randomize(heightCoefficient, random));
		}
		if (amplitude > this.amplitude) {
			this.amplitude = amplitude;
			if (heightCoefficient > 0.25f) {
				produceBubbles();
			}
		} else {
			this.amplitude = Utils.smooth(this.amplitude, amplitude, 0.8f);
		}
	}
Update waves data.
@param heightCoefficient wave height's coefficient
@param amplitude amplitude
library/src/main/java/com/cleveroad/audiovisualization/GLWaveLayer.java