<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mozzi sound synthesis library for Arduino - how to make it work on the Core2]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Has anyone got the Mozzi library to work on the M5Stack Core2? It now has support for ESP32.</p>
<p dir="auto">I can compile Mozzi examples but don't know how to get audio output through the internal speaker.</p>
<p dir="auto">Mozzi: <a href="https://github.com/sensorium/Mozzi" target="_blank" rel="noopener noreferrer nofollow ugc">link</a></p>
<p dir="auto">Any help welcome!</p>
]]></description><link>https://community.m5stack.com/topic/3334/mozzi-sound-synthesis-library-for-arduino-how-to-make-it-work-on-the-core2</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 18:12:20 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3334.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 May 2021 10:39:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Sat, 08 Oct 2022 20:07:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/11555">@rodberry</a> said in <a href="/post/18905">Mozzi sound synthesis library for Arduino - how to make it work on the Core2</a>:</p>
<blockquote>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/9698">@oscillator</a> congratulations Staffan, I'm a year late to the party but just wanted to say this is a lot of fun and I really appreciate the thorough documentation and the very readable code (speaking as a C-phobic beginner programmer).</p>
<p dir="auto">I'm planning to make this into a module for my AE format modular synth. For now, I'll start by just feeding it into a converter but will eventually get the other components organised to make it work nicely in the system with my other modules. At least you have given me a nice wagon to fall off! :)</p>
</blockquote>
<p dir="auto">Cool, I am glad you find it useful! The AE modular seems great.</p>
<p dir="auto">I can also recommend the Daisy Seed, for which I've done a few projects:<br />
<a href="https://www.oscillator.se/opensource/#daisy" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.oscillator.se/opensource/#daisy</a></p>
<p dir="auto">Good luck with your projects -- and your music! :)</p>
]]></description><link>https://community.m5stack.com/post/18909</link><guid isPermaLink="true">https://community.m5stack.com/post/18909</guid><dc:creator><![CDATA[oscillator]]></dc:creator><pubDate>Sat, 08 Oct 2022 20:07:17 GMT</pubDate></item><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Sat, 08 Oct 2022 10:21:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/9698">@oscillator</a> congratulations Staffan, I'm a year late to the party but just wanted to say this is a lot of fun and I really appreciate the thorough documentation and the very readable code (speaking as a C-phobic beginner programmer).</p>
<p dir="auto">I'm planning to make this into a module for my AE format modular synth. For now, I'll start by just feeding it into a converter but will eventually get the other components organised to make it work nicely in the system with my other modules. At least you have given me a nice wagon to fall off! :)</p>
]]></description><link>https://community.m5stack.com/post/18905</link><guid isPermaLink="true">https://community.m5stack.com/post/18905</guid><dc:creator><![CDATA[rodberry]]></dc:creator><pubDate>Sat, 08 Oct 2022 10:21:38 GMT</pubDate></item><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Sun, 19 Sep 2021 14:39:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/7104">@agreedk</a> said in <a href="/post/14901">Mozzi sound synthesis library for Arduino - how to make it work on the Core2</a>:</p>
<blockquote>
<p dir="auto">Great work, got it installed, looks nice, now i just need time to Play with it.</p>
</blockquote>
<p dir="auto">Thank you! :)</p>
<p dir="auto">I've got audio output using the DAC to work now so it is easy to output the sound to a speaker or mixer. The instructions are in the updated PDF manual.</p>
]]></description><link>https://community.m5stack.com/post/14903</link><guid isPermaLink="true">https://community.m5stack.com/post/14903</guid><dc:creator><![CDATA[oscillator]]></dc:creator><pubDate>Sun, 19 Sep 2021 14:39:36 GMT</pubDate></item><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Sun, 19 Sep 2021 12:18:24 GMT]]></title><description><![CDATA[<p dir="auto">Great work, got it installed, looks nice, now i just need time to Play with it.</p>
]]></description><link>https://community.m5stack.com/post/14901</link><guid isPermaLink="true">https://community.m5stack.com/post/14901</guid><dc:creator><![CDATA[AgreeDK]]></dc:creator><pubDate>Sun, 19 Sep 2021 12:18:24 GMT</pubDate></item><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Sat, 18 Sep 2021 19:17:38 GMT]]></title><description><![CDATA[<p dir="auto">The finished project with source code and video demo:<br />
<a href="https://community.m5stack.com/topic/3584/oscpocketm-portable-beat-production-tool-for-the-m5stack-core2">https://community.m5stack.com/topic/3584/oscpocketm-portable-beat-production-tool-for-the-m5stack-core2</a></p>
]]></description><link>https://community.m5stack.com/post/14898</link><guid isPermaLink="true">https://community.m5stack.com/post/14898</guid><dc:creator><![CDATA[oscillator]]></dc:creator><pubDate>Sat, 18 Sep 2021 19:17:38 GMT</pubDate></item><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Thu, 16 Sep 2021 22:22:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/7104">@agreedk</a> said in <a href="/post/14885">Mozzi sound synthesis library for Arduino - how to make it work on the Core2</a>:</p>
<blockquote>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/9698">@oscillator</a> looking forward to try it 👍</p>
</blockquote>
<p dir="auto">Thanks a lot <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/7104">@AgreeDK</a>, just a few more days and it will be finished! :)</p>
]]></description><link>https://community.m5stack.com/post/14886</link><guid isPermaLink="true">https://community.m5stack.com/post/14886</guid><dc:creator><![CDATA[oscillator]]></dc:creator><pubDate>Thu, 16 Sep 2021 22:22:58 GMT</pubDate></item><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Thu, 16 Sep 2021 21:56:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/9698">@oscillator</a> looking forward to try it 👍</p>
]]></description><link>https://community.m5stack.com/post/14885</link><guid isPermaLink="true">https://community.m5stack.com/post/14885</guid><dc:creator><![CDATA[AgreeDK]]></dc:creator><pubDate>Thu, 16 Sep 2021 21:56:59 GMT</pubDate></item><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Thu, 16 Sep 2021 21:15:23 GMT]]></title><description><![CDATA[<p dir="auto">Last thing on the list is data save/load (maybe even MIDI export), sequence copy function, demo, manual. Then I will release the project under a GPL license.</p>
]]></description><link>https://community.m5stack.com/post/14884</link><guid isPermaLink="true">https://community.m5stack.com/post/14884</guid><dc:creator><![CDATA[oscillator]]></dc:creator><pubDate>Thu, 16 Sep 2021 21:15:23 GMT</pubDate></item><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Thu, 16 Sep 2021 21:09:27 GMT]]></title><description><![CDATA[<p dir="auto">Song mode (arranging sequences in programmed order)</p>
<p dir="auto"><img src="/assets/uploads/files/1631826492336-song_editor-resized.jpg" alt="0_1631826490724_song_editor.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">and a primitive though useful mixer for the three synths and all the drum sounds!</p>
<p dir="auto"><img src="/assets/uploads/files/1631826535091-mixer-resized.jpg" alt="0_1631826534107_mixer.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/14883</link><guid isPermaLink="true">https://community.m5stack.com/post/14883</guid><dc:creator><![CDATA[oscillator]]></dc:creator><pubDate>Thu, 16 Sep 2021 21:09:27 GMT</pubDate></item><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Thu, 16 Sep 2021 21:07:07 GMT]]></title><description><![CDATA[<p dir="auto">Drum sound editor<br />
<img src="/assets/uploads/files/1631826405039-drum_sound-resized.jpg" alt="0_1631826403786_drum_sound.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">and drum editor!</p>
<p dir="auto"><img src="/assets/uploads/files/1631826422265-drum_editor-resized.jpg" alt="0_1631826421033_drum_editor.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/14882</link><guid isPermaLink="true">https://community.m5stack.com/post/14882</guid><dc:creator><![CDATA[oscillator]]></dc:creator><pubDate>Thu, 16 Sep 2021 21:07:07 GMT</pubDate></item><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Thu, 16 Sep 2021 21:06:21 GMT]]></title><description><![CDATA[<p dir="auto">Here is the main menu. The engine is running three editable synths and a 5 voice drum machine (kick, snare, hihat open/closed, tom hi/lo, clap/crash).<img src="/assets/uploads/files/1631826374299-main-resized.jpg" alt="0_1631826372496_main.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/14881</link><guid isPermaLink="true">https://community.m5stack.com/post/14881</guid><dc:creator><![CDATA[oscillator]]></dc:creator><pubDate>Thu, 16 Sep 2021 21:06:21 GMT</pubDate></item><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Tue, 14 Sep 2021 13:27:15 GMT]]></title><description><![CDATA[<p dir="auto">And here are the synth sound editor and the piano roll where you enter/edit the notes for the synth.</p>
<p dir="auto"><img src="/assets/uploads/files/1631626025432-demo_syntheditor-resized.jpg" alt="1_1631626023728_demo_syntheditor.jpg" class=" img-fluid img-markdown" /> <img src="/assets/uploads/files/1631626025654-demo_pianoroll-resized.jpg" alt="0_1631626023728_demo_pianoroll.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/14872</link><guid isPermaLink="true">https://community.m5stack.com/post/14872</guid><dc:creator><![CDATA[oscillator]]></dc:creator><pubDate>Tue, 14 Sep 2021 13:27:15 GMT</pubDate></item><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Sun, 12 Sep 2021 10:38:36 GMT]]></title><description><![CDATA[<p dir="auto">So now I've got a drum machine with 6 drum sounds (VA - not samples), and a bass synth up and running.</p>
<p dir="auto">I have created a simple editor for the drum sounds -- on to make the synth note editor and the synth sound editor (it has selectable waveforms, a LPF and an ADSR envelope, plus a 2nd detunable oscillator).</p>
<p dir="auto"><img src="/assets/uploads/files/1631443108672-screenshot_20210912-123357.jpg" alt="0_1631443106619_Screenshot_20210912-123357.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/14866</link><guid isPermaLink="true">https://community.m5stack.com/post/14866</guid><dc:creator><![CDATA[oscillator]]></dc:creator><pubDate>Sun, 12 Sep 2021 10:38:36 GMT</pubDate></item><item><title><![CDATA[Reply to Mozzi sound synthesis library for Arduino - how to make it work on the Core2 on Sat, 11 Sep 2021 18:26:37 GMT]]></title><description><![CDATA[<p dir="auto">OK, so I think I have figured out how to make Mozzi sound through the internal speaker.</p>
<p dir="auto">In AudioConfigESP32.h change these lines to:</p>
<blockquote>
<p dir="auto">// Set output mode<br />
#define ESP32_AUDIO_OUT_MODE PT8211_DAC</p>
</blockquote>
<blockquote>
<p dir="auto">// For external I2S output, only: I2S_PINS<br />
#define ESP32_I2S_BCK_PIN 12<br />
#define ESP32_I2S_WS_PIN 0<br />
#define ESP32_I2S_DATA_PIN 2</p>
</blockquote>
<p dir="auto">(Ref: <a href="https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Core/M5Core2/Arduino/record/record.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Core/M5Core2/Arduino/record/record.ino</a>)<br />
It seems to work, even though the Core2 uses the NS4168 I2S amp.</p>
<p dir="auto">In your code, put this at the top:</p>
<blockquote>
<p dir="auto">#include &lt;M5Core2.h&gt;</p>
</blockquote>
<p dir="auto">obviously, and in the setup():</p>
<blockquote>
<p dir="auto">M5.begin();<br />
M5.Axp.SetSpkEnable(true);</p>
</blockquote>
<p dir="auto">Put</p>
<blockquote>
<p dir="auto">M5.update()</p>
</blockquote>
<p dir="auto">in the updateControl() function.</p>
<p dir="auto">Also, in the Arduino IDE, set PSRAM: Disable.</p>
]]></description><link>https://community.m5stack.com/post/14861</link><guid isPermaLink="true">https://community.m5stack.com/post/14861</guid><dc:creator><![CDATA[oscillator]]></dc:creator><pubDate>Sat, 11 Sep 2021 18:26:37 GMT</pubDate></item></channel></rss>