mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2025-01-03 11:35:49 -05:00
properties for number of instruments and drums for use by vm
This commit is contained in:
parent
3c520d6e10
commit
b32ee9267b
1 changed files with 2 additions and 0 deletions
|
@ -43,9 +43,11 @@ function AudioEngine () {
|
||||||
|
|
||||||
// instrument player for play note blocks
|
// instrument player for play note blocks
|
||||||
this.instrumentPlayer = new InstrumentPlayer(this.input);
|
this.instrumentPlayer = new InstrumentPlayer(this.input);
|
||||||
|
this.numInstruments = this.instrumentPlayer.instrumentNames.length;
|
||||||
|
|
||||||
// drum player for play drum blocks
|
// drum player for play drum blocks
|
||||||
this.drumPlayer = new DrumPlayer(this.input);
|
this.drumPlayer = new DrumPlayer(this.input);
|
||||||
|
this.numDrums = this.drumPlayer.drumSounds.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
AudioEngine.prototype.setTempo = function (value) {
|
AudioEngine.prototype.setTempo = function (value) {
|
||||||
|
|
Loading…
Reference in a new issue