{"id":386,"date":"2022-02-18T21:23:10","date_gmt":"2022-02-18T21:23:10","guid":{"rendered":"https:\/\/doctea.co.uk\/blog\/?page_id=386"},"modified":"2022-02-18T21:23:10","modified_gmt":"2022-02-18T21:23:10","slug":"arturia-beatstep-problems-receiving-midi-data-and-clock-with-arduino-usb_host_shield_2-0-library","status":"publish","type":"page","link":"https:\/\/doctea.co.uk\/blog\/arturia-beatstep-problems-receiving-midi-data-and-clock-with-arduino-usb_host_shield_2-0-library\/","title":{"rendered":"Arturia Beatstep problems receiving MIDI data and clock with Arduino USB_Host_Shield_2.0 library"},"content":{"rendered":"\n<p>Got a gig coming up and wanted to avoid using my entire <a href=\"https:\/\/github.com\/doctea\/drum2musocv\/\">drum2musocv<\/a> system.  &#8220;I know&#8221;, I thought, &#8220;I&#8217;ll use that <a href=\"https:\/\/uk.banggood.com\/USB-Host-Shield-Compatible-For-Google-Android-ADK-Support-U-NO-MEGA-Module-p-1384907.html\" data-type=\"URL\" data-id=\"https:\/\/uk.banggood.com\/USB-Host-Shield-Compatible-For-Google-Android-ADK-Support-U-NO-MEGA-Module-p-1384907.html\">Arduino USB host shield<\/a> that I&#8217;ve got lying around to make a simple device to sync my Arturia Beatstep and add some CV clock pulse outs, too.  Should be easy!&#8221;<\/p>\n\n\n\n<p>But after getting the USB Host Shield working (eventually), I found that the Beatstep wasn&#8217;t receiving any data, even though the library was detecting and identifying it perfectly.  After asking on Facebook and on a thread with similar symptoms (<a href=\"https:\/\/github.com\/YuuichiAkagawa\/USBH_MIDI\/issues\/73\">https:\/\/github.com\/YuuichiAkagawa\/USBH_MIDI\/issues\/73<\/a>) and applying the two-line fix mentioned there, I was getting MIDI notes and CC info transferring both ways, but still no MIDI clock.<\/p>\n\n\n\n<p>Turns out that this is already solved in a pull request to the USB Host Shield library that is waiting to be merged into release: <a href=\"https:\/\/github.com\/felis\/USB_Host_Shield_2.0\/pull\/438\">https:\/\/github.com\/felis\/USB_Host_Shield_2.0\/pull\/438<\/a><\/p>\n\n\n\n<p>Since I couldn&#8217;t find any mention of this problem in my Googlings, I thought I&#8217;d post this, in case it helps anyone else who runs into the same problem that I did.<\/p>\n\n\n\n<p>Quick instructions for anyone who needs to patch their library:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>cd libraries\/USB_Host_Shield_2.0<\/p><p>wget&nbsp;<a href=\"https:\/\/patch-diff.githubusercontent.com\/raw\/felis\/USB_Host_Shield_2.0\/pull\/438.patch\">https:\/\/patch-diff.githubusercontent.com\/raw\/felis\/USB_Host_Shield_2.0\/pull\/438.patch<\/a><\/p><p>patch -p1 &lt; 438.patch<\/p><\/blockquote>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Got a gig coming up and wanted to avoid using my entire drum2musocv system. &#8220;I know&#8221;, I thought, &#8220;I&#8217;ll use that Arduino USB host shield that I&#8217;ve got lying around to make a simple device to sync my Arturia Beatstep and add some CV clock pulse outs, too. Should be easy!&#8221; But after getting the USB Host Shield working (eventually), I found that the Beatstep wasn&#8217;t receiving any data, even though the library was detecting and identifying it perfectly. After asking on Facebook and on a thread with similar symptoms (https:\/\/github.com\/YuuichiAkagawa\/USBH_MIDI\/issues\/73) and applying the two-line fix mentioned there, I was getting MIDI notes and CC info transferring both ways, but still no MIDI clock. Turns out that this is already solved in a pull request to the USB Host Shield library that is waiting to be merged into release: https:\/\/github.com\/felis\/USB_Host_Shield_2.0\/pull\/438 Since I couldn&#8217;t find any mention of this problem in my Googlings, I thought I&#8217;d post this, in case it helps anyone else who runs into the same problem that I did. Quick instructions for anyone who needs to patch their library: cd libraries\/USB_Host_Shield_2.0 wget&nbsp;https:\/\/patch-diff.githubusercontent.com\/raw\/felis\/USB_Host_Shield_2.0\/pull\/438.patch patch -p1 &lt; 438.patch<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[],"tags":[61,60,63,94],"class_list":["post-386","page","type-page","status-publish","hentry","tag-arduino","tag-code","tag-midi","tag-usb"],"_links":{"self":[{"href":"https:\/\/doctea.co.uk\/blog\/wp-json\/wp\/v2\/pages\/386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doctea.co.uk\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doctea.co.uk\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doctea.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/doctea.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=386"}],"version-history":[{"count":1,"href":"https:\/\/doctea.co.uk\/blog\/wp-json\/wp\/v2\/pages\/386\/revisions"}],"predecessor-version":[{"id":387,"href":"https:\/\/doctea.co.uk\/blog\/wp-json\/wp\/v2\/pages\/386\/revisions\/387"}],"wp:attachment":[{"href":"https:\/\/doctea.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doctea.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doctea.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}