An Algorithm That Turns Books Into Music

“The text of a novel — with the first experiments including To Kill a Mockingbird and Alice in Wonderland — is segmented into four parts, the octaves determined by the “joy and sadness densities,” and the length of notes set by the density of those emotions. These emotions in turn are determined by a database of words linked to eight different sentiments, including joy, anticipation, anger, disgust, trust, fear, surprise, and sadness.”