{"id":1264,"date":"2024-07-23T11:42:08","date_gmt":"2024-07-23T09:42:08","guid":{"rendered":"https:\/\/wi.pb.edu.pl\/p\/?page_id=1264"},"modified":"2024-07-23T11:51:57","modified_gmt":"2024-07-23T09:51:57","slug":"generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach","status":"publish","type":"page","link":"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/","title":{"rendered":"Generating polyphonic symbolic emotional music in the style of J.S.Bach"},"content":{"rendered":"<h1>Grekow J. &#8211; Generating polyphonic symbolic emotional music in the style of Bach using convolutional CVAE<\/h1>\n<p>ABSTRACT. In times of increasing human-machine interaction, the implementation of emotional intelligence in machines should not only recognize and track emotions during human interaction, but also respond with appropriate emotional content. Machines should be able to react and respond to human emotions. Music generation with a specific emotion is part of this task. This article presents the process of building a system generating polyphonic music content of a specified emotion using a conditional variational autoencoder and convolutional layers. The process of preparing a database of training examples with compositions by Johann Sebastian Bach, selecting and conducting transformations of musical examples was described. Annotation with emotion labels was done by music experts with a university music education. The four emotion labels &#8211; happy, angry, sad, relaxed &#8211; corresponding to the four quadrants of Russell&#8217;s model were used. The process of coding symbolic music examples into a time-pitch matrix representation, but also the structure of the built variational autoencoder, was described. Experiments on the implementation of different convolutional layers intended for visual analysis of the representation of music examples were presented. The generated emotional music files were evaluated using metrics and expert opinions.<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/grekowj\/musgenvaecnn_4v\" target=\"_blank\" rel=\"noopener\">Training dataset, code, generated examples<\/a><\/li>\n<\/ul>\n<h2>Generated music examples labeled with four emotions using &#8211; CVAE-Mus2 model<\/h2>\n<div class=\"table-responsive\">\n<table class=\"table table-no-bordered\" style=\"width: auto\">\n<tbody>\n<tr>\n<td><b>Example<\/b><\/td>\n<td><b>Emotion<\/b><\/td>\n<td><b>Quarter in Russell&#8217;s model \/ Arousal-Valence<\/b><\/td>\n<td><b>MIDI<\/b><\/td>\n<\/tr>\n<tr>\n<td>Example_1<\/td>\n<td>e1<\/td>\n<td>Q1 \/ high-high<\/td>\n<td><a href=\"https:\/\/wi.pb.edu.pl\/p\/wp-content\/uploads\/sites\/3\/2024\/07\/e1_new_generated_0.mid\">e1_new_generated_0<\/a>&nbsp;<\/td>\n<\/tr>\n<tr>\n<td>Example_2<\/td>\n<td>e1<\/td>\n<td>Q1 \/ high-high<\/td>\n<td><a style=\"color: #23527c\" href=\"https:\/\/wi.pb.edu.pl\/p\/wp-content\/uploads\/sites\/3\/2024\/07\/e1_new_generated_15.mid\">e1_new_generated_15<\/a><\/td>\n<\/tr>\n<tr>\n<td>Example_3<\/td>\n<td>e1<\/td>\n<td>Q1 \/ high-high<\/td>\n<td><a style=\"color: #23527c\" href=\"https:\/\/wi.pb.edu.pl\/p\/wp-content\/uploads\/sites\/3\/2024\/07\/e1_new_generated_9.mid\">e1_new_generated_9<\/a>&nbsp;&nbsp;<\/td>\n<\/tr>\n<tr>\n<td>Example_4<\/td>\n<td>e2<\/td>\n<td>Q2 \/ high-low<\/td>\n<td><a style=\"color: #23527c\" href=\"https:\/\/wi.pb.edu.pl\/p\/wp-content\/uploads\/sites\/3\/2024\/07\/e2_new_generated_3.mid\">e2_new_generated_3<\/a><\/td>\n<\/tr>\n<tr>\n<td>Example_5<\/td>\n<td>e2<\/td>\n<td>Q2 \/ high-low<\/td>\n<td><a href=\"https:\/\/wi.pb.edu.pl\/p\/wp-content\/uploads\/sites\/3\/2024\/07\/e2_new_generated_4.mid\">e2_new_generated_4<\/a><\/td>\n<\/tr>\n<tr>\n<td>Example_6<\/td>\n<td>e2<\/td>\n<td>Q2 \/ high-low<\/td>\n<td><a style=\"color: #23527c\" href=\"https:\/\/wi.pb.edu.pl\/p\/wp-content\/uploads\/sites\/3\/2024\/07\/e2_new_generated_8.mid\">e2_new_generated_8<\/a>&nbsp;<\/td>\n<\/tr>\n<tr>\n<td>Example_7<\/td>\n<td>e3<\/td>\n<td>Q3 \/ low-low<\/td>\n<td><a href=\"https:\/\/wi.pb.edu.pl\/p\/wp-content\/uploads\/sites\/3\/2024\/07\/e3_new_generated_3.mid\">e3_new_generated_3<\/a>&nbsp;&nbsp;&nbsp;<\/td>\n<\/tr>\n<tr>\n<td>Example_8<\/td>\n<td>e3<\/td>\n<td>Q3 \/ low-low<\/td>\n<td><a style=\"color: #23527c\" href=\"https:\/\/wi.pb.edu.pl\/p\/wp-content\/uploads\/sites\/3\/2024\/07\/e3_new_generated_9.mid\">e3_new_generated_9<\/a>&nbsp;<\/td>\n<\/tr>\n<tr>\n<td>Example_9<\/td>\n<td>e3<\/td>\n<td>Q3 \/ low-low<\/td>\n<td><a href=\"https:\/\/wi.pb.edu.pl\/p\/wp-content\/uploads\/sites\/3\/2024\/07\/e3_new_generated_18.mid\">e3_new_generated_18<\/a><\/td>\n<\/tr>\n<tr>\n<td>Example_10<\/td>\n<td>e4<\/td>\n<td>Q4 \/ low-high<\/td>\n<td><a style=\"color: #23527c\" href=\"https:\/\/wi.pb.edu.pl\/p\/wp-content\/uploads\/sites\/3\/2024\/07\/e4_new_generated_5.mid\">e4_new_generated_5<\/a>&nbsp;&nbsp;<\/td>\n<\/tr>\n<tr>\n<td>Example_11<\/td>\n<td>e4<\/td>\n<td>Q4 \/ low-high<\/td>\n<td><a style=\"color: #23527c\" href=\"https:\/\/wi.pb.edu.pl\/p\/wp-content\/uploads\/sites\/3\/2024\/07\/e4_new_generated_17.mid\">e4_new_generated_17<\/a>&nbsp;<\/td>\n<\/tr>\n<tr>\n<td>Example_12<\/td>\n<td>e4<\/td>\n<td>Q4 \/ low-high<\/td>\n<td><a href=\"https:\/\/wi.pb.edu.pl\/p\/wp-content\/uploads\/sites\/3\/2024\/07\/e4_new_generated_9.mid\">e4_new_generated_9<\/a>&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Grekow J. &#8211; Generating polyphonic symbolic emotional music in the style of Bach using convolutional<a class=\"read-more\" href=\"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/\" title=\"Poka\u017c artyku\u0142 Generating polyphonic symbolic emotional music in the style of J.S.Bach\">wi\u0119cej<\/a><\/p>\n","protected":false},"author":14,"featured_media":0,"parent":259,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-1264","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Generating polyphonic symbolic emotional music in the style of J.S.Bach - Strony pracownik\u00f3w Wydzia\u0142u Informatyki Politechniki Bia\u0142ostockiej<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Generating polyphonic symbolic emotional music in the style of J.S.Bach - Strony pracownik\u00f3w Wydzia\u0142u Informatyki Politechniki Bia\u0142ostockiej\" \/>\n<meta property=\"og:description\" content=\"Grekow J. &#8211; Generating polyphonic symbolic emotional music in the style of Bach using convolutionalwi\u0119cej\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/\" \/>\n<meta property=\"og:site_name\" content=\"Strony pracownik\u00f3w Wydzia\u0142u Informatyki Politechniki Bia\u0142ostockiej\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-23T09:51:57+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Szacowany czas czytania\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minuty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/\",\"url\":\"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/\",\"name\":\"Generating polyphonic symbolic emotional music in the style of J.S.Bach - Strony pracownik\u00f3w Wydzia\u0142u Informatyki Politechniki Bia\u0142ostockiej\",\"isPartOf\":{\"@id\":\"https:\/\/wi.pb.edu.pl\/p\/#website\"},\"datePublished\":\"2024-07-23T09:42:08+00:00\",\"dateModified\":\"2024-07-23T09:51:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/#breadcrumb\"},\"inLanguage\":\"pl-PL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Strona g\u0142\u00f3wna\",\"item\":\"https:\/\/wi.pb.edu.pl\/p\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"dr hab. in\u017c. Jacek Grekow\",\"item\":\"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Research\",\"item\":\"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Generating polyphonic symbolic emotional music in the style of J.S.Bach\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wi.pb.edu.pl\/p\/#website\",\"url\":\"https:\/\/wi.pb.edu.pl\/p\/\",\"name\":\"Strony pracownik\u00f3w Wydzia\u0142u Informatyki Politechniki Bia\u0142ostockiej\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wi.pb.edu.pl\/p\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pl-PL\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Generating polyphonic symbolic emotional music in the style of J.S.Bach - Strony pracownik\u00f3w Wydzia\u0142u Informatyki Politechniki Bia\u0142ostockiej","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/","og_locale":"pl_PL","og_type":"article","og_title":"Generating polyphonic symbolic emotional music in the style of J.S.Bach - Strony pracownik\u00f3w Wydzia\u0142u Informatyki Politechniki Bia\u0142ostockiej","og_description":"Grekow J. &#8211; Generating polyphonic symbolic emotional music in the style of Bach using convolutionalwi\u0119cej","og_url":"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/","og_site_name":"Strony pracownik\u00f3w Wydzia\u0142u Informatyki Politechniki Bia\u0142ostockiej","article_modified_time":"2024-07-23T09:51:57+00:00","twitter_card":"summary_large_image","twitter_misc":{"Szacowany czas czytania":"2 minuty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/","url":"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/","name":"Generating polyphonic symbolic emotional music in the style of J.S.Bach - Strony pracownik\u00f3w Wydzia\u0142u Informatyki Politechniki Bia\u0142ostockiej","isPartOf":{"@id":"https:\/\/wi.pb.edu.pl\/p\/#website"},"datePublished":"2024-07-23T09:42:08+00:00","dateModified":"2024-07-23T09:51:57+00:00","breadcrumb":{"@id":"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/#breadcrumb"},"inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/generating-polyphonic-symbolic-emotional-music-in-the-style-of-j-s-bach\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Strona g\u0142\u00f3wna","item":"https:\/\/wi.pb.edu.pl\/p\/"},{"@type":"ListItem","position":2,"name":"dr hab. in\u017c. Jacek Grekow","item":"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/"},{"@type":"ListItem","position":3,"name":"Research","item":"https:\/\/wi.pb.edu.pl\/p\/jacek-grekow\/research\/"},{"@type":"ListItem","position":4,"name":"Generating polyphonic symbolic emotional music in the style of J.S.Bach"}]},{"@type":"WebSite","@id":"https:\/\/wi.pb.edu.pl\/p\/#website","url":"https:\/\/wi.pb.edu.pl\/p\/","name":"Strony pracownik\u00f3w Wydzia\u0142u Informatyki Politechniki Bia\u0142ostockiej","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wi.pb.edu.pl\/p\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pl-PL"}]}},"_links":{"self":[{"href":"https:\/\/wi.pb.edu.pl\/p\/wp-json\/wp\/v2\/pages\/1264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wi.pb.edu.pl\/p\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wi.pb.edu.pl\/p\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wi.pb.edu.pl\/p\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/wi.pb.edu.pl\/p\/wp-json\/wp\/v2\/comments?post=1264"}],"version-history":[{"count":3,"href":"https:\/\/wi.pb.edu.pl\/p\/wp-json\/wp\/v2\/pages\/1264\/revisions"}],"predecessor-version":[{"id":1304,"href":"https:\/\/wi.pb.edu.pl\/p\/wp-json\/wp\/v2\/pages\/1264\/revisions\/1304"}],"up":[{"embeddable":true,"href":"https:\/\/wi.pb.edu.pl\/p\/wp-json\/wp\/v2\/pages\/259"}],"wp:attachment":[{"href":"https:\/\/wi.pb.edu.pl\/p\/wp-json\/wp\/v2\/media?parent=1264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}