Browse Source

Fix index bug

main
Luke Murphy 4 years ago
parent
commit
ceefcce269
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 2
      voicegardens/static/voicegardens.js

2
voicegardens/static/voicegardens.js

@ -200,7 +200,7 @@ class GeneratedShape {
var duration = 0.8;
var time = 0;
var velocity = 0.5;
var index = random(0, notes.length + 1);
var index = floor(random(0, notes.length));
this.synth.play(notes[index], velocity, time, duration);
}

Loading…
Cancel
Save