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.
Available Instruments
The Set Instrument to () block has a drop-down menu where users can select a instrument available to this specific block, each having their own unique number, visible in a (#) format before the common name of the instrument. Those instruments include:
- (1) Piano
- (2) Electric Piano
- (3) Organ
- (4) Guitar
- (5) Electric Guitar
- (6) Bass
- (7) Pizzicato
- (8) Cello
- (9) Trombone
- (10) Clarinet
- (11) Saxophone
- (12) Flute
- (13) Wooden Flute
- (14) Bassoon
- (15) Choir
- (16) Vibraphone
- (17) Music Box
- (18) Steel Drum
- (19) Marimba
- (20) Synth Lead
- (21) Synth Pad
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
- Projects where you control instruments
- Making music with multiple instruments
- Making sound effects