set instrument to (Piano) — Scratch Block Guide
Switches between 21 built-in instruments (Piano, Guitar, Synth Lead, Flute, Marimba, etc.).
What this block does
Switches between 21 built-in instruments (Piano, Guitar, Synth Lead, Flute, Marimba, etc.).
Give each sprite a different instrument to build a multi-track band.
- Category: Extensions
- Key tip: Each sprite keeps its own instrument setting independently.
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- When green flag clicked
- Set instrument to Marimba
- Play note 60 for 0.5 beats
Try it: Plays the note with a warm marimba tone.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "set instrument to (Piano)" in Scratch?
Give each sprite a different instrument to build a multi-track band. Each sprite keeps its own instrument setting independently.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.