Set Instrument to ()
set instrument to ( v)
Category Music
Type Stack

The Set Instrument to () block is a Music block and a Stack block. The block changes the instrument that the Play Note () for () Beats block will play. In Scratch 1.x, this could be any of the 128 General MIDI instruments; since then, that block has been replaced with an identically named one with 21 instruments.[1] (The Play Drum () for () Beats block is not affected by the Set Instrument to () block; it has its own instruments in a drop-down menu.)

A sprite can play only one instrument at a time. In order to play multiple instruments at once, it is necessary to have multiple sprites or clones of a single sprite.

Example Uses

As this block changes the instrument, it is mainly used in projects that require multiple instruments.

Some common uses for the Set Instrument to () block:

  • Projects where a change of instrument is needed
when gf clicked
set instrument to (2 v)
  • Projects where you control instruments
  • Making music with multiple instruments
  • Making sound effects

See Also

References

  1. https://github.com/LLK/scratch-flash/blob/master/src/primitives/SoundPrims.as