# 블록 코딩

![](/files/G7vi9AfUuv3NmsgzN2wN)

우리가 추가한 건반 오브젝트들에 각각 소리를 추가하여

오브젝트를 클릭했을 때 소리가 날 수 있도록 프로그램을 만들어 봅시다

{% tabs %}
{% tab title="소리 추가하기" %}

#### <mark style="background-color:green;">1. 피아노건반</mark> <mark style="background-color:green;"></mark><mark style="background-color:green;"><mark style="color:red;">도<mark style="color:red;"></mark> <mark style="background-color:green;"></mark><mark style="background-color:green;">오브젝트를 선택 합니다</mark>

![](/files/miy72P7HCCEdweP3UexK)

#### <mark style="background-color:green;">2. 블록 꾸러미에서</mark> <mark style="background-color:green;"></mark><mark style="background-color:green;"><mark style="color:red;">소리<mark style="color:red;"></mark> <mark style="background-color:green;"></mark><mark style="background-color:green;">탭을 선택하여 소리 추가하기 버튼을 눌러 줍니다</mark>

![](/files/H3J12kWg4xA668bEhGNM)

####

#### <mark style="background-color:green;">3. 악기 탭을 선택하여</mark> <mark style="background-color:green;"></mark><mark style="background-color:green;"><mark style="color:red;">마림바\_04가온도<mark style="color:red;"></mark> <mark style="background-color:green;"></mark><mark style="background-color:green;">소리를 선택, 추가 버튼을 눌러 추가해 줍니다</mark>

![](/files/yIAAV3kE6pGbzt5rdTAA)

####

#### <mark style="background-color:green;">4. 추가한 소리를 재생 버튼을 눌러 확인해 봅니다</mark>

![](/files/5tBGAFSO7nSK7zkgmNms)
{% endtab %}

{% tab title="오브젝트 클릭 연주" %}

#### <mark style="background-color:green;">1. 시작메뉴에서</mark> <mark style="background-color:green;"></mark><mark style="background-color:green;"><mark style="color:red;">`오브젝트를 클릭했을 때`<mark style="color:red;"></mark> <mark style="background-color:green;"></mark><mark style="background-color:green;">블록을 찾아 블록 조립소 화면에 가져와 줍니다</mark>

#### <mark style="background-color:green;">소리메뉴에서</mark> <mark style="background-color:green;"></mark><mark style="background-color:green;"><mark style="color:red;">`소리(대상없음) 재생하기`<mark style="color:red;"></mark> <mark style="background-color:green;"></mark><mark style="background-color:green;">블록을 찾아 오브젝트를 클릭했을 때 아래에 연결하여 줍니다</mark>

<figure><img src="/files/4ad873aOoX12xV3EBOOH" alt=""><figcaption><p>대상없음 부분을 클릭하여 추가한 소리로 변경해 줍니다</p></figcaption></figure>

####

#### <mark style="background-color:green;">2. 생김새 메뉴에서</mark> <mark style="background-color:green;"></mark><mark style="background-color:green;"><mark style="color:red;">`피아노건반_도 모양으로 바꾸기`<mark style="color:red;"></mark> <mark style="background-color:green;"></mark><mark style="background-color:green;">블록을 찾아 소리재생하기 블록 아래에 연결해 줍니다</mark>

<figure><img src="/files/BOsMN3fudu06Gnu0qMgu" alt=""><figcaption><p>피아노건반_도 부분을 클릭하여 피아노건반_도1로 변경해 줍니다</p></figcaption></figure>

####

#### <mark style="background-color:green;">3. 흐름 메뉴에서</mark> <mark style="background-color:green;"></mark><mark style="background-color:green;"><mark style="color:red;">`2초 기다리기 블록`<mark style="color:red;"></mark><mark style="background-color:green;">을 찾아 모양으로 바꾸기 블록 아래에 연결한 후</mark>&#x20;

#### <mark style="background-color:green;">2초를 0.1초로 변경해 줍니다</mark>&#x20;

<figure><img src="/files/WNJyT2HUIQong45vhmgA" alt=""><figcaption><p>(숫자 부분을 클릭 후 숫자 입력)</p></figcaption></figure>

####

#### <mark style="background-color:green;">4. 생김새 메뉴에서</mark> <mark style="background-color:green;"></mark><mark style="background-color:green;"><mark style="color:red;">`모양으로 바꾸기 블록`<mark style="color:red;"></mark><mark style="background-color:green;">을 찾아 0.1초 기다리기 블록 아래에 연결해 줍니다</mark>&#x20;

#### <mark style="background-color:green;">동일하게 이름을 피아노건반\_도 로 변경해 줍니다</mark>

<figure><img src="/files/u6nvC1XWhT647ytWZl8K" alt=""><figcaption></figcaption></figure>

나머지 건반 오브젝트들도 동일한 방법으로 소리와 모양을 변경하여 만들어 줍니다
{% endtab %}

{% tab title="키보드 키로 연주" %}

#### 시작 메뉴에서 <mark style="color:red;">**`q키를 눌렀을 때`**</mark> 블록을 찾아 건반 블록 코딩 1과 동일하게 블록을 찾아 연결해 줍니다&#x20;

#### q키 부분을 클릭하여 a로 선택하여 변경해 줍니다 (원하는 키로 변경 가능)

![](/files/A8N1oQqBQbQfL0tcnCdS)

나머지 음 이름들도 앞에서 만든 연주 블록을 복사하여 연주하기 편한&#x20;

키보드의 키 이름으로 변경하여 완성해 줍니다
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mose-byun.gitbook.io/epl_game/undefined-2/undefined-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
