<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span class="imageblock" style="margin: 0px; padding: 0px; display: inline-block; width: 40px; height: auto; max-width: 100%;"><img src="https://t1.daumcdn.net/cfile/tistory/27019C4A5103785E38" width="40" filename="느낌표.png" filemime="image/jpeg" style="margin: 0px; padding: 0px; border: 0px; max-width: 100%; height: auto;" /></span><span style="margin: 0px; padding: 0px; font-size: 14pt;"><b style="margin: 0px; padding: 0px;">MAKE....</b></span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;">&nbsp;</p>
<div style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-image: url(&quot;https://i1.daumcdn.net/deco/contents/horizontalrule/line06.gif?v=2&quot;); background-position: left center; background-size: initial; background-repeat: repeat-x; background-attachment: scroll; background-origin: initial; background-clip: initial; width: 1110.66px; height: 15px;">
   <hr style="margin: 0px; padding: 0px; border: 0px none black; left: -9999px; position: relative; top: -9999px;" />
   </div>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><br style="margin: 0px; padding: 0px;" /></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; text-align: center; clear: none; float: none;"><span class="imageblock" style="margin: 0px; padding: 0px; display: inline-block; width: 700px; height: auto; max-width: 100%;"><span data-url="https://t1.daumcdn.net/cfile/tistory/147BE0475103D6E410?download" data-lightbox="lightbox" style="margin: 0px; padding: 0px; cursor: pointer;"><img src="https://t1.daumcdn.net/cfile/tistory/147BE0475103D6E410" width="700" filename="Arduino_PlayMelody_Fritzing.ps.png" filemime="image/jpeg" style="margin: 0px; padding: 0px; border: 0px; cursor: pointer; max-width: 100%; height: auto;" /></span></span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 12pt;">먼저 연결하세요.!</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 12pt;">다음처럼 아두이노 호환제품 이라도 핀 배치는 같아서 연결은 똑같이 할 수 있습니다.</span><br style="margin: 0px; padding: 0px;" /></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">단순히 아두이노 9번핀에서 부저로 신호가 간뒤에 GND로 흐르고, 3번핀은 스위치 입력을 받아서</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">스위치가 눌러지면 부저에서 멜로디를 재생하도록 스케치(소스코드)를 짜려고 합니다.</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><br style="margin: 0px; padding: 0px;" /></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span class="imageblock" style="margin: 0px; padding: 0px; display: inline-block; width: 40px; height: auto; max-width: 100%;"><img src="https://t1.daumcdn.net/cfile/tistory/27019C4A5103785E38" width="40" filename="느낌표.png" filemime="image/jpeg" style="margin: 0px; padding: 0px; border: 0px; max-width: 100%; height: auto;" /></span><span style="margin: 0px; padding: 0px; font-size: 14pt;"><b style="margin: 0px; padding: 0px;">&amp;PLAY....</b></span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;">&nbsp;</p>
<div style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-image: url(&quot;https://i1.daumcdn.net/deco/contents/horizontalrule/line06.gif?v=2&quot;); background-position: left center; background-size: initial; background-repeat: repeat-x; background-attachment: scroll; background-origin: initial; background-clip: initial; width: 1110.66px; height: 15px;"><b style="margin: 0px; padding: 0px; font-size: 14pt; line-height: 1.5;"></b></div>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">스케치만들때 라이브러리를 사용하는데 숙묵님의 (<b style="margin: 0px; padding: 0px;">비영리 무료 라이센스</b>)인 PlayMelody 라이브러리를 이용합니다.</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">PlayMelody 라이브러리는 GW-Basic과 MSX-Basic, MML코드와 비슷해서 코드를 잘 찾다보면 호환이 가능한 멜로디&nbsp;코드들이 더러 있습니다.</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 12pt;">그럼 실제 멜로디 재생에 앞서 원래 아두이노에 없는 함수이기 때문에 함수에 대해서 정의된 파일을 아두이노에서 사용 할 수 있도록 넣어주어야 합니다.</span><br style="margin: 0px; padding: 0px;" /></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">먼저 플레이멜로디 라이브러리를 다운로드 받으세요.^</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;">&nbsp;</p>
<div style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-image: url(&quot;https://i1.daumcdn.net/deco/contents/horizontalrule/line03.gif?v=2&quot;); background-position: left center; background-size: initial; background-repeat: repeat-x; background-attachment: scroll; background-origin: initial; background-clip: initial; width: 1110.66px; height: 15px;">
   <hr style="margin: 0px; padding: 0px; border: 0px none black; left: -9999px; position: relative; top: -9999px;" />
   </div>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; text-align: center; clear: none; float: none;"><a href="https://binworld.kr/27#" target="_blank" style="margin: 0px; padding: 0px; color: #2970a6; text-decoration-line: none; font-size: 9pt; line-height: 1.5;"><img src="https://t1.daumcdn.net/cfile/tistory/20143B4B510D141D13" border="0" style="margin: 0px; padding: 0px; border: 0px;" /></a><span style="margin: 0px; padding: 0px; font-size: 9pt; line-height: 1.5;">&nbsp;</span><span style="margin: 0px; padding: 0px; font-size: 12pt;"><b style="margin: 0px; padding: 0px;">PlayMelody Library 다운로드</b></span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; text-align: center; clear: none; float: none;">&nbsp;</p>
<div style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-image: url(&quot;https://i1.daumcdn.net/deco/contents/horizontalrule/line03.gif?v=2&quot;); background-position: left center; background-size: initial; background-repeat: repeat-x; background-attachment: scroll; background-origin: initial; background-clip: initial; width: 1110.66px; height: 15px;">
   <hr style="margin: 0px; padding: 0px; border: 0px none black; left: -9999px; position: relative; top: -9999px;" />
   </div>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; text-align: center; clear: none; float: none;"><br style="margin: 0px; padding: 0px;" /></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; text-align: center; clear: none; float: none;"><span class="imageblock" style="margin: 0px; padding: 0px; display: inline-block; width: 700px; height: auto; max-width: 100%;"><span data-url="https://t1.daumcdn.net/cfile/tistory/163ABF50510D189137?download" data-lightbox="lightbox" style="margin: 0px; padding: 0px; cursor: pointer;"><img src="https://t1.daumcdn.net/cfile/tistory/163ABF50510D189137" width="700" filename="아두이노 PlayMelody 압축해제.png" filemime="image/jpeg" style="margin: 0px; padding: 0px; border: 0px; cursor: pointer; max-width: 100%; height: auto;" /></span></span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 12pt;">압축을 해제하면 다음과 같은 파일들이 나올텐데요.. 제일 중요한 파일인 PlayMelody.CPP파일과&nbsp;</span><br style="margin: 0px; padding: 0px;" /></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 12pt;">PlayMelody.h 파일을 복사해줍니다.</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;">&nbsp;</p>
<div style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-image: url(&quot;https://i1.daumcdn.net/deco/contents/horizontalrule/line03.gif?v=2&quot;); background-position: left center; background-size: initial; background-repeat: repeat-x; background-attachment: scroll; background-origin: initial; background-clip: initial; width: 1110.66px; height: 15px;">
   <hr style="margin: 0px; padding: 0px; border: 0px none black; left: -9999px; position: relative; top: -9999px;" />
   </div>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; text-align: center; clear: none; float: none;"><br style="margin: 0px; padding: 0px;" /></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; text-align: center; clear: none; float: none;"><span class="imageblock" style="margin: 0px; padding: 0px; display: inline-block; width: 700px; height: auto; max-width: 100%;"><span data-url="https://t1.daumcdn.net/cfile/tistory/0222234A510D18D017?download" data-lightbox="lightbox" style="margin: 0px; padding: 0px; cursor: pointer;"><img src="https://t1.daumcdn.net/cfile/tistory/0222234A510D18D017" width="700" filename="아두이노 PlayMelody CPP파일복사.png" filemime="image/jpeg" style="margin: 0px; padding: 0px; border: 0px; cursor: pointer; max-width: 100%; height: auto;" /></span></span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 12pt;">고다음 자신이 설치해둔 아두이노 폴더&nbsp;(</span><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">저의경우 바탕화면 arduino-1.0.3-windows)</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">arduino-Version-windows\Hardware\arduino\cores\arduino 폴더에 붙여넣기 해줍니다.</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">이렇게 해줬다면 이제부터 새로운 함수인 PlayMelody 함수가 사용이 가능합니다.</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">이 함수는&nbsp;<b style="margin: 0px; padding: 0px;">PlayMelody(pin, notes)</b>&nbsp;로 입력해서 사용 할 수 있고, 멜로디노트의 내용은&nbsp;</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">다음 문구들의 조합으로 멜로디를 만들어 낼 수 있습니다.&nbsp;</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;"><br style="margin: 0px; padding: 0px;" /></span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;">&nbsp;</p>
<div class="txc-textbox" style="margin: 0px; padding: 10px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; border: 1px solid rgb(203, 203, 203); background-color: #ffffff;">
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; pin : 스피커가 연결된 디지털 핀의 번호.</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; notes : 연주를 위한 음표 기호로 구성된 문자열.</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; C : 도</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; D : 레</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; E : 미</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; F : 파</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; G : 솔</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; A : 라</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; B : 시</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; #, + : 반음 올린다.</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; $, - : 반음 내린다.</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; R, P : 쉼표</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; &gt; : 한 옥타브 올린다.</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; &lt; : 한 옥타브 내린다.</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; O : 이어서 나오는 수치로 지정한 옥타브를 선택한다. (초기값은 4)</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; T : 이어서 나오는 수치로 지정한 속도로 연주한다. (초기값은 120)</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; &nbsp; &nbsp; 이때 지정하는 수치는 1분에 연주할 8분 음표의 개수이다.</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; L : 이어서 나오는 수치로 음표나 쉼표의 길이를 지정한다. (초기값은 4)</span></p>
   <p style="padding: 0px; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">&nbsp; &nbsp; . : 음표나 쉼표의 길이를 1.5배 늘인다.</span></p>
   <p style="padding: 0px; clear: none; float: none;">&nbsp;</p>
   </div>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><br style="margin: 0px; padding: 0px;" /></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">더 나아가 스위치가 입력됬을 때 멜로디가 재생되도록 하려면 IF문 즉 조건문로 if(digitalRead(inPin)==1) 일때 동작내용에 PlayMelody함수를 사용하면 된답니다.^</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><br style="margin: 0px; padding: 0px;" /></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 12pt;">말로 여러번 설명하는 것 보다 스케치된 코드를 한번보는게 더 이해가 빠를지도 모를까 싶어서 만들어둔 스케치 중 두금삼 하나 올렸습니다.^</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;">&nbsp;</p>
<div style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-image: url(&quot;https://i1.daumcdn.net/deco/contents/horizontalrule/line03.gif?v=2&quot;); background-position: left center; background-size: initial; background-repeat: repeat-x; background-attachment: scroll; background-origin: initial; background-clip: initial; width: 1110.66px; height: 15px;">
   <hr style="margin: 0px; padding: 0px; border: 0px none black; left: -9999px; position: relative; top: -9999px;" />
   </div>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; text-align: center; clear: none; float: none;"><a href="https://docs.google.com/file/d/0B3TUepjmKjiXY1NZMS1Ha3VBQk0/edit?usp=sharing" target="_blank" style="margin: 0px; padding: 0px; color: #2970a6; text-decoration-line: none; font-size: 9pt; line-height: 1.5;"><img src="https://t1.daumcdn.net/cfile/tistory/20143B4B510D141D13" border="0" style="margin: 0px; padding: 0px; border: 0px;" /></a><span style="margin: 0px; padding: 0px; font-size: 9pt; line-height: 1.5;">&nbsp;<b style="margin: 0px; padding: 0px;"><span style="margin: 0px; padding: 0px; font-size: 12pt;">말할수 없는 비밀&nbsp;</span><span style="margin: 0px; padding: 0px; font-size: 12pt;">두금삼 예제 스케치</span></b></span><span style="margin: 0px; padding: 0px; font-size: 12pt;"><b style="margin: 0px; padding: 0px;">&nbsp;다운로드</b></span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; text-align: center; clear: none; float: none;">&nbsp;</p>
<div style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; background-image: url(&quot;http://i1.daumcdn.net/deco/contents/horizontalrule/line03.gif?v=2&quot;); background-attachment: scroll; width: 692.986px; height: 15px; background-position: 0% 50%; background-repeat: repeat-x;">
   <hr style="margin: 0px; padding: 0px; border: 0px none black; left: -9999px; position: relative; top: -9999px;" />
   </div>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; clear: none; float: none;"><br style="margin: 0px; padding: 0px;" /></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; text-align: center; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;"><b style="margin: 0px; padding: 0px;">ㅎㅎ 저는 3가지 멜로디를 재생해보았습니다.^ 아직 이렇게 까지 만든 분은 없는 것 같네요.</b></span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6; text-align: center; clear: none; float: none;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;"><b style="margin: 0px; padding: 0px;">&nbsp;</b></span></p>
<center style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;"><iframe width="640" height="360" src="https://www.youtube.com/embed/hrKbGdJtfq0?feature=player_detailpage" frameborder="0" allowfullscreen="" style="margin: 0px; padding: 0px;"></iframe></center><center style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;"><br style="margin: 0px; padding: 0px;" /></center>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;">&nbsp;</p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;"><span style="margin: 0px; padding: 0px; font-size: 12pt;">이 곡은 말할수 없는 비밀에서 피아노 배틀을 보셨다면 알수있는 곡 입니다.</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">주인공과 이상한놈(?)이 둘이서 피아노배틀 할 때 마지막 배틀곡을 아두이노로 만들어봤습니다.</span></p>
<p style="padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;"><br style="margin: 0px; padding: 0px;" /></p>
<center style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;"><iframe width="640" height="360" src="https://www.youtube.com/embed/GPul0BBFe9g?feature=player_detailpage" frameborder="0" allowfullscreen="" style="margin: 0px; padding: 0px;"></iframe></center>
<div style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;"><br style="margin: 0px; padding: 0px;" /></div>
<div style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;"><span style="margin: 0px; padding: 0px; font-size: 12pt;">말할 필요도 없는 곡 그냥 들으면 알 수 있습니다.</span><br style="margin: 0px; padding: 0px;" /></div>
<div style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;"><span style="margin: 0px; padding: 0px; font-size: 15.5556px; line-height: 26.6667px;">정말 대중가요를&nbsp;조금도 듣지 않는 사람이라면 모를 수 있습니다. ㅎ</span></div>
<p><br style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;" /></p>
<center style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;"><iframe width="640" height="360" src="https://www.youtube.com/embed/Xea9907qe5w?feature=player_detailpage" frameborder="0" allowfullscreen="" style="margin: 0px; padding: 0px;"></iframe></center><center style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;"></center>
<p><br style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;" /><br style="margin: 0px; padding: 0px; color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;" /><span style="color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;">출처:&nbsp;</span><a href="https://binworld.kr/27" style="margin: 0px; padding: 0px; color: #2970a6; text-decoration-line: none; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;" target="_blank">https://binworld.kr/27</a><span style="color: #555555; font-family: Verdana, NanumGothic, &quot;Malgun Gothic&quot;, Gothic, AppleGothic, sans-serif; background-color: #bec3c6;">&nbsp;[BinGoon의 소소한(?) 일상]</span></p>