[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can't use NoteNames twice in score block ??
From: |
Phil Hézaine |
Subject: |
Re: Can't use NoteNames twice in score block ?? |
Date: |
Thu, 23 Dec 2010 19:51:38 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101218 Lightning/1.0b3pre Thunderbird/3.1.7 |
Le 23/12/2010 18:05, Michael Ellis a écrit :
> Hi Phil! Thanks for the encouragement. I'll try to respond to all your
> questions later, but for now here's the python script I used to invoke
> MuseScore (command line name is "mscore") on the files I downloaded from
> Margaret Greentree's site. I'm running on a Mac with OS 10.6 so this should
> work on Linux, too and possibly on Windows with appropriate changes to
> accommodate the differences in path specs.
>
>> cat xml2ly.py
> #!/usr/bin/env python
> """
> Script that invokes mscore to convert MusicXml files in current directory
> to Lilypond files.
> """
> import os, sys
> from subprocess import Popen
> import glob
> xmlfiles = glob.glob("*.xml")
>
> ## Replace with path to mscore on your system
> mscore = "/Applications/MuseScore.app/Contents/MacOS/mscore"
>
> for x in xmlfiles:
> print "Converting %s ..."%x
> ly = os.path.splitext(x)[0] + ".ly"
> cmd = "%(mscore)s %(x)s -o %(ly)s"%locals()
> print cmd
> p = Popen(cmd,shell=True)
> p.wait()
> print "Done"
>
>
>
> Cheers,
> Mike
Thanks Michael for sharing it. I will try it later on my Gentoo-Linux.
Cheers.
- Re: Can't use NoteNames twice in score block ??, (continued)
- Re: Can't use NoteNames twice in score block ??, Michael Ellis, 2010/12/22
- Re: Can't use NoteNames twice in score block ??, Carl Sorensen, 2010/12/22
- Re: Can't use NoteNames twice in score block ??, Michael Ellis, 2010/12/22
- Re: Can't use NoteNames twice in score block ??, Michael Ellis, 2010/12/22
- Re: Can't use NoteNames twice in score block ??, jakob lund, 2010/12/23
- Re: Can't use NoteNames twice in score block ??, Michael Ellis, 2010/12/23
- Re: Can't use NoteNames twice in score block ??, jakob lund, 2010/12/23
- Re: Can't use NoteNames twice in score block ??, Michael Ellis, 2010/12/24
- Re: Can't use NoteNames twice in score block ??, Phil Hézaine, 2010/12/23
- Re: Can't use NoteNames twice in score block ??, Michael Ellis, 2010/12/23
- Re: Can't use NoteNames twice in score block ??,
Phil Hézaine <=
- Re: Can't use \clef inside NoteNames and similar contexts, Reinhold Kainhofer, 2010/12/23