NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

set instrument to (Piano) — Scratch Block Guide

📌 What you will learn

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.

Example using set instrument to (Piano)
  1. When green flag clicked
  2. Set instrument to Marimba
  3. 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.

Back to Extensions See the overview and patterns for Extensions. Learn more → Scratch Block Dictionary (All Categories) Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Learn more →

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.