# set instrument to (Piano)｜Guia do bloco Scratch

> O bloco "set instrument to (Piano)" faz parte da categoria "Blocos de Extensões" do Scratch 3.0 e é essencial em jogos, animações e projetos interativos.

Dicionário de blocos Scratch 3.0: set instrument to (Piano) (Blocos de Extensões). O bloco "set instrument to (Piano)" faz parte da categoria "Blocos de Extensões" do Scratch 3.0 e é essencial em jogos, animações e projetos interativos.

## O que este bloco faz e quando usar

O bloco "set instrument to (Piano)" faz parte da categoria "Blocos de Extensões" do Scratch 3.0 e é essencial em jogos, animações e projetos interativos.

Monte primeiro este exemplo mínimo isoladamente, preveja o resultado antes de clicar na bandeira verde e altere um número por vez.

## Exemplo prático no Scratch

Monte este exemplo Scratch 3.0 no editor e observe o comportamento:

**set instrument to (Piano)**

- When green flag clicked
- Set instrument to (Marimba)
- Play note (60) for (0.5) beats

Experimente: Plays the note with a warm marimba tone.

## Guias relacionados

Monte primeiro este exemplo mínimo isoladamente, preveja o resultado antes de clicar na bandeira verde e altere um número por vez.

- [Voltar para Blocos de Extensões](/pt/dictionary/extensions/): Blocos de Extensões
- [Voltar ao Dicionário de blocos](/pt/dictionary/): Scratch 3.0

## Princípios Fundamentais e Funcionamento no Scratch 3.0 — set instrument to (Piano)｜Guia do bloco Scratch

No Scratch 3.0 (~30 FPS), dominar a inicialização de variáveis, loops e condicionais garante projetos organizados e sem bugs.

In Scratch 3.0, every script executes inside a predictable ~30 frames-per-second (30 FPS) loop. Rather than memorizing "set instrument to (Piano)｜Guia do bloco Scratch" in isolation, pay attention to which event hat triggers it, what stage coordinate or variable state it changes, and how it interacts with neighboring Control and Sensing blocks.

At its core, "set instrument to (Piano)｜Guia do bloco Scratch" focuses on this key idea: O bloco "set instrument to (Piano)" faz parte da categoria "Blocos de Extensões" do Scratch 3.0 e é essencial em jogos, animações e projetos interativos. In real classroom instruction supervised by Takamasa Suzuki (Okinawa Minecraft Club Programming School "Crosswave", weva.jp), learners progress much faster once they can explain which variable holds state, which event triggers updates, and how the stage resets cleanly on every green-flag click.

Always initialize sprite coordinates, direction, size, visibility, and variables explicitly at project start. A clean initialization sequence eliminates the notorious "you have to click the green flag twice" bug and makes testing predictable across Windows, macOS, Chromebooks, and iPads.

## Método em 3 Etapas: Protótipo Mínimo, Testes e Personalização

Follow this three-stage workflow to turn "set instrument to (Piano)｜Guia do bloco Scratch" from a quick example into a polished, bug-free feature inside your own Scratch 3.0 project. Test after every small change instead of stacking 30 blocks at once.

- Stage 1 (Minimal Working Test): Build only the core blocks for "set instrument to (Piano)｜Guia do bloco Scratch" on a blank sprite and verify that the primary behavior works consistently on the very first green-flag click.
- Stage 2 (Edge-Case & Variable Monitor Check): Turn on stage variable monitors and test boundary cases—zero, negative numbers, stage borders (-240 to 240, -180 to 180), rapid key presses, and clone cleanup.
- Stage 3 (Original Art, Audio & Playtesting): Add custom vector/pixel costumes, balanced sound effects, clear instructions, and invite a friend or family member to playtest without hints so you can spot confusing moments immediately.

## Uso Escolar, Segurança Online e Transição para Python

Mastering "set instrument to (Piano)｜Guia do bloco Scratch" strengthens math reasoning (coordinates, exterior angles, variables, probability), scientific modeling, and structured debugging. Once comfortable in Scratch 3.0, these exact patterns transfer smoothly into Python, Minecraft MakeCode, Roblox Studio, and web development.

Keep your projects original and safe to share: avoid uploading third-party copyrighted characters or songs, never include real names or personal photos, and write clear Notes and Credits whenever you remix or learn from another creator.

- [Scratch Dictionary](/pt/dictionary/): Blocos de Extensões
- [Scratch Textbook](/pt/textbook/): No Scratch 3.0 (~30 FPS), dominar a inicialização de variáveis, loops e condicionais garante projetos organizados e sem bugs.
- [Scratch How-To](/pt/howto/): Método em 3 Etapas: Protótipo Mínimo, Testes e Personalização

Atualizado em: 2026-11-25
Autor: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/)
Japanese Edition: https://scratch.gmnavi.jp/dictionary/extensions/music-instrument/

[Scratch Daizen (Português)](https://scratch.gmnavi.jp/pt/)
