Skip to content

Commit

Permalink
tweak bug audio
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdesl committed May 26, 2018
1 parent 6895fd0 commit 52232cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/geometry/getRectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 2 additions & 0 deletions src/scene/MainScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion src/util/createAudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const BEAT_TIMES = [
{ time: 26.913 },
{ time: 30.774 },
{ time: 34.634 },
{ time: 34.634 },
{ time: 38.440, major: true },
];

Expand Down

0 comments on commit 52232cc

Please sign in to comment.