From 0a55312899c0cd84641f18c225e246faee434370 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Tue, 10 Jan 2017 11:01:36 -0500 Subject: [PATCH] change function name to playNoteForSecWithInst --- src/InstrumentPlayer.js | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/InstrumentPlayer.js b/src/InstrumentPlayer.js index ec0896c..aa95188 100644 --- a/src/InstrumentPlayer.js +++ b/src/InstrumentPlayer.js @@ -15,7 +15,7 @@ function InstrumentPlayer (outputNode) { this.instruments = []; } -InstrumentPlayer.prototype.playNoteForSecsWithInst = function (note, sec, instrumentNum) { +InstrumentPlayer.prototype.playNoteForSecWithInst = function (note, sec, instrumentNum) { this.loadInstrument(instrumentNum) .then(() => { this.instruments[instrumentNum].play( diff --git a/src/index.js b/src/index.js index 6e43cd8..c15542c 100644 --- a/src/index.js +++ b/src/index.js @@ -115,7 +115,7 @@ AudioPlayer.prototype.playSound = function (index) { AudioPlayer.prototype.playNoteForBeats = function (note, beats) { var sec = this.beatsToSec(beats); - this.audioEngine.instrumentPlayer.playNoteForSecsWithInst(note, sec, this.currentInstrument); + this.audioEngine.instrumentPlayer.playNoteForSecWithInst(note, sec, this.currentInstrument); return this.waitForBeats(beats); };