{"id":4419,"date":"2022-02-11T11:50:21","date_gmt":"2022-02-11T10:50:21","guid":{"rendered":"https:\/\/www.pschatzmann.ch\/home\/?p=4419"},"modified":"2022-02-11T15:33:22","modified_gmt":"2022-02-11T14:33:22","slug":"maximilian-dsp-on-the-esp32","status":"publish","type":"post","link":"https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/","title":{"rendered":"Maximilian DSP on the Arduino ESP32 ?"},"content":{"rendered":"<p><a href=\"https:\/\/www.pschatzmann.ch\/home\/2020\/05\/22\/synthesizer-for-the-esp32\/\">Quite some time<\/a> ago I have identified <a href=\"https:\/\/bestofcpp.com\/repo\/micknoise-Maximilian-cpp-audio\">Maximilian<\/a> as interesting tool which can be used to implement <strong>synthezisers<\/strong>. Maximilian is a <strong>cross-platform and multi-target audio synthesis and signal processing library<\/strong>. So I was wondering if it is possible to use it on Arduino based Microcontrollers.<\/p>\n<p>In the meantime <a href=\"https:\/\/github.com\/pschatzmann\/Maximilian\">the adapted library<\/a> is compiling after some slight changes. After that I started to extend my <a href=\"https:\/\/github.com\/pschatzmann\/arduino-audio-tools\">Arduino Audio Tools<\/a> to provide an nice integration and a first sine test sound generator is working as well.<\/p>\n<h2>Arduino Sketch<\/h2>\n<p>Here is the example that I have used for my first tests. It is using the AudioKitStream as output. Naturally you can change this to any other supported output stream (e.g. I2SStream).<\/p>\n<pre><code>#include \"AudioTools.h\"\n#include \"AudioLibs\/MaximilianDSP.h\"\n#include \"AudioLibs\/AudioKit.h\"\n\n\/\/ Define output\nAudioKitStream out;\nMaximilian maximilian(out);\n\n\/\/This shows how the fundamental building block of digital audio - the sine wave.\nmaxiOsc mySine;\/\/One oscillator - can be called anything. Can be any of the available waveforms.\n\nvoid setup() {\/\/some inits\n  \/\/ setup logging\n  Serial.begin(115200);\n  AudioLogger::instance().begin(Serial, AudioLogger::Info);\n  \/\/ setup Aduio output\n  auto cfg = out.defaultConfig(TX_MODE);\n  out.begin(cfg);\n  maximilian.begin(cfg);\n}\n\nvoid play(double *output) {\n    output[0]=mySine.sinewave(440);\n    output[1]=output[0];\n}\n\n\/\/ Arduino loop\nvoid loop() {\n    maximilian.copy();\n}\n<\/code><\/pre>\n<p>A complete set of converted examples can be found on <a href=\"https:\/\/github.com\/pschatzmann\/arduino-audio-tools\/tree\/main\/examples\/examples-maximilian\">Github<\/a>. However, please note that not all examples have been tested yet&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quite some time ago I have identified Maximilian as interesting tool which can be used to implement synthezisers. Maximilian is a cross-platform and multi-target audio synthesis and signal processing library. So I was wondering if it is possible to use it on Arduino based Microcontrollers. In the meantime the adapted [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[20,22],"tags":[28,26],"class_list":["post-4419","post","type-post","status-publish","format-standard","hentry","category-arduino","category-machine-sound","tag-esp32audiokit","tag-synthesizer"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Maximilian DSP on the Arduino ESP32 ? - Phil Schatzmann<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Maximilian DSP on the Arduino ESP32 ? - Phil Schatzmann\" \/>\n<meta property=\"og:description\" content=\"Quite some time ago I have identified Maximilian as interesting tool which can be used to implement synthezisers. Maximilian is a cross-platform and multi-target audio synthesis and signal processing library. So I was wondering if it is possible to use it on Arduino based Microcontrollers. In the meantime the adapted [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/\" \/>\n<meta property=\"og:site_name\" content=\"Phil Schatzmann\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-11T10:50:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-11T14:33:22+00:00\" \/>\n<meta name=\"author\" content=\"pschatzmann\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pschatzmann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/02\\\/11\\\/maximilian-dsp-on-the-esp32\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/02\\\/11\\\/maximilian-dsp-on-the-esp32\\\/\"},\"author\":{\"name\":\"pschatzmann\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"headline\":\"Maximilian DSP on the Arduino ESP32 ?\",\"datePublished\":\"2022-02-11T10:50:21+00:00\",\"dateModified\":\"2022-02-11T14:33:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/02\\\/11\\\/maximilian-dsp-on-the-esp32\\\/\"},\"wordCount\":147,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"keywords\":[\"ESP32AudioKit\",\"Synthesizer\"],\"articleSection\":[\"Arduino\",\"Machine Sound\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/02\\\/11\\\/maximilian-dsp-on-the-esp32\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/02\\\/11\\\/maximilian-dsp-on-the-esp32\\\/\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/02\\\/11\\\/maximilian-dsp-on-the-esp32\\\/\",\"name\":\"Maximilian DSP on the Arduino ESP32 ? - Phil Schatzmann\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\"},\"datePublished\":\"2022-02-11T10:50:21+00:00\",\"dateModified\":\"2022-02-11T14:33:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/02\\\/11\\\/maximilian-dsp-on-the-esp32\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/02\\\/11\\\/maximilian-dsp-on-the-esp32\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2022\\\/02\\\/11\\\/maximilian-dsp-on-the-esp32\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Maximilian DSP on the Arduino ESP32 ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\",\"name\":\"Phil Schatzmann Consulting\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\",\"name\":\"pschatzmann\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"width\":305,\"height\":305,\"caption\":\"pschatzmann\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Maximilian DSP on the Arduino ESP32 ? - Phil Schatzmann","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/","og_locale":"en_US","og_type":"article","og_title":"Maximilian DSP on the Arduino ESP32 ? - Phil Schatzmann","og_description":"Quite some time ago I have identified Maximilian as interesting tool which can be used to implement synthezisers. Maximilian is a cross-platform and multi-target audio synthesis and signal processing library. So I was wondering if it is possible to use it on Arduino based Microcontrollers. In the meantime the adapted [&hellip;]","og_url":"https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/","og_site_name":"Phil Schatzmann","article_published_time":"2022-02-11T10:50:21+00:00","article_modified_time":"2022-02-11T14:33:22+00:00","author":"pschatzmann","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pschatzmann","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/#article","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/"},"author":{"name":"pschatzmann","@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"headline":"Maximilian DSP on the Arduino ESP32 ?","datePublished":"2022-02-11T10:50:21+00:00","dateModified":"2022-02-11T14:33:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/"},"wordCount":147,"commentCount":2,"publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"keywords":["ESP32AudioKit","Synthesizer"],"articleSection":["Arduino","Machine Sound"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/","url":"https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/","name":"Maximilian DSP on the Arduino ESP32 ? - Phil Schatzmann","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#website"},"datePublished":"2022-02-11T10:50:21+00:00","dateModified":"2022-02-11T14:33:22+00:00","breadcrumb":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pschatzmann.ch\/home\/2022\/02\/11\/maximilian-dsp-on-the-esp32\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pschatzmann.ch\/home\/"},{"@type":"ListItem","position":2,"name":"Maximilian DSP on the Arduino ESP32 ?"}]},{"@type":"WebSite","@id":"https:\/\/www.pschatzmann.ch\/home\/#website","url":"https:\/\/www.pschatzmann.ch\/home\/","name":"Phil Schatzmann Consulting","description":"","publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pschatzmann.ch\/home\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1","name":"pschatzmann","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","width":305,"height":305,"caption":"pschatzmann"},"logo":{"@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png"}}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/4419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/comments?post=4419"}],"version-history":[{"count":10,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/4419\/revisions"}],"predecessor-version":[{"id":4429,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/4419\/revisions\/4429"}],"wp:attachment":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media?parent=4419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/categories?post=4419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/tags?post=4419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}