instrument number is zero-indexed inside audio engine
This commit is contained in:
1 parent
ce8b069140
commit
4d7ff97011
1 file changed
+1
@@ -84,6 +84,7 @@ Scratch3SoundBlocks.prototype.restForBeats = function (args, util) {
|
||||
|
||||
Scratch3SoundBlocks.prototype.setInstrument = function (args, util) {
|
||||
var instNum = Cast.toNumber(args.INSTRUMENT);
|
||||
instNum -= 1;
|
||||
return util.target.audioPlayer.setInstrument(instNum);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user