<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Simple Arduino Music Box: Envelopes</title><link>/members-area/personalblogs/b/blog/posts/simple-arduino-music-box-envelopes</link><description>Simple Music Maker Enter Your Electronics &amp;amp; Design Project for Your Chance to Win a Fog Machine and a $100 Shopping Cart! Back to The Project14 homepage Project14 Home Monthly Themes Monthly Theme Poll Where, like a sweet melodious bird, it sung...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Simple Arduino Music Box: Envelopes</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/simple-arduino-music-box-envelopes</link><pubDate>Fri, 01 Jun 2018 09:16:48 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:4f5e7622-7aff-4e22-8369-9c69da1602ee</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;If you want to use the assembler instruction, here’s a series of tutorials to inline some instructions in the C++ code&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="https://ucexperiment.wordpress.com/2016/03/04/arduino-inline-assembly-tutorial-1/" rel="nofollow ugc noopener" target="_blank"&gt;https://ucexperiment.wordpress.com/2016/03/04/arduino-inline-assembly-tutorial-1/&lt;/a&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4899&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Simple Arduino Music Box: Envelopes</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/simple-arduino-music-box-envelopes</link><pubDate>Thu, 31 May 2018 20:50:23 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:4f5e7622-7aff-4e22-8369-9c69da1602ee</guid><dc:creator>mcb1</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Well done.&lt;/p&gt;&lt;p&gt;I&amp;#39;d heard they can play music, but never really tried it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Looks like I need to one day .. &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-4f5e7622-7aff-4e22-8369-9c69da1602ee/contentimage_5F00_3.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Mark&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4899&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Simple Arduino Music Box: Envelopes</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/simple-arduino-music-box-envelopes</link><pubDate>Thu, 31 May 2018 14:27:07 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:4f5e7622-7aff-4e22-8369-9c69da1602ee</guid><dc:creator>gecoz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Jon,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Great work! Listening to your Yankee Doodle brings back memories of the many hours (days) spent figuring out the best values for the Attack-Decay-Sustain-Release (ADSR) data, to be used to program the voices of the 6581 SID on my C-64 (a lifetime ago), to get the sounds needed for my sprites&amp;#39; animation! &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-4f5e7622-7aff-4e22-8369-9c69da1602ee/contentimage_5F00_1.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Compilers are pretty smart things, and most of the time they optimise the code the way we expect them to, like in your case for the signed 8-bit, unsigned 8-bit multiplication. But even when they have a mind of their own, you can still give them a &amp;quot;gentle nudge&amp;quot;, by using the &lt;strong&gt;asm&lt;/strong&gt; inline function inside your C code (as long as you are using a gcc-based compiler - with Arduino IDE you got this covered, as it uses avr-gcc), and write the right assembler code yourself.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Fabio&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4899&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Simple Arduino Music Box: Envelopes</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/simple-arduino-music-box-envelopes</link><pubDate>Thu, 31 May 2018 14:21:28 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:4f5e7622-7aff-4e22-8369-9c69da1602ee</guid><dc:creator>shabaz</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;It sounds really good compared to some toys! I see what you mean about the faint noise, although it could easily be assumed to be mechanical or motor-related noise in a toy : )&lt;/p&gt;&lt;p&gt;Your work reminded me of this: &lt;a class="jive-link-blog-small" href="/products/devtools/single-board-computers/b/blog/posts/sound-synthesis-and-the-billion-dollar-paper"&gt;Sound Synthesis and the Billion Dollar Paper&lt;/a&gt; &lt;/p&gt;&lt;p&gt;I had a fun time working on that, but I had it way easier with a BeagleBone Black, i.e. not memory/processor constrained. I don&amp;#39;t know if it is possible, but if anyone can pull off FM synthesis on the Arduino it is probably you.&lt;/p&gt;&lt;p&gt;Awesome work on this Arduino project series : )&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4899&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Simple Arduino Music Box: Envelopes</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/simple-arduino-music-box-envelopes</link><pubDate>Thu, 31 May 2018 14:05:34 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:4f5e7622-7aff-4e22-8369-9c69da1602ee</guid><dc:creator>genebren</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Jon,&lt;/p&gt;&lt;p&gt;Nice update on your project.&amp;nbsp; Electronic music is a very interesting field, as it can encompass so much math, electronics and physics.&amp;nbsp; I have been interested in electronic music since I started in electronics.&amp;nbsp; One of my first high projects was to build a music synthesizer, based on a &amp;#39;Popular Electronics&amp;#39; article back in the early 70&amp;#39;s.&amp;nbsp; Your envelope experiments took me right back to those days.&amp;nbsp; Thanks for the trip down memory lane.&lt;/p&gt;&lt;p&gt;Gene&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=4899&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>