From 52232cc47ee9c6db00e7a1010d3dd01cd093bf81 Mon Sep 17 00:00:00 2001 From: mattdesl Date: Sat, 26 May 2018 14:57:52 -0400 Subject: [PATCH] tweak bug audio --- src/geometry/getRectangle.js | 4 ++-- src/scene/MainScene.js | 2 ++ src/util/createAudio.js | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/geometry/getRectangle.js b/src/geometry/getRectangle.js index 3cea49b..fda8a36 100644 --- a/src/geometry/getRectangle.js +++ b/src/geometry/getRectangle.js @@ -16,9 +16,9 @@ module.exports = function getCircularBlob (opt = {}) { const rotation = RND.randomFloat(-1, 1) * Math.PI * 2; let width, height; - const minDim = 0.25; + const minDim = 0.5; const maxDim = 1.0; - const dimScale = RND.randomFloat(0.25, 1.5); + const dimScale = RND.randomFloat(0.5, 1.5); width = RND.randomFloat(minDim, maxDim); height = RND.randomFloat(minDim, maxDim); diff --git a/src/scene/MainScene.js b/src/scene/MainScene.js index c8962e5..72464f1 100644 --- a/src/scene/MainScene.js +++ b/src/scene/MainScene.js @@ -290,6 +290,7 @@ module.exports = class MainScene extends THREE.Object3D { onPresetChanged (preset, oldPreset) { this.running = true; + console.log('changed') // Preset has 'hard' changed, i.e. flash to new content this.pool.forEach(shape => { if (!shape.active) return; @@ -392,6 +393,7 @@ module.exports = class MainScene extends THREE.Object3D { } if (hit) { + console.log('hit') this.pool.forEach(shape => { if (!shape.active) return; let { materialType, shapeType } = getRandomMaterialProps(this.app.preset); diff --git a/src/util/createAudio.js b/src/util/createAudio.js index 16a75e1..16758cc 100644 --- a/src/util/createAudio.js +++ b/src/util/createAudio.js @@ -24,7 +24,6 @@ const BEAT_TIMES = [ { time: 26.913 }, { time: 30.774 }, { time: 34.634 }, - { time: 34.634 }, { time: 38.440, major: true }, ];