Sounds like an interesting project, and will surely give it a try.
But currently I use my own homemade commandline script that calls
musescore (without GUI, as shell command with the -o option) to convert
.mscz or .mscx to MusicXML and then call musicxml2ly to convert it to
Lilypond format. It will be interesting to see if this new tool will do
a better job. In the current state I doubt it, but it will be crucial
to see what will be maintained and developed better in the future.
Few people know that musescore has a lot of power when used as a
commandline conversion tool. It can read and write several file/data
formats. The commandline is great for batch processing. (At least it is
for me as a Linux user)
Martin
Martin
Op dinsdag 5 november 2024 om 22:14:38 -08:00:00 schreef Knute Snortum
<ksnor...@gmail.com>:
On Tue, Nov 5, 2024 at 8:49 AM Maurits Lamers via LilyPond user
discussion <lilypond-user@gnu.org <mailto:lilypond-user@gnu.org>>
wrote:
Hey all,
I happened to be in the need of converting a few pieces of music
written
using MuseScore and create Lilypond notation. That functionality
seems
to have been originally been included with MuseScore but was removed
already some time ago.
As there was nothing that I could find that would do what I wanted
(and
I probably also didn't look very hard), it seemed to be easier to
simply
write one.
This converter doesn't attempt to be a full converter. There are too
many differences, and as the README already states MuseScore needs
trickery with articulations to get a bit more musical sound. It can
at
least save you having to manually copy a lot of notes. I wrote it
using
files saved by MuseScore version 4.4.3, so your milage with other
versions might vary.
<https://www.npmjs.com/package/mscx2ly>
<https://github.com/mauritslamers/mscx2ly>
Please try it out and contribute if you want!
I wasn't able to get mscx2ly to convert; I got this error:
```
mscx2ly SimpleGifts.mscx SimpleGifts.ly
file:///usr/local/lib/node_modules/mscx2ly/lib.js:621
const orderInfo =
readOrderInfo(MSCData.museScore.Score[0].Order[0]);
^
TypeError: Cannot read properties of undefined (reading '0')
at convertMSCX2LY
(file:///usr/local/lib/node_modules/mscx2ly/lib.js:621:69)
at mscx2ly
(file:///usr/local/lib/node_modules/mscx2ly/index.js:30:20)
Node.js v18.19.1
```
I cloned the repository and ran `npm install mscx2ly --global`. The
file I tried to convert is attached. I'm on Ubuntu 24.04.1.
--
Knute Snortum