{"id":2517,"date":"2022-04-24T16:00:00","date_gmt":"2022-04-24T14:00:00","guid":{"rendered":"https:\/\/fodina.de\/?p=2517"},"modified":"2023-01-03T21:43:54","modified_gmt":"2023-01-03T20:43:54","slug":"musikwissenschaft-plus-latex","status":"publish","type":"post","link":"https:\/\/2022.fodina.de\/en\/musikwissenschaft-plus-latex\/","title":{"rendered":"Musicology and LaTeX"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"alignleft is-resized\"><a href=\"https:\/\/2022.fodina.de\/wp-content\/uploads\/2019\/10\/lilypond-logo.png\" data-fancybox=\"\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/2022.fodina.de\/wp-content\/uploads\/2019\/10\/lilypond-logo.png\" alt=\"\" class=\"wp-image-2414\" width=\"106\" height=\"64\" srcset=\"https:\/\/2022.fodina.de\/wp-content\/uploads\/2019\/10\/lilypond-logo.png 321w, https:\/\/2022.fodina.de\/wp-content\/uploads\/2019\/10\/lilypond-logo-300x179.png 300w\" sizes=\"(max-width: 106px) 100vw, 106px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright is-resized\"><a href=\"https:\/\/2022.fodina.de\/wp-content\/uploads\/2019\/12\/LaTeX.png\" data-fancybox=\"\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/2022.fodina.de\/wp-content\/uploads\/2019\/12\/LaTeX.png\" alt=\"\" class=\"wp-image-2556\" width=\"106\" height=\"48\"><\/a><\/figure><\/div>\n\n\n\n<p>Musicologists have a hard time &#8211; namely if they want to enrich their LaTeX-texts by score examples and harmony analyses. Up to now, there did not exist any study of whether and how that could be realized with free software.  This article summarizes a paper &#8211; written in German &#8211;  <a href=\"https:\/\/kreincke.github.io\/mwm.ltx\/mwm.ltx.pdf\">concerning the topic <em>LaTeX and Musicology<\/em><\/a>, which on the quiet has become a self-referential tutorial teaching what&#8217;s possible and what is not.<!--more--><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How it started<\/h2>\n\n\n\n<p>In the beginning, there was my task to write a musicological work. I had already explored and documented how one can write humanistic texts with LaTeX. My project &#8216;<a href=\"https:\/\/github.com\/kreincke\/proScientia.ltx\">proScientia.ltx<\/a>\u2018 covered the results, a former version was labeled\u00a0<a href=\"https:\/\/github.com\/kreincke\/mycsrf\">\u2018myCsrf\u2019<\/a>.  Their specific intentions have been described in a sophisticated German <a href=\"http:\/\/kreincke.github.io\/proScientia.ltx\/humanities.pdf\">tutorial<\/a>\u00a0 and in a shorter <a href=\"http:\/\/kreincke.github.io\/mycsrf\/examples\/scholar-fono-en.pdf\">English version<\/a>.<\/p>\n\n\n\n<p>Nevertheless, I  did not know how one could generate musical examples with free software and embed them into LaTeX texts. A first rough internet recherche presented a lot of tools and methods but did not provide any manual. It did not deliver any explication on how to successfully combine which tools and did not find any tutorial on how one could link notes and harmony analyses.<\/p>\n\n\n\n<p>So, I postponed my original task and examined the topic <em>LaTeX and Musicology: <\/em>I preferred to know the best method before I started for not backing the wrong horse. Finally, my investigation was documented in a larger text: It reviews smaller tools, describes usable backend systems, discusses frontends, tests converters and delivers a map of conceivable and really possible toolchains.<\/p>\n\n\n\n<p>As usual, I have published the sources of the eBook LaTeX und Musikwissenschaft as open-source-software. Additionally, I have uploaded the compiled pdf file <a href=\"http:\/\/kreincke.github.io\/mwm.ltx\/mwm.ltx.pdf\"><em>Musikwissenschaft mit LaTeX<\/em>.<\/a> The point is, that this investigation backhandedly became a self-referential tutorial that explains, what it shows. This article summarizes the core results of that study<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Backends<\/h2>\n\n\n\n<p>We know three free backend systems for embedding scores into LaTeX texts: the ABC notation method, MusixTeX, and LilyPond. All these techniques create well readable scores. But LilyPond has the edge over the others.<\/p>\n\n\n\n<p>The ABC backend &#8211; as well as the LilyPond backend &#8211; creates pictures of scores that are embedded into the LaTeX text as graphics. Hence, it is systematically not possible to comment or modify the examples on the LaTeX level. Both backends use a simple representation language. But again, the LilyPond language is a bit smarter. And both backend systems only allow integrating simple harmony analysis symbols into the scores. They do not offer a method to represent complex harmonic relationships on a level that fulfills the needs of the musicology.<\/p>\n\n\n\n<p>The alternative &#8211; MusixTeX &#8211; works differently: It represents the notes on the LaTeX level. That allows, to comment and improve the scores by LaTeX based symbols. This capability is used by the LaTeX package <em>harmony<\/em>. It offers the possibility to integrate very sophisticated symbols into the music score. But one has to pay a heavy price for using the method with its elegant results: the syntax of MusixTeX is so complex and unwieldy,  that it decreases the productivity of its users.<\/p>\n\n\n\n<p>Hence, the situation was a bit inconvenient, even if one only considered the backend systems: A musicologist had either to keep in mind, that he would need a lot of time to create his examples. Or he could use a simpler representation language and had to refrain from using the symbols his profession required <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A way out<\/h2>\n\n\n\n<p>I could not accept one of these positions. Therefore I interrupted my running investigation and developed a library, which should at least be able to do that for LilyPond, what <em>harmony<\/em> did for MusixTeX. Consistently, I named it <em>harmonyli.ly<\/em>. As usual, I published <a href=\"https:\/\/github.com\/kreincke\/harmonyli.ly\/\"><em>harmonyli.ly<\/em> as open-source software<\/a>, created a <a href=\"https:\/\/2022.fodina.deharmonyli-ly\/\"><em>harmonyli.ly<\/em> internet page<\/a> and wrote a complete <a href=\"https:\/\/kreincke.github.io\/harmonyli.ly\/tutorial.pdf\"><em>harmonyli.ly<\/em> tutorial<\/a>. So, the method <em>LaTeX + LilyPond + harmonyli.ly<\/em>  became a real alternative to <em>LaTeX + MusixTeX + harmony<\/em>. Here comes a first example which indicates the potential of harmonyli.ly:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"470\" height=\"200\" src=\"https:\/\/2022.fodina.de\/wp-content\/uploads\/2019\/12\/cadenca2.png\" alt=\"\" class=\"wp-image-2590\" srcset=\"https:\/\/2022.fodina.de\/wp-content\/uploads\/2019\/12\/cadenca2.png 470w, https:\/\/2022.fodina.de\/wp-content\/uploads\/2019\/12\/cadenca2-300x128.png 300w\" sizes=\"(max-width: 470px) 100vw, 470px\" \/><\/figure><\/div>\n\n\n\n<p>Thanks to the help of the LilyPond community, harmonyli.ly has become a tool for musicologists, which functionally exceeds harmony and is documented on a level, which eases its use.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frontends<\/h2>\n\n\n\n<p>Musicologists are also musicians; they prefer to read and write scores instead of having to deal with special representation languages. Therefore, I wanted to learn, which frontend systems resp. editors could create input for which backend system. An internet query provided a bunch of candidates. I tested the relevant items with respect to their availability and usability. In the end, 7 candidates remained: EasyABC, Denemo, Rosegarden, MuseScore, Canorus, Frescobaldi and <em>Elysium<\/em>. But at last, I found that<\/p>\n\n\n\n<ul><li>only the semi-graphical editors <em>Frescobaldi<\/em> and <em>Elysium<\/em> could directly and successfully deal with <em>LilyPond<\/em> and <em>harmonyli.ly<\/em> <\/li><li> there did not exist a frontend for <em>MusixTeX<\/em> &#8211; neither directly, nor indirectly by using a converter<\/li><li>one could use  <em>MuseScore<\/em> as a graphical editor for <em>LilyPond<\/em> if one accepted to export the results as MusicXml, to convert that result by using <em>musicxml2ly,<\/em> and to subsequently insert the harmony analysis symbols via <em>Frescobaldi<\/em> or <em>Elysium<\/em><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>So, finally, I met a very reduced result &#8211; even if I considered the existence of converters:<\/p>\n\n\n\n<ul><li>In the end, one cannot set up an ABC based toolchain for integrating music examples into LaTeX texts.<\/li><li>The <strong>advantage of the method <em>LaTeX + MusixTeX + harmony<\/em> <\/strong>is its seamless integration into the LaTeX environment and the possibility to enrich the symbols by LaTeX syntagms.<\/li><li>The <strong>disadvantage of the method <em>LaTeX + MusixTeX + harmony<\/em> <\/strong>is the complexity and the unhandiness of MusixTeX. That there does not exist any specific (graphical) MusixTeX editor does not simplify the world.<\/li><li>The <strong>disadvantage of the method <\/strong> <strong><em>LaTeX + LilyPond<\/em> <em>+ harmonyli.ly<\/em> <\/strong> is that the scores are only embedded as prepared images. Therefore, one has separately to consider the intended resolution and scaling.<\/li><li>But there are several  <strong>advantages of the method <\/strong> <strong><em>LaTeX + LilyPond<\/em> <em>+ harmonyli.ly<\/em><\/strong>:<ul><li>The syntax of <em>LilyPond<\/em> is obviously more simple than that of <em>MusixTeX<\/em>.<\/li><li><em>Frescobaldi<\/em> is an excellent semi graphical LilyPond editor.<\/li><li><em>Elysium<\/em> is an excellent Eclipse-based LilyPond editor.<\/li><li>In the future, <em>Canorus<\/em> could become the third editor.<\/li><li>Those, who need a graphical editor, could use <em>MuseScore<\/em>, if they agree to export and convert their work and to integrate the harmony analyses symbols in a second step.<\/li><\/ul><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Consequences<\/h2>\n\n\n\n<p>Hence, it should be clear, what I will use when I will start my task, which stood at the beginning of this adventure: I will use <em>LaTeX + LilyPond + harmonyli.ly<\/em>.<\/p>\n\n\n\n<p>Overall, I am happy that I could floodlight the jungle of opportunities provided by the internet and that I found the really usable ways. Now I know, what&#8217;s going on. And I need not fear that I could have to change the horse during my ride and to lose the meanwhile created interims results.<\/p>\n\n\n\n<p>But I wished, I had got this study by another guy instead of having to write it by myself. That would have saved a lot of time. Thus, I hope, that others can use my prework and spend the time they gain on more productive aspects of their life.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Musikwissenschaftler haben es schwer &#8211; auch wenn sie LaTeX-Texte mit Notenbeispielen und Harmonieanalysen verfeinern wollen. Es gab bisher keine Sichtung dazu, ob und wie das mit freier Software umzusetzen w\u00e4re. Dieser Artikel fasst eine Untersuchung zum Thema LaTeX und Musikwissenschaft zusammen, die unter der Hand zu einer selbstreferentiellen Anleitung geworden ist.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[30,60,41,61,35,71],"translation":{"provider":"WPGlobus","version":"2.12.2","language":"en","enabled_languages":["de","en"],"languages":{"de":{"title":true,"content":true,"excerpt":false},"en":{"title":true,"content":true,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/posts\/2517"}],"collection":[{"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/comments?post=2517"}],"version-history":[{"count":88,"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/posts\/2517\/revisions"}],"predecessor-version":[{"id":4364,"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/posts\/2517\/revisions\/4364"}],"wp:attachment":[{"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/media?parent=2517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/categories?post=2517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/tags?post=2517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}