File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Audio Visualization with three.js Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
154154window . onload = vizInit ( ) ;
155155
156- document . body . addEventListener ( 'touchend' , function ( ev ) { context . resume ( ) ; } ) ;
156+ document . body . addEventListener ( 'touchend' , function ( ) { context . resume ( ) ; } ) ;
157157
158158
159159
You can’t perform that action at this time.
0 commit comments