{"id":5429,"date":"2010-12-24T19:47:16","date_gmt":"2010-12-25T00:47:16","guid":{"rendered":"http:\/\/blog.kenperlin.com\/?p=5429"},"modified":"2010-12-24T19:48:48","modified_gmt":"2010-12-25T00:48:48","slug":"evolved-virtual-keyboards","status":"publish","type":"post","link":"http:\/\/blog.kenperlin.com\/?p=5429","title":{"rendered":"Evolved virtual keyboards"},"content":{"rendered":"<p>Mari&#8217;s comment on yesterday&#8217;s post about the <a href=http:\/\/blog.kenperlin.com\/?p=5413 target=1>Candy colored musical keyboard<\/a> was: &#8220;I typed different words and listened.&#8221;<\/p>\n<p>Which was absolutely brilliant!!!<\/p>\n<p>Today I tried typing different words and phrases into the applet, and listened to the melodies that emerged.  Mostly it sounded more or less like a parody of Sch\u00f6nberg, with &#8220;melodies&#8221; that seemed rather arbitrary.<\/p>\n<p>Then I spent some time searching for words that would produce a strong lilt.  Some words, like &#8220;once&#8221;, had a lovely melody, and occasionally an entire phrase, like &#8220;who am I&#8221;, sound as though it could be the melody for a song with that title.<\/p>\n<p>But for the most part the results just didn&#8217;t add up.  Since my keyboard layout was mapping to the 12 notes of the chromatic somewhat randomly (given the quirkiness of QWERTY), this was to be expected.<\/p>\n<p>But what if we were to map the keys in a way that tried to optimize for mapping words to good melodies?  For example, we could map letters, such as &#8220;s&#8221; or &#8220;d&#8221;, that often occur at the ends of words to the tonic or dominant note of a scale.  And common letter combinations like &#8220;th&#8221; could map to pleasant intervals, such as the major third.<\/p>\n<p>Of course it&#8217;s hard to know, <i>a priori<\/i>, whether a mapping will be good.  So one possibility would be to evolve our keyboard, starting with keys mapped to notes at random.  Then we would have the computer &#8220;type&#8221; a typical text, while we listened for whether interesting melodies emerge.<\/p>\n<p>Then, just as Karl Sims <a href=http:\/\/www.karlsims.com\/evolved-virtual-creatures.html target=1>evolved virtual creatures<\/a> through genetic algorithms, we could incrementally change our mapping in random ways, and always choose the alternative that sounded best.<\/p>\n<p>Maybe I&#8217;ll try something like that. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mari&#8217;s comment on yesterday&#8217;s post about the Candy colored musical keyboard was: &#8220;I typed different words and listened.&#8221; Which was absolutely brilliant!!! Today I tried typing different words and phrases into the applet, and listened to the melodies that emerged. Mostly it sounded more or less like a parody of Sch\u00f6nberg, with &#8220;melodies&#8221; that seemed &hellip; <a href=\"http:\/\/blog.kenperlin.com\/?p=5429\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Evolved virtual keyboards&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/5429"}],"collection":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5429"}],"version-history":[{"count":3,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/5429\/revisions"}],"predecessor-version":[{"id":5432,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/5429\/revisions\/5432"}],"wp:attachment":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5429"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}