mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2025-01-18 05:30:06 -05:00
set instrument moved to target in vm
This commit is contained in:
parent
8557c4a7ab
commit
7b07d150da
1 changed files with 0 additions and 5 deletions
|
@ -247,11 +247,6 @@ AudioPlayer.prototype.clearEffects = function () {
|
||||||
this.audioEngine.roboticEffect.set(0);
|
this.audioEngine.roboticEffect.set(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
AudioPlayer.prototype.setInstrument = function (instrumentNum) {
|
|
||||||
this.currentInstrument = instrumentNum;
|
|
||||||
return this.audioEngine.instrumentPlayer.loadInstrument(this.currentInstrument);
|
|
||||||
};
|
|
||||||
|
|
||||||
AudioPlayer.prototype.setVolume = function (value) {
|
AudioPlayer.prototype.setVolume = function (value) {
|
||||||
this.currentVolume = this._clamp(value, 0, 100);
|
this.currentVolume = this._clamp(value, 0, 100);
|
||||||
this.effectsNode.gain.value = this.currentVolume / 100;
|
this.effectsNode.gain.value = this.currentVolume / 100;
|
||||||
|
|
Loading…
Reference in a new issue