mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 14:02:29 -05:00
change function name to playNoteForSecWithInst
This commit is contained in:
parent
a1c31c3f4b
commit
0a55312899
2 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue