converesion from one-indexing to zero-indexing happens in vm

This commit is contained in:
Eric Rosenbaum 2017-01-11 11:26:03 -05:00
parent ad81e1d3de
commit 3c520d6e10

View file

@ -36,9 +36,8 @@ function DrumPlayer (outputNode) {
}
DrumPlayer.prototype.play = function (drum, outputNode) {
var drumNum = drum - 1;
this.drumSounds[drumNum].outputNode = outputNode;
this.drumSounds[drumNum].start();
this.drumSounds[drum].outputNode = outputNode;
this.drumSounds[drum].start();
};
DrumPlayer.prototype.stopAll = function () {