style: auto-fix linting issues
This commit is contained in:
parent
37f9a3ebb2
commit
6764eea3e1
1 changed files with 3 additions and 2 deletions
|
|
@ -145,8 +145,9 @@ export class Visualizer {
|
||||||
this.analyser.getByteFrequencyData(this.dataArray);
|
this.analyser.getByteFrequencyData(this.dataArray);
|
||||||
|
|
||||||
// Bass (first bins only — cheap)
|
// Bass (first bins only — cheap)
|
||||||
const volume = 10*Math.max(this.audio.volume, 0.1);
|
const volume = 10 * Math.max(this.audio.volume, 0.1);
|
||||||
let bass = ((this.dataArray[0] + this.dataArray[1] + this.dataArray[2] + this.dataArray[3]) * 0.000980392) / volume;
|
let bass =
|
||||||
|
((this.dataArray[0] + this.dataArray[1] + this.dataArray[2] + this.dataArray[3]) * 0.000980392) / volume;
|
||||||
|
|
||||||
const intensity = bass * bass;
|
const intensity = bass * bass;
|
||||||
const stats = this.stats;
|
const stats = this.stats;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue