From 6948968a85fd8ea7c3bcb457fdb920dcaff5b680 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Mon, 9 Jan 2017 21:33:31 -0500 Subject: [PATCH] lint --- src/InstrumentPlayer.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/InstrumentPlayer.js b/src/InstrumentPlayer.js index 516e3cb..cee8cb3 100644 --- a/src/InstrumentPlayer.js +++ b/src/InstrumentPlayer.js @@ -1,7 +1,5 @@ var Tone = require('tone'); var Soundfont = require('soundfont-player'); -var log = require('./log'); - function InstrumentPlayer (outputNode) { this.outputNode = outputNode; @@ -24,11 +22,11 @@ InstrumentPlayer.prototype.playNoteForBeatsWithInstrument = function (note, beat note, Tone.context.currentTime, {duration : Number(beats)} // todo: need to use tempo here ); }); -} +}; InstrumentPlayer.prototype.loadInstrument = function (instrumentNum) { if (this.instruments[instrumentNum]) { - return Promise.resolve(); + return Promise.resolve(); } else { return Soundfont.instrument(Tone.context, this.instrumentNames[instrumentNum]) .then((inst) => {