Linux Musescore install & convert midi to musicxml

merin·2022년 8월 25일
0

Linux MuseScore command line

참조 : 설치(https://ourcodeworld.com/articles/read/1408/how-to-install-musescore-3-in-ubuntu-2004)
서버 설치 (https://ourcodeworld.com/articles/read/1409/how-to-use-musescore-3-in-headless-mode-in-ubuntu-2004)

musescore를 linux에서도 설치할 수 있다! sudo apt-get install musescore로 쉽게 설치해놓고 mscore -o 옵션으로 convert를 하려 했지만 잘 안됐음.. 컨테이너에서 실행해서 그런 거였다 ㅠㅠ
알면 알수록 모르겠는 도커의 세계

sudo apt-get update
sudo add-apt-repository ppa:mscore-ubuntu/mscore3-stable #나는 mscore-stable로 mscore2를 설치했다!
sudo apt-get update
sudo apt-get install musescore3 

# uninstalling : sudo apt remove --autoremove musescore3

convert midi to musicxml

mscore -o {converted.musicxml} {EMOPIA_test_qunatised.mid}

mscore -o : convert option
{converted.musicxml} : musicxml로 변환할 파일명 지정
{EMOPIA_test_qunatised.mid} : musicxml로 변환할 mid 파일 (해당 파일이 있는 directory에 있는지 확인)

원래는 이게 바로 되어야 하는데 내가 안됐던 이유는 컨테이너에서 돌리고 있었기 때문이었고

export QT_QPA_PLATFORM=offscreen

이걸 command line에서 먼저 해주고 mscore -o 를 해주면 잘된다!

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
MuseScore3 3.2.3

이렇게 뜨는건 잘 되고 있는 거니 무시하자!

profile
MALer

0개의 댓글