{"id":221,"date":"2012-03-01T12:05:11","date_gmt":"2012-03-01T02:35:11","guid":{"rendered":"https:\/\/ale.chenonetta.com\/blog\/?p=221"},"modified":"2015-05-08T14:00:00","modified_gmt":"2015-05-08T04:30:00","slug":"in-accord","status":"publish","type":"post","link":"https:\/\/ale.chenonetta.com\/blog\/2012\/03\/in-accord\/","title":{"rendered":"In Accord"},"content":{"rendered":"<p>[Edit 8th May 2015: I&#8217;ve been alerted to the fact that in Windows the audio sounds decidedly piano-like. This is not intentional! I will see if I can fix this at a later date.]<\/p>\n<p>Well March Blog <del>Badness<\/del> Madness begins today! This challenge, having snuck up on me, has left me racking my brain for ideas of what to post. This time I have no weekly classes to guarantee me at least <em>something<\/em> to post each week (not that I did take advantage of said classes in order to put together posting material&#8230;) so I need to come up with ideas. Ideas of March.<\/p>\n<p>Anyhoo, let&#8217;s start by discussing a coding thing I worked on last year. A prototype Accordion emulator written in Java<\/p>\n<p>Screenshot below, you can download the program <a href=\"https:\/\/ale.chenonetta.com\/stuff\/AccordionIng.jar\">here<\/a>. (Requires Java).<\/p>\n<p><a href=\"https:\/\/ale.chenonetta.com\/blog\/wp-content\/uploads\/2012\/03\/accordion_screenshot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-222\" title=\"accordion_screenshot\" src=\"https:\/\/ale.chenonetta.com\/blog\/wp-content\/uploads\/2012\/03\/accordion_screenshot.png\" alt=\"\" width=\"406\" height=\"756\" srcset=\"https:\/\/ale.chenonetta.com\/blog\/wp-content\/uploads\/2012\/03\/accordion_screenshot.png 406w, https:\/\/ale.chenonetta.com\/blog\/wp-content\/uploads\/2012\/03\/accordion_screenshot-161x300.png 161w\" sizes=\"auto, (max-width: 406px) 100vw, 406px\" \/><\/a><\/p>\n<p>This program started as a simple attempt to generate a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Stradella_bass_system\">Stradella<\/a> button map that I could refer to while playing the piano accordion. I wanted to draw up my own as a bit of fun in remembering my music theory (each row is a perfect fifth interval from the one below it). After some annoying attempts to draw the thing up by hand, then some fiddling around in Photoshop, I concluded that it&#8217;d be faster to write a program to generate the thing for me.<\/p>\n<p>Once I&#8217;d done that, I decided it&#8217;d be fun to make the buttons play notes when they were pressed. Things snowballed from there.<\/p>\n<p>Inspired by <a href=\"http:\/\/code.google.com\/p\/melodeon\/\">a program<\/a> I&#8217;d spotted a few years ago I realised that I could use a keyboard with the program and could map a number of keyboard keys quite easily to the bass button keys as both key layouts contain diagonal rows. Quite fortunately, a standard keyboard should offer 12 rows and four columns of keys allowing for every note in a scale to be represented in my emulator. Although the focus of the program is on the bass keys, I added in a section of the piano keyboard as well to allow for a bit of experimentation with melody and bass.<\/p>\n<p>Finally, I flipped the keyboards so that they correspond more intuitively to what a player would expect to see while playing, as the buttons face away from the player. This also became handy for when I wanted to practice accordion and didn&#8217;t have a mirror handy to check my hand placements \ud83d\ude42<\/p>\n<p>As you can tell I&#8217;ve had a few changes of heart in naming this program &#8211; it started as <em>AccordionIng<\/em> which naturally became <em>Accordin&#8217;<\/em>. I&#8217;ve started thinking of it as<em> In Accord<\/em> lately, not that I&#8217;ve been really thinking about it lately. Other people tend to just call it <em><a href=\"http:\/\/www.phobe.com\/sfi\/accordion.html\">Accordion Hero<\/a>.<\/em> One day I&#8217;d like to turn this into something like an &#8220;Accordion Hero&#8221; type game or a music tutor. That would probably call for a rewrite. For now, I&#8217;m quite pleased that it allows me to practice with my headphones in and not bothering other people.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[Edit 8th May 2015: I&#8217;ve been alerted to the fact that in Windows the audio sounds decidedly piano-like. This is not intentional! I will see if I can fix this at a later date.] Well March Blog Badness Madness begins today! This challenge, having snuck up on me, has left me racking my brain for &#8230; <a class=\"more-link\" href=\"https:\/\/ale.chenonetta.com\/blog\/2012\/03\/in-accord\/\"><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[54,101],"tags":[102,53],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-admin","4":"post-221","6":"format-standard","7":"category-code-2","8":"category-music","9":"post_tag-accordion","10":"post_tag-java"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/posts\/221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/comments?post=221"}],"version-history":[{"count":0,"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/posts\/221\/revisions"}],"wp:attachment":[{"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/media?parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/categories?post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ale.chenonetta.com\/blog\/wp-json\/wp\/v2\/tags?post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}