mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 14:02:29 -05:00
lint
This commit is contained in:
parent
0bd84dd9a6
commit
6948968a85
1 changed files with 2 additions and 4 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue