<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Daniel D. Johnson (Posts about poetry)</title><link>https://www.danieldjohnson.com/</link><description></description><atom:link href="https://www.danieldjohnson.com/categories/poetry.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2025 &lt;a href="mailto:daniel.dw.johnson@gmail.com"&gt;Daniel D. Johnson&lt;/a&gt; </copyright><lastBuildDate>Mon, 01 Sep 2025 09:09:05 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Poetry to Music</title><link>https://www.danieldjohnson.com/2014/06/30/speech-music/</link><dc:creator>Daniel D. Johnson</dc:creator><description>&lt;p&gt;This is a program I wrote to explore the connection between the patterns in poetry and speeches and the patterns in music. Unfortunately, I cannot upload it here (the WebMIDI API integration does not seem to work anymore and also it was built with a very specific soundfont so viewing it elsewhere would not be equivalent), so instead of the actual program you can watch a video of it.&lt;/p&gt;
&lt;p&gt;The program, written in Javascript and utilizingthe WebMIDI API, first runs through the poem and extracts phonemes using the excellent &lt;a href="http://www.speech.cs.cmu.edu/cgi-%20bin/cmudict"&gt;Carnegie Mellon Pronouncing Dictionary&lt;/a&gt;. It then links together words that share phonemes, assigning each pair a strength depending on the number of matched phonemes (plus a bonus if the words are identical). Finally, it begins to play the poem syllable-by-syllable, assigning each word a note based on its first letter. When the playhead reaches a word that has links to other words, it creates a secondary playhead that plays the matched word simultaneously, producing temporary chords and repetition that die off over time.&lt;/p&gt;
&lt;p&gt;In this video, the program is playing its rendition of "The Raven" by Edgar Allan Poe.&lt;/p&gt;</description><category>Experiments</category><category>javascript</category><category>music</category><category>poetry</category><category>video</category><category>WebMIDI</category><guid>https://www.danieldjohnson.com/2014/06/30/speech-music/</guid><pubDate>Mon, 30 Jun 2014 04:30:28 GMT</pubDate></item></channel></rss>