Skip to content

Commit 26e44d9

Browse files
fix some issues
1 parent 729ea81 commit 26e44d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Audio Visualization with three.js/script.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function play() {
119119
}
120120

121121
function makeRoughBall(mesh, bassFr, treFr) {
122-
mesh.geometry.vertices.forEach(function (vertex, i) {
122+
mesh.geometry.vertices.forEach(function (vertex) {
123123
var offset = mesh.geometry.parameters.radius;
124124
var amp = 7;
125125
var time = window.performance.now();
@@ -135,7 +135,7 @@ function play() {
135135
}
136136

137137
function makeRoughGround(mesh, distortionFr) {
138-
mesh.geometry.vertices.forEach(function (vertex, i) {
138+
mesh.geometry.vertices.forEach(function (vertex) {
139139
var amp = 2;
140140
var time = Date.now();
141141
var distance = (noise.noise2D(vertex.x + time * 0.0003, vertex.y + time * 0.0001) + 0) * distortionFr * amp;
@@ -148,12 +148,12 @@ function play() {
148148
}
149149

150150
audio.play();
151-
};
151+
}
152152
}
153153

154154
window.onload = vizInit();
155155

156-
document.body.addEventListener('touchend', function(ev) { context.resume(); });
156+
document.body.addEventListener('touchend', function() { context.resume(); });
157157

158158

159159

0 commit comments

Comments
 (0)