change function name to playNoteForSecWithInst

This commit is contained in:
Eric Rosenbaum 2017-01-10 11:01:36 -05:00
parent a1c31c3f4b
commit 0a55312899
2 changed files with 2 additions and 2 deletions

View file

@ -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(

View file

@ -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);
};