{"id":1808,"date":"2021-10-27T08:13:14","date_gmt":"2021-10-27T07:13:14","guid":{"rendered":"https:\/\/ofalcao.pt\/blog\/?p=1808"},"modified":"2021-10-27T09:44:51","modified_gmt":"2021-10-27T08:44:51","slug":"i-said-it-was-addictive","status":"publish","type":"post","link":"https:\/\/ofalcao.pt\/blog\/2021\/i-said-it-was-addictive","title":{"rendered":"I said it was addictive"},"content":{"rendered":"<div class=\"seriesmeta\">This post is part 1 of 3 of \u00a0<a href=\"https:\/\/ofalcao.pt\/blog\/series\/the-mindy-pythons-confined-band\" class=\"series-369\" title=\"The Mindy Python's Confined Band\">The Mindy Python's Confined Band<\/a><\/div>\n<p>Well&#8230; since<a href=\"https:\/\/ofalcao.pt\/blog\/2021\/lego-midi-percussion-toolkit\" data-type=\"URL\" data-id=\"https:\/\/ofalcao.pt\/blog\/2021\/lego-midi-percussion-toolkit\"> last post <\/a>things got wild as usual<\/p>\n\n\n\n<p>Yes, a simple bass would be great. And yes, the metallophone\/glockenspiel could be perfected. And yes, most bands use more than 4 percussion instruments in their musics so the Percussion Kit could be extended a bit&#8230; and since some MIDI files include lyrics on a metadata track why not trying Text To Speech  and have a singer? And what about that last year funny finding of doing music with pneumatics valves?<\/p>\n\n\n\n<p>So The Mindy Python&#8217;s Confined Circus band has born.<\/p>\n\n\n\n<p>And also yes, the software part is getting complex day after day. Thank god for open source and search engines.<\/p>\n\n\n\n<p>So after having a basic 4-intrument Percussion Kit sorted out I decided to try a LEGO one-string instrument. Nothing fancy, just the basics: just a string and a resonance box:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"LEGO string instrument v0.0.1\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/_XYz_C4QRy8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>It worked so I kept improving it&#8230; added an arm (neck), a longer string, some gear to adjust the tension&#8230; and got something that sounded on the bass range:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"LEGO bass guitar v1.0.0\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/KnzS_EcAikM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Then I reinforced the whole thing so I could play without dismantling it:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"LEGO Bass Guitar v1.0.1\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/mB1GGnTend4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>at this stage I was using a 300 cm Technic string, folded in two and twisted to increase the weight (weight, tension and length decide the note we get).<\/p>\n\n\n\n<p>I wanted a slightly lower pitch and also a fret board with enough precision to mark 8 to 12 tones so I decided to increase the neck a bit but had to reinforce it a lot because tension was already too much. I ended with a 111 cm fret length:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"LEGO Bass Guitar v2.0.0\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/rMcriQVJcDI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Another advantage of such a long neck was having enough space to add some motors.  So with a Technic Control+ hub I could have 1 motor to strum the string and 3 motors to press the string against the fret board:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"LEGO Bass Guitar v2.1.0 - MIDI + 4 notes\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/alZliL0o9pM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>I chose E, G, A and C because those were the notes used on Queen&#8217;s &#8220;Another one bites the dust&#8217;.<\/p>\n\n\n\n<p>The code part shares most of the code of the Percussion Kit except that for the bass I don&#8217;t just map each note to a single motor action, I need to store on the hub the current state of the &#8220;fingers&#8221; to move the necessary ones for each new note command (for instance: if the bass is instructed to play &#8216;C&#8217; it lowers the finger on the &#8216;C&#8217; fret&#8230; if another &#8216;C&#8217; follows, there is no need to move the finger but if it is a lower pitch note (like &#8216;E&#8217;) it needs to move the &#8216;C&#8217; finger up and move the &#8216;E&#8217; finger down, wait a bit for the finger to reach position and then strum the string.<\/p>\n\n\n\n<p>With this robotic bass I am still facing some issues while strumming the string&#8230; it doesn&#8217;t sound the same as when using my fingers&#8230; and since I don&#8217;t know how to play a bass, that means a lot. I already tried hammering it instead but no luck&#8230; will probably need to find a mechanical design that moves the pick in a more complex way.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"seriesmeta\">This post is part 1  of 3 of \u00a0<a href=\"https:\/\/ofalcao.pt\/blog\/series\/the-mindy-pythons-confined-band\" class=\"series-369\" title=\"The Mindy Python's Confined Band\">The Mindy Python's Confined Band<\/a><\/div><p>Well&#8230; since last post things got wild as usual Yes, a simple bass would be great. And yes, the metallophone\/glockenspiel could be perfected. And yes, most bands use more than 4 percussion instruments in their musics so the Percussion Kit could be extended a bit&#8230; and since some MIDI files include lyrics on a metadata &hellip; <a href=\"https:\/\/ofalcao.pt\/blog\/2021\/i-said-it-was-addictive\" class=\"more-link\">Continuar a ler<span class=\"screen-reader-text\"> &#8220;I said it was addictive&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[],"series":[369],"class_list":["post-1808","post","type-post","status-publish","format-standard","hentry","category-sem-categoria","series-the-mindy-pythons-confined-band"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2Mhyv-ta","_links":{"self":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/1808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/comments?post=1808"}],"version-history":[{"count":0,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/1808\/revisions"}],"wp:attachment":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/media?parent=1808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/categories?post=1808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/tags?post=1808"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/series?post=1808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}