diff --git a/package.json b/package.json index bb5b4c2..b8caf99 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "start": "webpack-dev-server --host 0.0.0.0 --progress --colors --hot --inline --port 3000" }, "dependencies": { - "aframe-audioanalyser-component": "^4.0.1", + "aframe-audioanalyser-component": "^5.0.0-beta1", "aframe-atlas-uvs-component": "^2.0.0", "aframe-event-decorators": "^1.0.2", "aframe-event-set-component": "^4.0.1", diff --git a/src/components/twister.js b/src/components/twister.js index ca8d1b9..f7df07e 100644 --- a/src/components/twister.js +++ b/src/components/twister.js @@ -12,7 +12,7 @@ AFRAME.registerComponent('twister', { init: function () { this.currentTwist = 0; this.animate = false; - this.el.addEventListener('audioanalyser-beat', this.pulse.bind(this)); + this.el.addEventListener('audioanalyserbeat', this.pulse.bind(this)); }, pulse: function () { diff --git a/src/templates/stage.html b/src/templates/stage.html index 434f086..2d65b9c 100644 --- a/src/templates/stage.html +++ b/src/templates/stage.html @@ -10,7 +10,7 @@ + proxy-event="event: audioanalyserbeat; to: #logolight, #floor, #twister"> + animation__rotate="property: object3D.rotation.y; from: 50; to: -50; dur: 300; easing: linear; startEvents: audioanalyserbeat">