{"id":4106,"date":"2022-07-06T09:41:40","date_gmt":"2022-07-06T07:41:40","guid":{"rendered":"https:\/\/fodina.de\/?p=4106"},"modified":"2023-01-03T21:33:59","modified_gmt":"2023-01-03T20:33:59","slug":"musescore3-in-ubuntu202204","status":"publish","type":"post","link":"https:\/\/2022.fodina.de\/en\/musescore3-in-ubuntu202204\/","title":{"rendered":"Musescore 3 under Ubuntu 22.04 &#8211; without scratching noises"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"alignleft size-full is-resized\"><a href=\"https:\/\/2022.fodina.de\/wp-content\/uploads\/2022\/07\/musescore-logo-240x240-1.png\" data-fancybox=\"\"><img decoding=\"async\" src=\"https:\/\/2022.fodina.de\/wp-content\/uploads\/2022\/07\/musescore-logo-240x240-1.png\" alt=\"\" class=\"wp-image-3346\" width=\"80\"><\/a><\/figure><\/div>\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large is-resized\"><a href=\"https:\/\/2022.fodina.de\/wp-content\/uploads\/2022\/07\/pulseaudio-logo.png\" data-fancybox=\"\"><img decoding=\"async\" src=\"https:\/\/2022.fodina.de\/wp-content\/uploads\/2022\/07\/pulseaudio-logo.png\" alt=\"\" width=\"80\"><\/a><\/figure><\/div>\n\n\n\n<p>After having updated to Ubuntu 22.04, I recently wanted to reactivate my music work environment. But when I installed Musescore-3 and let it play my music score, I got an ugly mess of background noises. And I could not add any soundfont. Obviously, I faced two obstacles that I had to overcome <!--more--><\/p>\n\n\n\n<p>Ubuntu 22.04 offers both, Musescore-2 and Musescore-3. I had already had good experiences with Musescore-3. Thus &#8211; and to be on the safe side &#8211; I completely removed the older release, before I installed my preferred version:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get remove --purge musescore\nsudo apt autoremove\nsudo apt-get install musescore3<\/code><\/pre>\n\n\n\n<p>But after having opened my standard test song in Musescore-3, I got a mess of noises while I tried to play it. The internet told me, that there seems to be a bug evoked by using pulse-audio and musescore-3 together: MuseScore-3 should supposedly reduce the pulse-latency to an unusable small value.<\/p>\n\n\n\n<p>If this was true, I should be able to fix it by overriding the current pulse latency value using an appropriate environment variable. So I opened up a bash, entered \u2018<code>export PULSE_LATENCY_MSEC=30<\/code>\u2018 and called &nbsp;\u2018<code>musecore3<\/code>\u2018 from the command line. And indeed: no more disturbing playback noises. But when I started Musescore-3 via the official menu \u2013 (i.e. without evaluating the environment variable set in the shell), the noises \u2018came back\u2019. So I had verified the suspected cause. Next, all I had to do was to convince Ubuntu 22.04 to set this pulse latency value within the boot procedure. For this, I had to add a specific shell file into the profile.d directory:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo echo \"export PULSE_LATENCY_MSEC=30\" &gt; \/etc\/profile.d\/pulselat.sh<\/code><\/pre>\n\n\n\n<p>From now on, the musescore-3 version that comes with Ubuntu 22.04 plays my score without any annoying noises.<\/p>\n\n\n\n<p>But the phenomenon of &#8216;lost&#8217; sound fonts were not affected by that. Whenever I stored a new sound file into my directory &nbsp;\u2018<code>MuseScore3\/SoundFonts<\/code>\u2018&nbsp; for making them accessible&nbsp;<a href=\"https:\/\/musescore.org\/en\/handbook\/3\/soundfonts-and-sfz-files\">in accordance with the documentation<\/a>, Musescore did not find them. But this time &#8211; as so often &#8211; the cause sat in front of the keyboard: Recently, I had changed my home directory. But in this new directory, I still used the old content &#8211; unchanged. Therefore, paths containing my previous directory still showed up in the Musescore-3 configuration dialog. I could put as many new sound files in my sound directory as I wanted. None of them were found. To fix this, I had to update the older names in the Musescore-3 configuration file \u2018~\/.config\/Mu<code>seScore\/MuseScore.ini<\/code>\u2018&nbsp; for making the <a href=\"https:\/\/member.keymusician.com\/Member\/FluidR3_GM\/index.html\">fluid-R3-GM-Soundfont<\/a> and the <a href=\"http:\/\/www.arachnosoft.com\/main\/download.php?id=soundfont-sf2\">arachno-soundfont<\/a> accessible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nach meiner Umstellung auf Ubuntu 22.04 wollte ich k\u00fcrzlich auch meine Musikarbeitsumgebung reaktivieren. Aber als ich MuseScore-3 installiert hatte und es meine Musikpartitur abspielen lie\u00df, h\u00f6rte ich gr\u00e4ssliche Hintergrundger\u00e4usche. Und Soundfonts konnte ich auch nicht mehr hinzuf\u00fcgen. Zwei Hindernisse also, die es zu \u00fcberwinden galt<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[67,68],"tags":[30,61],"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\/4106"}],"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=4106"}],"version-history":[{"count":71,"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/posts\/4106\/revisions"}],"predecessor-version":[{"id":4247,"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/posts\/4106\/revisions\/4247"}],"wp:attachment":[{"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/media?parent=4106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/categories?post=4106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2022.fodina.de\/en\/wp-json\/wp\/v2\/tags?post=4106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}