Generating Music From Literature
Generating Music From Literature
Generating Music From Literature
are both positive, such as Anne of Green Gables times chaotic. The effect of increasing and de-
(trust and joy), the pieces sound especially light creasing the total number of sections and sub-
and joyful. For novels where the top two emotions sections is also presented. Additionally, the web-
are both negative, such as The Road (sadness and page displays pieces with tempos and octaves be-
fear), the pieces sound especially dark. yond the limits chosen in TransProse. We also
show other variations such as pieces for relatively
8.5 Emotional Activity positive novels generated in C minor (instead of
Unlike the overall pace of the novel, individual C major). These alternatives are not necessarily
segments of activity were also identified in the incorrect, but they tend to often be less effective.
pieces through the number and duration of notes
(with more and shorter notes indicating higher 10 Limitations and Future work
emotion densities). This can be especially heard
in the third section of A Clockwork Orange, the fi- We presented a system, TransProse, that gener-
nal section of The Adventures of Sherlock Holmes, ates music according to the use of emotion words
the second section of To Kill a Mockingbird, and in a given piece of text. A number of avenues
the final section of Lord of the Flies. In A Clock- for future work exist such as exploring the use of
work Orange, the main portion of the piece is mid-piece key changes and intentional harmony
chaotic and eventful, likely as the main charac- and discord between the melodies. We will fur-
ters cause havoc; at the end of the novel (as the ther explore ways to capture activity in music. For
main character undergoes therapy) the piece dra- example, an automatically generated activity lex-
matically changes and becomes structured. Sim- icon (built using the method proposed by Turney
ilarly, in Heart of Darkness, the piece starts out and Littman (2003)) can be used to identify por-
only playing a few notes; as the tension in the tions of text where the characters are relatively
novel builds, the number of notes increases and active (fighting, dancing, conspiring, etc) and ar-
their durations decrease. eas where they are relatively passive (calm, inca-
pacitated, sad, etc). One can even capture non-
9 Comparing Alternative Choices
emotional features of the text in music. For ex-
We examine choices made in TransProse by com- ample, recurring characters or locations in a novel
paring musical pieces generated with different al- could be indicated by recurring motifs. We will
ternatives. These audio clips are available here: conduct human evaluations asking people to judge
http://transprose.weebly.com/clips.html. various aspects of the generated music such as the
Pieces with two melodies (based on overall quality of music and the amount and type of emo-
emotion density and the predominant emotion’s tion evoked by the music. We will also evaluate
density) and pieces based on four melodies (based the impact of textual features such as the length of
on the top three emotions and the overall emotion the novel and the style of writing on the generated
density) were generated and uploaded in the clips music. Work on capturing note models (analogous
webpage. Observe that with only two melodies, to language models) from existing pieces of music
the pieces tend to sound thin, whereas with four and using them to improve the music generated by
melodies the pieces sound less cohesive and some- TransProse seems especially promising.
References microblogs. In Proceedings of the Conference on
[Agarwal et al.2011] Apoorv Agarwal, Boyi Xie, Ilia Empirical Methods in Natural Language Process-
Vovsha, Owen Rambow, and Rebecca Passonneau. ing, EMNLP ’11, pages 562–570, Stroudsburg, PA,
2011. Sentiment analysis of twitter data. In Pro- USA. Association for Computational Linguistics.
ceedings of the Workshop on Languages in Social [Brown1970] Calvin S Brown. 1970. The relations be-
Media, LSM ’11, pages 30–38, Portland, Oregon. tween music and literature as a field of study. Com-
[Aisopos et al.2012] Fotis Aisopos, George Papadakis, parative Literature, 22(2):97–107.
Konstantinos Tserpes, and Theodora Varvarigou. [Collins2008] Nick Collins. 2008. The analysis
2012. Textual and contextual patterns for sentiment of generative music programs. Organised Sound,
analysis over microblogs. In Proceedings of the 13(3):237–248.
21st International Conference on World Wide Web
Companion, WWW ’12 Companion, pages 453– [Cope1996] David Cope. 1996. Experiments in musi-
454, New York, NY, USA. cal intelligence, volume 12. AR Editions Madison,
WI.
[Ali and Peynirciolu2010] S Omar Ali and Zehra F
Peynirciolu. 2010. Intensity of emotions con- [Dowling and Harwood1986] W Jay Dowling and
veyed and elicited by familiar and unfamiliar mu- Dane L Harwood. 1986. Music cognition, volume
sic. Music Perception: An Interdisciplinary Journal, 19986. Academic Press New York.
27(3):177–182. [Gabrielsson and Lindström2001] Alf Gabrielsson and
[Alm and Sproat2005] Cecilia O. Alm and Richard Erik Lindström. 2001. The influence of musical
Sproat, 2005. Emotional sequencing and develop- structure on emotional expression.
ment in fairy tales, pages 668–674. Springer. [Genereux and Evans2006] Michel Genereux and
[Aman and Szpakowicz2007] Saima Aman and Stan Roger P. Evans. 2006. Distinguishing affective
Szpakowicz. 2007. Identifying expressions of emo- states in weblogs. In Proceedings of the AAAI
tion in text. In Vclav Matoušek and Pavel Mautner, Spring Symposium on Computational Approaches
editors, Text, Speech and Dialogue, volume 4629 of to Analysing Weblogs, pages 27–29, Stanford,
Lecture Notes in Computer Science, pages 196–205. California.
Springer Berlin / Heidelberg. [Hatten1991] Robert Hatten. 1991. On narrativity in
[Bakliwal et al.2012] Akshat Bakliwal, Piyush Arora, music: expressive genres and levels of discourse in
Senthil Madhappan, Nikhil Kapre, Mukesh Singh, beethoven.
and Vasudeva Varma. 2012. Mining sentiments [Hunter et al.2008] Patrick G Hunter, E Glenn Schel-
from tweets. In Proceedings of the 3rd Workshop on lenberg, and Ulrich Schimmack. 2008. Mixed
Computational Approaches to Subjectivity and Sen- affective responses to music with conflicting cues.
timent Analysis, WASSA ’12, pages 11–18, Jeju, Re- Cognition & Emotion, 22(2):327–352.
public of Korea.
[Hunter et al.2010] Patrick G Hunter, E Glenn Schel-
[Balkwill and Thompson1999] Laura-Lee Balkwill and lenberg, and Ulrich Schimmack. 2010. Feelings
William Forde Thompson. 1999. A cross-cultural and perceptions of happiness and sadness induced
investigation of the perception of emotion in music: by music: Similarities, differences, and mixed emo-
Psychophysical and cultural cues. Music perception, tions. Psychology of Aesthetics, Creativity, and the
pages 43–64. Arts, 4(1):47.
[Bellegarda2010] Jerome Bellegarda. 2010. Emotion [Iida et al.2000] Akemi Iida, Nick Campbell, Soichiro
analysis using latent affective folding and embed- Iga, Fumito Higuchi, and Michiaki Yasumura. 2000.
ding. In Proceedings of the NAACL-HLT 2010 A speech synthesis system with emotion for assist-
Workshop on Computational Approaches to Analy- ing communication. In ISCA Tutorial and Research
sis and Generation of Emotion in Text, Los Angeles, Workshop (ITRW) on Speech and Emotion.
California.
[Juslin and Laukka2003] Patrik N Juslin and Petri
[Biles1994] John Biles. 1994. Genjam: A genetic al- Laukka. 2003. Communication of emotions in
gorithm for generating jazz solos. pages 131–137. vocal expression and music performance: Differ-
[Bollen et al.2009] Johan Bollen, Alberto Pepe, and ent channels, same code? Psychological bulletin,
Huina Mao. 2009. Modeling public mood and emo- 129(5):770.
tion: Twitter sentiment and socio-economic phe- [Kim et al.2009] Elsa Kim, Sam Gilbert, Michael J. Ed-
nomena. CoRR. wards, and Erhardt Graeff. 2009. Detecting sadness
[Boucouvalas2002] Anthony C. Boucouvalas. 2002. in 140 characters: Sentiment analysis of mourning
Real time text-to-emotion engine for expressive in- michael jackson on twitter.
ternet communication. Emerging Communication: [Lerdahl and Jackendoff1983] Fred Lerdahl and Ray S
Studies on New Technologies and Practices in Com- Jackendoff. 1983. A generative theory of tonal mu-
munication, 5:305–318. sic. MIT press.
[Brody and Diakopoulos2011] Samuel Brody [Liu and Zhang2012] Bing Liu and Lei Zhang. 2012.
and Nicholas Diakopoulos. 2011. A survey of opinion mining and sentiment analysis.
Cooooooooooooooollllllllllllll!!!!!!!!!!!!!!: us- In Charu C. Aggarwal and ChengXiang Zhai, edi-
ing word lengthening to detect sentiment in tors, Mining Text Data, pages 415–463. Springer.
[Liu et al.2003] Hugo Liu, Henry Lieberman, and Ted [Pierre-Yves2003] Oudeyer Pierre-Yves. 2003. The
Selker. 2003. A model of textual affect sensing us- production and recognition of emotions in speech:
ing real-world knowledge. In Proceedings of the 8th features and algorithms. International Journal of
International Conference on Intelligent User Inter- Human-Computer Studies, 59(1):157–183.
faces, pages 125–132, New York, NY. ACM. [Roederer2008] Juan G Roederer. 2008. The physics
[Micznik2001] Vera Micznik. 2001. Music and nar- and psychophysics of music: an introduction.
rative revisited: degrees of narrativity in beethoven Springer Publishing Company, Incorporated.
and mahler. Journal of the Royal Musical Associa- [Rousseau2009] Jean-Jacques Rousseau. 2009. Essay
tion, 126(2):193–249. on the origin of languages and writings related to
[Mihalcea and Liu2006] Rada Mihalcea and Hugo Liu. music, volume 7. UPNE.
2006. A corpus-based approach to finding happi- [Schröder2009] Marc Schröder. 2009. Expressive
ness. In Proceedings of the AAAI Spring Sympo- speech synthesis: Past, present, and possible futures.
sium on Computational Approaches to Analysing In Affective information processing, pages 111–126.
Weblogs, pages 139–144. AAAI Press. Springer.
[Mohammad and Turney2010] Saif M. Mohammad and [Spencer1857] Herbert Spencer. 1857. The origin and
Peter D. Turney. 2010. Emotions evoked by com- function of music. Frasers Magazine, 56:396–408.
mon words and phrases: Using Mechanical Turk
[Strapparava and Valitutti2004] Carlo Strapparava and
to create an emotion lexicon. In Proceedings of
Alessandro Valitutti. 2004. WordNet-Affect: An
the NAACL-HLT Workshop on Computational Ap-
Affective Extension of WordNet. In Proceedings of
proaches to Analysis and Generation of Emotion in
the 4th International Conference on Language Re-
Text, LA, California.
sources and Evaluation (LREC-2004), pages 1083–
[Mohammad and Turney2013] Saif M. Mohammad and 1086, Lisbon, Portugal.
Peter D. Turney. 2013. Crowdsourcing a word- [Tao and Tan2005] Jianhua Tao and Tieniu Tan. 2005.
emotion association lexicon. 29(3):436–465. Affective computing: A review. In Affective com-
[Mohammad and Yang2011] Saif M. Mohammad and puting and intelligent interaction, pages 981–995.
Tony (Wenda) Yang. 2011. Tracking sentiment in Springer.
mail: How genders differ on emotional axes. In Pro- [Tenney1988] James Tenney. 1988. A history of conso-
ceedings of the ACL Workshop on Computational nance and dissonance. Excelsior Music Publishing
Approaches to Subjectivity and Sentiment Analysis, Company New York.
WASSA ’11, Portland, OR, USA.
[Thelwall et al.2011] Mike Thelwall, Kevan Buckley,
[Mohammad2012] Saif M. Mohammad. 2012. From and Georgios Paltoglou. 2011. Sentiment in Twitter
once upon a time to happily ever after: Tracking events. Journal of the American Society for Infor-
emotions in mail and books. Decision Support Sys- mation Science and Technology, 62(2):406–418.
tems, 53(4):730–741.
[Tumasjan et al.2010] Andranik Tumasjan, Timm O
[Morrison and Demorest2009] Steven J Morrison and Sprenger, Philipp G Sandner, and Isabell M Welpe.
Steven M Demorest. 2009. Cultural constraints on 2010. Predicting elections with twitter : What 140
music perception and cognition. Progress in brain characters reveal about political sentiment. Word
research, 178:67–77. Journal Of The International Linguistic Association,
[Neviarouskaya et al.2009] Alena Neviarouskaya, Hel- pages 178–185.
mut Prendinger, and Mitsuru Ishizuka. 2009. Com- [Turney and Littman2003] Peter Turney and Michael L
positionality principle in recognition of fine-grained Littman. 2003. Measuring praise and criticism:
emotions from text. In Proceedings of the Proceed- Inference of semantic orientation from association.
ings of the Third International Conference on We- ACM Transactions on Information Systems, 21(4).
blogs and Social Media (ICWSM-09), pages 278–
281, San Jose, California. [Volkova et al.2010] Ekaterina P Volkova, Betty J
Mohler, Detmar Meurers, Dale Gerdemann, and
[Pak and Paroubek2010] Alexander Pak and Patrick Heinrich H Bülthoff. 2010. Emotional perception of
Paroubek. 2010. Twitter as a corpus for senti- fairy tales: Achieving agreement in emotion annota-
ment analysis and opinion mining. In Proceed- tion of text. In Proceedings of the NAACL HLT 2010
ings of the 7th Conference on International Lan- Workshop on Computational Approaches to Analysis
guage Resources and Evaluation, LREC ’10, Val- and Generation of Emotion in Text, pages 98–106.
letta, Malta, May. European Language Resources Association for Computational Linguistics.
Association (ELRA).
[Webster and Weir2005] Gregory D Webster and
[Pang and Lee2008] Bo Pang and Lillian Lee. 2008. Catherine G Weir. 2005. Emotional responses to
Opinion mining and sentiment analysis. Founda- music: Interactive effects of mode, texture, and
tions and Trends in IR, 2(1–2):1–135. tempo. Motivation and Emotion, 29(1):19–39.
[Perricone2000] J. Perricone. 2000. Melody in Song- [Zhe and Boucouvalas2002] Xu Zhe and A Boucou-
writing: Tools and Techniques for Writing Hit valas, 2002. Text-to-Emotion Engine for Real Time
Songs. Berklee guide. Berklee Press. Internet CommunicationText-to-Emotion Engine for
[Picard2000] Rosalind W Picard. 2000. Affective com- Real Time Internet Communication, pages 164–168.
puting. MIT press.