// calculate the current VU for this frame (for visualization)let amplitudeL = from(samples) .where((v, index) => index % 2 == 0) .reduce((a, v) => Math.max(Math.abs(v), a), 0.0);let amplitudeR = from(samples) .where((v, index) => index % 2 == 1) .reduce((a, v) => Math.max(Math.abs(v), a), 0.0);this.vu1 = (amplitudeL + this.vu1 * 4) / 5;this.vu2 = (amplitudeR + this.vu2 * 4) / 5;