{"id":12510,"date":"2024-03-14T23:14:51","date_gmt":"2024-03-15T03:14:51","guid":{"rendered":"https:\/\/spinor.info\/weblog\/?p=12510"},"modified":"2024-03-14T23:14:51","modified_gmt":"2024-03-15T03:14:51","slug":"yes-claude-can-do-music","status":"publish","type":"post","link":"https:\/\/spinor.info\/weblog\/?p=12510","title":{"rendered":"Yes, Claude can do music"},"content":{"rendered":"<p>Like GPT-4, Claude 3 can do music. (Earlier versions could, too, but not quite as consistently.)<\/p>\n<p>The idea is that you can request the LLM to generate short tunes using Lilypond, a widely used language to represent sheet music; this can then be compiled into sheet music images or MIDI files.<\/p>\n<p>I&#8217;ve now integrated this into my AI front-end, so whenever GPT or Claude responds with syntactically correct, complete Lilypond code, it is now automatically translated by the back-end.<\/p>\n<p>Here&#8217;s one of Claude&#8217;s compositions.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-12511\" src=\"https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2024\/03\/frolicking-cats-526x1024.png\" alt=\"\" width=\"386\" height=\"751\" srcset=\"https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2024\/03\/frolicking-cats-526x1024.png 526w, https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2024\/03\/frolicking-cats-154x300.png 154w, https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2024\/03\/frolicking-cats.png 579w\" sizes=\"(max-width: 386px) 100vw, 386px\" \/><\/p>\n<audio class=\"wp-audio-shortcode\" id=\"audio-12510-1\" preload=\"none\" style=\"width: 100%;\" controls=\"controls\"><source type=\"audio\/mpeg\" src=\"https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2024\/03\/frolicking-cats.mp3?_=1\" \/><a href=\"https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2024\/03\/frolicking-cats.mp3\">https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2024\/03\/frolicking-cats.mp3<\/a><\/audio>\n<p>&nbsp;<\/p>\n<p>That was not the best Claude could to (it created tunes with more rhythmic variation between the voices) but one short enough to include here as a screen capture. Here is one of Claude&#8217;s longer compositions:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-12517\" src=\"https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2024\/03\/cats-at-play.png\" alt=\"\" width=\"765\" height=\"324\" srcset=\"https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2024\/03\/cats-at-play.png 765w, https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2024\/03\/cats-at-play-300x127.png 300w\" sizes=\"(max-width: 765px) 100vw, 765px\" \/><\/p>\n<audio class=\"wp-audio-shortcode\" id=\"audio-12510-2\" preload=\"none\" style=\"width: 100%;\" controls=\"controls\"><source type=\"audio\/mpeg\" src=\"https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2024\/03\/cats-at-play.mp3?_=2\" \/><a href=\"https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2024\/03\/cats-at-play.mp3\">https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2024\/03\/cats-at-play.mp3<\/a><\/audio>\n<p>&nbsp;<\/p>\n<p>I remain immensely fascinated by the fact that a language model that never had a means to see anything or listen to anything, a model that only has the power of words at its disposal, has such an in-depth understanding of the concept of sound, it can produce a coherent, even pleasant, little polyphonic tune.<\/p>\n<fb:like href='https:\/\/spinor.info\/weblog\/?p=12510' send='true' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida grande'><\/fb:like>","protected":false},"excerpt":{"rendered":"<p>Like GPT-4, Claude 3 can do music. (Earlier versions could, too, but not quite as consistently.) The idea is that you can request the LLM to generate short tunes using Lilypond, a widely used language to represent sheet music; this can then be compiled into sheet music images or MIDI files. I&#8217;ve now integrated this <a href='https:\/\/spinor.info\/weblog\/?p=12510' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,58,35],"tags":[],"class_list":["post-12510","post","type-post","status-publish","format-standard","hentry","category-cats","category-cybernetics","category-personal","category-7-id","category-58-id","category-35-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/12510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12510"}],"version-history":[{"count":6,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/12510\/revisions"}],"predecessor-version":[{"id":12520,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/12510\/revisions\/12520"}],"wp:attachment":[{"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}