{"id":3138,"date":"2020-04-15T23:37:52","date_gmt":"2020-04-15T14:37:52","guid":{"rendered":"https:\/\/mindstorms.tokyo\/?page_id=3138"},"modified":"2020-04-15T23:46:23","modified_gmt":"2020-04-15T14:46:23","slug":"sound","status":"publish","type":"page","link":"https:\/\/mindstorms.tokyo\/en\/action\/sound\/","title":{"rendered":"Sound Block\u3010How to use MINDSTORMS\u3011"},"content":{"rendered":"\n<a href=\"https:\/\/amzn.to\/3aRNDiS\" target=\"_blank\" rel=\"noopener noreferrer\">\n<img src=\"https:\/\/m.media-amazon.com\/images\/S\/abs-image-upload-na\/e\/AmazonStores\/ATVPDKIKX0DER\/0b0d850b84aa310ad38fa5c65f7a7337.w3000.h600._CR0%2C0%2C3000%2C600_SX1920_.jpg\" alt=\"LEGO\u30c6\u30af\u30cb\u30c3\u30af\" title=\"LEGO\u30c6\u30af\u30cb\u30c3\u30af\" border=\"0\">\n<\/a>\n\n\n\n<h2 style=\"text-align:center\" class=\"h2\">LEGO \u3010MINDSTORMS\u3011EV3<\/h2>\n\n\n\n<h1>Sound Block<\/h1>\n\n\n\n<div>\n<h4 style=\"text-align:left\" id=\"area1\" class=\"h4\">Sound Block\u3000- Overview -\u3000<\/h4>\n<br>\n<center>\n\n<div class=\"box1\">\n <div class=\"sel1\">\n  <select name=\"channel\" onchange=\"imgChange(this)\">\n   <option value=\"4\" hidden=\"\">Select the mode<\/option>\n   <option value=\"4\">Overview<\/option>\n   <option value=\"0\">Stop<\/option>\n   <option value=\"1\">Play File<\/option>\n   <option value=\"2\">Play Tone<\/option>\n   <option value=\"3\">Play Note<\/option>\n  <\/select>\n <\/div>\n\n<img src=\"https:\/\/mindstorms.tokyo\/wp-content\/uploads\/sound_overview_EN-e1586961784969.png\" name=\"imgsmp\">\n\n<br><br>\n\n\n\n<div>\n<div class=\"ad_pc\">\n<iframe src=\"\/\/rcm-na.amazon-adsystem.com\/e\/cm?o=1&amp;p=26&amp;l=ur1&amp;category=amazonhomepage&amp;f=ifr&amp;linkID=da254e3c8b5ee3714127a5aa4677ef37&amp;t=hitorigotokun-20&amp;tracking_id=hitorigotokun-20\" width=\"468\" height=\"60\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"><\/iframe>\n<\/div>\n\n<div class=\"ad_sp\">\n<iframe src=\"\/\/rcm-na.amazon-adsystem.com\/e\/cm?o=1&amp;p=42&amp;l=ur1&amp;category=amazonhomepage&amp;f=ifr&amp;linkID=aaf6b36c0aa3345cae58c3e7f77b3541&amp;t=hitorigotokun-20&amp;tracking_id=hitorigotokun-20\" width=\"234\" height=\"60\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"><\/iframe>\n<\/div>\n<\/div>\n\n\n\n<\/div>\n<\/center>\n<br>\n\n<div class=\"box2\">\n    <div id=\"area2\"><\/div>\n    <div id=\"area3\">The Sound block makes sound using the speaker inside the EV3 Brick. You can play pre-recorded sound files or specify a musical note or tone.<\/div>\n    <div id=\"area4\">\u3000<\/div>\n    <div id=\"area5\">Select which kind of sound you want to make using the Mode Selector. After you have selected the mode, you can choose values for the inputs. The inputs available will change depending on the mode.<\/div>\n    <div id=\"area6\">\u3000<\/div>\n    <div id=\"area7\">[Modes] : Play File , Play Tone , Play Note , Stop<\/div>\n    <div id=\"area8\"><\/div>\n    <div id=\"area9\"><\/div>\n    <div id=\"area10\"><\/div>\n    <div id=\"area11\"><\/div>\n    <div id=\"area12\"><\/div>\n    <div id=\"area13\"><\/div>\n    <div id=\"area14\"><\/div>\n    <div id=\"area15\"><\/div>\n    <div id=\"area16\"><\/div>\n<\/div>\n\n<script language=\"JavaScript\">\n<!--\n\nimg0=new Image()\nimg0.src=\"https:\/\/talk-to-myself.com\/wp-content\/uploads\/2019\/05\/sound_0.png\"\nimg1=new Image()\nimg1.src=\"https:\/\/talk-to-myself.com\/wp-content\/uploads\/2019\/05\/sound_1.png\"\nimg2=new Image()\nimg2.src=\"https:\/\/talk-to-myself.com\/wp-content\/uploads\/2019\/05\/sound_2.png\"\nimg3=new Image()\nimg3.src=\"https:\/\/talk-to-myself.com\/wp-content\/uploads\/2019\/05\/sound_3.png\"\nimg4=new Image()\nimg4.src=\"https:\/\/mindstorms.tokyo\/wp-content\/uploads\/sound_overview_EN-e1586961784969.png\"\n\nfunction imgChange(parts){\nfname=parts.options[parts.selectedIndex].value;\n\n    \n\nif(fname==0){\n  document.imgsmp.src=img0.src;\n  document.getElementById(\"area1\").innerText = \"Stop\";\n  document.getElementById(\"area2\").innerText = \"The Stop mode stops any sound that is currently being played by the EV3 Brick.\";\n  document.getElementById(\"area3\").innerText = \"This is usually used to stop a sound that was started earlier in the program by a Sound Block that didn\u2019t wait for the sound to complete.\";\n  document.getElementById(\"area4\").innerText = \"\";\n  document.getElementById(\"area5\").innerText = \"\";\n  document.getElementById(\"area6\").innerText = \"\";\n  document.getElementById(\"area7\").innerText = \"\";\n  document.getElementById(\"area8\").innerText = \"\";\n  document.getElementById(\"area9\").innerText = \"\";\n  document.getElementById(\"area10\").innerText = \"\";\n  document.getElementById(\"area11\").innerText = \"\";\n  document.getElementById(\"area12\").innerText = \"\";\n  document.getElementById(\"area13\").innerText = \"\";\n  document.getElementById(\"area14\").innerText = \"\";\n  document.getElementById(\"area15\").innerText = \"\";\n  document.getElementById(\"area16\").innerText = \"\";\n }\n\nif(fname==1){\n  document.imgsmp.src=img1.src;\n  document.getElementById(\"area1\").innerText = \"Play File\";\n  document.getElementById(\"area2\").innerText = \"The Play File mode plays a pre-recorded sound file.\";\n  document.getElementById(\"area3\").innerText = \"\u3000\";\n  document.getElementById(\"area4\").innerText = \"The File Name input is at the top of the block. It lets you choose from a list of sound effects, spoken words and phrases. The sounds in the \u201cLEGO Sound Files\u201d category are the sound files that are included with the EV3 Software. The sounds listed in the \u201cProject Sounds\u201d category are the sounds that have already been used in your project. This makes it easy to use the same sound multiple times in a program or project.\";\n  document.getElementById(\"area5\").innerText = \"\u3000\";\n  document.getElementById(\"area6\").innerText = \"If you choose \u201cWired\u201d from the File Name input on the top of the block, a File Name input appears in the inputs area of the Sound block. This allows you to supply the name of the sound file with a Data Wire.\";\n  document.getElementById(\"area7\").innerText = \"\u3000\";\n  document.getElementById(\"area8\").innerText = \"Note that you need to add the sound file to your Project first by selecting it in the File Name input.\";\n  document.getElementById(\"area9\").innerText = \"\u3000\";\n  document.getElementById(\"area10\").innerText = \"The Volume input controls how loud the sound will be.\";\n  document.getElementById(\"area11\").innerText = \"\u3000\";\n  document.getElementById(\"area12\").innerText = \"The Play Type input controls whether the block will wait for the sound to finish before the program continues to the next block, and whether the sound will repeat.\";\n  document.getElementById(\"area13\").innerText = \"\u3000\";\n  document.getElementById(\"area14\").innerText = \"[Inputs used] : File Name , Volume , Play Type\";\n  document.getElementById(\"area15\").innerText = \"\u3000\";\n  document.getElementById(\"area16\").innerText = \"\uff0aThe EV3 Brick can only play spoken word sounds that are stored in pre-recorded sound files. The text in the File Name input must be the name of an existing sound file.\";\n }\n\nif(fname==2){\n  document.imgsmp.src=img2.src;\n  document.getElementById(\"area1\").innerText = \"Play Tone\";\n  document.getElementById(\"area2\").innerText = \"The Play Tone mode plays a tone of a specified frequency. The frequency of the tone controls the pitch, in other words, how high or low the sound is.\";\n  document.getElementById(\"area3\").innerText = \"\u3000\";\n  document.getElementById(\"area4\").innerText = \"The Frequency input specifies the frequency of the tone in Hz (cycles per second). You can type a number for the frequency or choose a frequency from the list of standard musical note frequencies.\";\n  document.getElementById(\"area5\").innerText = \"\u3000\";\n  document.getElementById(\"area6\").innerText = \"The Duration input controls how long the tone will last, in seconds.\";\n  document.getElementById(\"area7\").innerText = \"\u3000\";\n  document.getElementById(\"area8\").innerText = \"\uff0aThe tones played by the Play Tone mode sound the same as the musical notes played by the Play Note mode, but you can specify an exact frequency using Play Tone.\";\n  document.getElementById(\"area9\").innerText = \"\u3000\";\n  document.getElementById(\"area10\").innerText = \"The Volume input controls how loud the sound will be.\";\n  document.getElementById(\"area11\").innerText = \"\u3000\";\n  document.getElementById(\"area12\").innerText = \"The Play Type input controls whether the block will wait for the sound to finish before the program continues to the next block, and whether the sound will repeat.\";\n  document.getElementById(\"area13\").innerText = \"\u3000\";\n  document.getElementById(\"area14\").innerText = \"[Inputs used] : Frequency , Duration , Volume , Play Type\";\n  document.getElementById(\"area15\").innerText = \"\";\n  document.getElementById(\"area16\").innerText = \"\";\n }\n\nif(fname==3){\n  document.imgsmp.src=img3.src;\n  document.getElementById(\"area1\").innerText = \"Play Note\";\n  document.getElementById(\"area2\").innerText = \"The Play Note mode plays a musical note.\";\n  document.getElementById(\"area3\").innerText = \"\u3000\";\n  document.getElementById(\"area4\").innerText = \"The Note input lets you choose the note from a piano keyboard control.\";\n  document.getElementById(\"area5\").innerText = \"\u3000\";\n  document.getElementById(\"area6\").innerText = \"The Duration input controls how long the note will last in seconds.\";\n  document.getElementById(\"area7\").innerText = \"\u3000\";\n  document.getElementById(\"area8\").innerText = \"\uff0aYou can use a decimal point in the Duration input to get an exact amount of time, including very short intervals. For example, 0.1 seconds will play the note for one tenth of a second.\";\n  document.getElementById(\"area9\").innerText = \"\u3000\";\n  document.getElementById(\"area10\").innerText = \"The Volume input controls how loud the sound will be.\";\n  document.getElementById(\"area11\").innerText = \"\u3000\";\n  document.getElementById(\"area12\").innerText = \"The Play Type input controls whether the block will wait for the sound to finish before the program continues to the next block, and whether the sound will repeat.\";\n  document.getElementById(\"area13\").innerText = \"\u3000\";\n  document.getElementById(\"area14\").innerText = \"[Inputs used] : Note , Duration , Volume , Play Type\";\n  document.getElementById(\"area15\").innerText = \"\";\n  document.getElementById(\"area16\").innerText = \"\";\n }\n    \nif(fname==4){\n  document.imgsmp.src=img4.src;\n  document.getElementById(\"area1\").innerText = \"Overview\";\n  document.getElementById(\"area2\").innerText = \"The Sound block makes sound using the speaker inside the EV3 Brick. You can play pre-recorded sound files or specify a musical note or tone.\";\n  document.getElementById(\"area3\").innerText = \"\u3000\";\n  document.getElementById(\"area4\").innerText = \"Select which kind of sound you want to make using the Mode Selector. After you have selected the mode, you can choose values for the inputs. The inputs available will change depending on the mode.\";\n  document.getElementById(\"area5\").innerText = \"\u3000\";\n  document.getElementById(\"area6\").innerText = \"[Modes] : Play File , Play Tone , Play Note , Stop\";\n  document.getElementById(\"area7\").innerText = \"\";\n  document.getElementById(\"area8\").innerText = \"\";\n  document.getElementById(\"area9\").innerText = \"\";\n  document.getElementById(\"area10\").innerText = \"\";\n  document.getElementById(\"area11\").innerText = \"\";\n  document.getElementById(\"area12\").innerText = \"\";\n  document.getElementById(\"area13\").innerText = \"\";\n  document.getElementById(\"area14\").innerText = \"\";\n  document.getElementById(\"area15\").innerText = \"\";\n  document.getElementById(\"area16\").innerText = \"\";\n }\n\n\n}\n\n\/\/ -->\n<\/script>\n    \n<\/div>\n<div class=\"veu_socialSet veu_socialSet-position-after veu_contentAddSection\"><script>window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src=\"https:\/\/platform.twitter.com\/widgets.js\";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,\"script\",\"twitter-wjs\"));<\/script><ul><li class=\"sb_facebook sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/www.facebook.com\/sharer.php?src=bm&u=https%3A%2F%2Fmindstorms.tokyo%2Fen%2Faction%2Fsound%2F&amp;t=LEGO%20EV3%20MINDSTORMS%20by%20%E7%8B%AC%E3%82%8A%E8%A8%80%E3%81%8F%E3%82%93\" target=\"_blank\" onclick=\"window.open(this.href,'FBwindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_fb icon_sns\"><\/span><span class=\"sns_txt\">Facebook<\/span><span class=\"veu_count_sns_fb\"><\/span><\/a><\/li><li class=\"sb_twitter sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fmindstorms.tokyo%2Fen%2Faction%2Fsound%2F&amp;text=LEGO%20EV3%20MINDSTORMS%20by%20%E7%8B%AC%E3%82%8A%E8%A8%80%E3%81%8F%E3%82%93\" target=\"_blank\" ><span class=\"vk_icon_w_r_sns_twitter icon_sns\"><\/span><span class=\"sns_txt\">twitter<\/span><\/a><\/li><li class=\"sb_hatena sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/b.hatena.ne.jp\/add?mode=confirm&url=https%3A%2F%2Fmindstorms.tokyo%2Fen%2Faction%2Fsound%2F&amp;title=LEGO%20EV3%20MINDSTORMS%20by%20%E7%8B%AC%E3%82%8A%E8%A8%80%E3%81%8F%E3%82%93\" target=\"_blank\"  onclick=\"window.open(this.href,'Hatenawindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_hatena icon_sns\"><\/span><span class=\"sns_txt\">Hatena<\/span><span class=\"veu_count_sns_hb\"><\/span><\/a><\/li><li class=\"sb_pocket sb_icon\"><a class=\"sb_icon_inner\"  href=\"\/\/getpocket.com\/edit?url=https%3A%2F%2Fmindstorms.tokyo%2Fen%2Faction%2Fsound%2F&title=LEGO%20EV3%20MINDSTORMS%20by%20%E7%8B%AC%E3%82%8A%E8%A8%80%E3%81%8F%E3%82%93\" target=\"_blank\"  onclick=\"window.open(this.href,'Pokcetwindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_pocket icon_sns\"><\/span><span class=\"sns_txt\">Pocket<\/span><span class=\"veu_count_sns_pocket\"><\/span><\/a><\/li><li class=\"sb_copy sb_icon\"><button class=\"copy-button sb_icon_inner\"data-clipboard-text=\"LEGO EV3 MINDSTORMS by \u72ec\u308a\u8a00\u304f\u3093 https:\/\/mindstorms.tokyo\/en\/action\/sound\/\"><span class=\"vk_icon_w_r_sns_copy icon_sns\"><i class=\"fas fa-copy\"><\/i><\/span><span class=\"sns_txt\">Copy<\/span><\/button><\/li><\/ul><\/div><!-- [ \/.socialSet ] -->","protected":false},"excerpt":{"rendered":"<p>MINDSTORMS &#8220;Sound Block&#8221; Explanation<\/p>\n","protected":false},"author":1,"featured_media":2458,"parent":3125,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_locale":"en_US","_original_post":"http:\/\/talk-to-myself.com\/?page_id=1131","vkexunit_cta_each_option":""},"_links":{"self":[{"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/pages\/3138"}],"collection":[{"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/comments?post=3138"}],"version-history":[{"count":4,"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/pages\/3138\/revisions"}],"predecessor-version":[{"id":3144,"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/pages\/3138\/revisions\/3144"}],"up":[{"embeddable":true,"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/pages\/3125"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/media\/2458"}],"wp:attachment":[{"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/media?parent=3138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}