From b32ee9267bcdd607c6067b6cd0dd3a4f1e229dd4 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Wed, 11 Jan 2017 11:40:35 -0500 Subject: [PATCH] properties for number of instruments and drums for use by vm --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index 8bab2e0..7aab644 100644 --- a/src/index.js +++ b/src/index.js @@ -43,9 +43,11 @@ function AudioEngine () { // instrument player for play note blocks this.instrumentPlayer = new InstrumentPlayer(this.input); + this.numInstruments = this.instrumentPlayer.instrumentNames.length; // drum player for play drum blocks this.drumPlayer = new DrumPlayer(this.input); + this.numDrums = this.drumPlayer.drumSounds.length; } AudioEngine.prototype.setTempo = function (value) {