Re: musicxml2ly in python

2022-02-25 Thread Jacques Menu
Hello Sebastian,This can also be done with a make file, but maybe that is not your use case. Doing so offers means to place the generated files in sub-folders and to remove them seamlessly. Also, only the .xml files modified or created since the last ‘make’ execution are converted.Attached is an example Makefile, which I use to convert all the .xml files in a folder with my xml2ly.It can be used with musicxml2ly too: drop this Makefile in the given folder and use it as shown below. ‘OPTIONS=...‘ is neccesary in this case because there is otherwise a default ‘-q’ (quiet) to be used by xml2ly. It can be as simple as  ‘OPTIONS=‘.HTH!JM—jacquesmenu@macmini: ~/musicformats-git-dev/files/musicxmlfiles/keys > make helpMakefile for converting MusicXML files to LilyPond scores.Supplied as part of the MusicFormats library, thanks to Dom Fober for providing it.Output files are written in sub-folders of the current folder.Available targets are:  'all' (default) : call the 'lily' target.  'lily'          : converts the set of MusicXML files to lilypond in folder   'pnglily'       : converts the output of 'lily' target to png in folder pnglily  'pdflily'       : converts the output of 'lily' target to pdf in folder pdflily  'midilily'      : converts the output of 'lily' target to pdf in folder midilily  'clean'         : removes the sub-folders containing the resultsOptions:  'XML2LY=/path/to/xml2ly  'OPTIONS=...  'LILYPOND=/path/to/lilypond  When those options are not specified, the tools are taken from the current PATH variable,  and OPTIONS contains '-q' (quiet mode) for xml2ly.jacquesmenu@macmini: ~/musicformats-git-dev/files/musicxmlfiles/keys > make XML2LY=musicxml2ly OPTIONS=--midiXML2LY   = musicxml2lyOPTIONS  = --midiLILYPOND = /Applications/LilyPond/lilypond-2.23.6/bin/lilypondmusicxml2ly version is: musicxml2ly (LilyPond) 2.22.1lilypond version is: GNU LilyPond 2.23.6 (running Guile 2.2)musicxml2ly --midi -o "lilypond/HumdrumScotKeys.ly" "HumdrumScotKeys.xml"musicxml2ly: Reading MusicXML from HumdrumScotKeys.xml ...musicxml2ly: Converting to LilyPond expressions...musicxml2ly: Output to `lilypond/HumdrumScotKeys.ly'musicxml2ly: Converting to current version (2.22.1) notations .../Applications/LilyPond/lilypond-2.23.6/bin/lilypond --pdf -l NONE -s -o "pdflily/HumdrumScotKeys" "lilypond/HumdrumScotKeys.ly"Contents of lilypond sub-folder:8 -rw-r--r--  1 jacquesmenu  staff  1708 Feb 25 16:14 lilypond/HumdrumScotKeys.lyContents of pdflily sub-folder:88 -rw-r--r--  1 jacquesmenu  staff  42039 Feb 25 16:14 pdflily/HumdrumScotKeys.pdfjacquesmenu@macmini: ~/musicformats-git-dev/files/musicxmlfiles/keys > ls -salRtotal 24 0 drwxr-xr-x    7 jacquesmenu  staff   224 Feb 25 16:14 . 0 drwxr-xr-x  108 jacquesmenu  staff  3456 Feb 25 07:46 ..16 -rw-r--r--@   1 jacquesmenu  staff  6148 Feb 25 12:51 .DS_Store 8 -rw-r--r--    1 jacquesmenu  staff  2634 Apr 22  2021 HumdrumScotKeys.xml 0 lrwxr-xr-x    1 jacquesmenu  staff    11 Feb 25 14:12 Makefile -> ../Makefile 0 drwxr-xr-x    3 jacquesmenu  staff    96 Feb 25 16:14 lilypond 0 drwxr-xr-x    4 jacquesmenu  staff   128 Feb 25 16:14 pdflily./lilypond:total 80 drwxr-xr-x  3 jacquesmenu  staff    96 Feb 25 16:14 .0 drwxr-xr-x  7 jacquesmenu  staff   224 Feb 25 16:14 ..8 -rw-r--r--  1 jacquesmenu  staff  1708 Feb 25 16:14 HumdrumScotKeys.ly./pdflily:total 96 0 drwxr-xr-x  4 jacquesmenu  staff    128 Feb 25 16:14 . 0 drwxr-xr-x  7 jacquesmenu  staff    224 Feb 25 16:14 .. 8 -rw-r--r--  1 jacquesmenu  staff    170 Feb 25 16:14 HumdrumScotKeys.midi88 -rw-r--r--  1 jacquesmenu  staff  42039 Feb 25 16:14 HumdrumScotKeys.pdfjacquesmenu@macmini: ~/musicformats-git-dev/files/musicxmlfiles/keys > make cleanjacquesmenu@macmini: ~/musicformats-git-dev/files/musicxmlfiles/keys > ls -saltotal 24 0 drwxr-xr-x    5 jacquesmenu  staff   160 Feb 25 15:57 . 0 drwxr-xr-x  108 jacquesmenu  staff  3456 Feb 25 07:46 ..16 -rw-r--r--@   1 jacquesmenu  staff  6148 Feb 25 12:51 .DS_Store 8 -rw-r--r--    1 jacquesmenu  staff  2634 Apr 22  2021 HumdrumScotKeys.xml 0 lrwxr-xr-x    1 jacquesmenu  staff    11 Feb 25 14:12 Makefile -> ../Makefile

Makefile
Description: Binary data


Re: musicxml2ly in python

2022-02-25 Thread Sebastian Adams
Hi Jean and Valentin,

Thanks to both of you for your help.

The find command in the terminal solves the problem perfectly, it iterates
over a folder. So that's one great way to do this

I think I see a way to do what Valentin suggested in
musicxml2ly_conversion.py - it looks like it's just a matter of changing a
few lines at the start of the main() function. I'll report back if I get
that to work, in case anybody is interested

Thanks,
Sebastian

On Fri, 25 Feb 2022 at 08:04, Jean Abou Samra  wrote:

> Le 25/02/2022 à 00:27, Sebastian Adams a écrit :
> > Does anybody out there have a Python script for converting a folder of
> > musicxml (.xml) files into .ly or know how to do this?
>
>
>
> Welcome to the list.
>
> This question sounds like you want to learn about what your shell
> can do. Assuming UNIX (not Windows, that is):
>
> find . -name "*.xml" -exec musicxml2ly {} \;
>
>
> Best,
> Jean
>
>


Re: musicxml2ly in python

2022-02-24 Thread Jean Abou Samra

Le 25/02/2022 à 00:27, Sebastian Adams a écrit :
Does anybody out there have a Python script for converting a folder of 
musicxml (.xml) files into .ly or know how to do this?




Welcome to the list.

This question sounds like you want to learn about what your shell
can do. Assuming UNIX (not Windows, that is):

find . -name "*.xml" -exec musicxml2ly {} \;


Best,
Jean




Re: musicxml2ly in python

2022-02-24 Thread Valentin Petzel
Hello Sebastian,

musicxml2ly is not a part of python-ly, but a standalone python script 
included with lilypond using lilylib. It shouldn’t be too hard to figure out 
how to turn this into a module.

The file does already come with a main method that is called on calling it as a 
script. Just copy this and modify it to take options as arguments instead of 
from CLI and you should be fine.

Valentin

Am Freitag, 25. Februar 2022, 00:27:24 CET schrieb Sebastian Adams:
> Hi All,
> 
> I spent a couple of hours trying to figure out whether I should be able to
> invoke the musicxml2ly command in python-ly and didn't get anywhere.
> 
> Does anybody out there have a Python script for converting a folder of
> musicxml (.xml) files into .ly or know how to do this?
> 
> Thanks in advance! (and nice to have joined the list!)
> 
> Sebastian



signature.asc
Description: This is a digitally signed message part.


Re: musicxml2ly problem as of 2.20.0

2021-03-26 Thread Jacques Menu
Calling lilypond same the way doesn’t solve the original issue, though:

/Applications/LilyPond-2.22.0-1.app/Contents/Re
sources/bin/lilypond
dyld: Library not loaded: @executable_path/../lib/libintl.8.dylib
  Referenced from: 
/Applications/LilyPond-2.22.0-1.app/Contents/Resources/bin/lilypond
  Reason: image not found
Abort trap: 6


> Le 26 mars 2021 à 22:45, Jacques Menu  a écrit :
> 
> Hello Jean,
> 
> Thanks a lot, that idea didn’t come to me, and it works fine.
> 
> Thanks for the workaround!
> 
> JM
> 
>> Le 26 mars 2021 à 18:09, Jean Abou Samra > > a écrit :
>> 
>> Doesn't ring any bell here :-(  Any Mac OS experts out there?
>> 
>> 
>> And, what happens if you run
>>   /Applications/LilyPond-2.22.0-1.app/Contents/Resources/bin/musicxml2ly
>> directly?
>> 
>> Thanks,
>> Jean
>> 
>> 
> 



Re: musicxml2ly problem as of 2.20.0

2021-03-26 Thread Jacques Menu
Hello Jean,

Thanks a lot, that idea didn’t come to me, and it works fine.

Thanks for the workaround!

JM

> Le 26 mars 2021 à 18:09, Jean Abou Samra  a écrit :
> 
> Doesn't ring any bell here :-(  Any Mac OS experts out there?
> 
> 
> And, what happens if you run
>   /Applications/LilyPond-2.22.0-1.app/Contents/Resources/bin/musicxml2ly
> directly?
> 
> Thanks,
> Jean
> 
> 



Re: musicxml2ly problem as of 2.20.0

2021-03-26 Thread Jean Abou Samra

Le 26/03/2021 à 17:57, Jacques Menu a écrit :


Hello Jean,

I get the same problem with 2.22.0-1:

The version of Python that comes in the bundle is:

*menu@macbookprojm*: 
/Applications/LilyPond-2.22.0-1.app/Contents/Resources/bin > ls -sal 
python*
   0 lrwxr-xr-x@ 1 menu  admin       45 Jan 10 15:49 python3 -> 
LilyPond.app/Contents/Resources/bin/python3.7

5928 -rwxr-xr-x@ 1 menu  admin  3033724 Jan 10 15:49 python3.7
5928 -rwxr-xr-x@ 1 menu  admin  3033724 Jan 10 15:49 python3.7m


When running the Lily GUI:

 dyld: Library not loaded: @executable_path/../lib/libintl.8.dylib
  Referenced from: 
/Applications/LilyPond-2.22.0-1.app/Contents/Resources/bin/lilypond

  Reason: image not found


and libintl.8.dylib is actually in:

*menu@macbookprojm*: /Applications/LilyPond-2.22.0-1.app > ls -sal 
Contents/Resources/lib/libintl.8.dylib
0 lrw-r--r--@ 1 menu  admin  49 Jan 10 15:49 
Contents/Resources/lib/libintl.8.dylib -> 
LilyPond.app/Contents/Resources/lib/libintl.dylib



Doesn't ring any bell here :-(  Any Mac OS experts out there?

And, what happens if you run
/Applications/LilyPond-2.22.0-1.app/Contents/Resources/bin/musicxml2ly
directly?

Thanks,
Jean



Re: musicxml2ly problem as of 2.20.0

2021-03-26 Thread Jacques Menu
Hello Jean,

I get the same problem with 2.22.0-1:


The version of Python that comes in the bundle is:

menu@macbookprojm: /Applications/LilyPond-2.22.0-1.app/Contents/Resources/bin > 
ls -sal python* 
   0 lrwxr-xr-x@ 1 menu  admin   45 Jan 10 15:49 python3 -> 
LilyPond.app/Contents/Resources/bin/python3.7
5928 -rwxr-xr-x@ 1 menu  admin  3033724 Jan 10 15:49 python3.7
5928 -rwxr-xr-x@ 1 menu  admin  3033724 Jan 10 15:49 python3.7m


When running the Lily GUI:

 dyld: Library not loaded: @executable_path/../lib/libintl.8.dylib
  Referenced from: 
/Applications/LilyPond-2.22.0-1.app/Contents/Resources/bin/lilypond
  Reason: image not found


and libintl.8.dylib is actually in:

menu@macbookprojm: /Applications/LilyPond-2.22.0-1.app > ls -sal 
Contents/Resources/lib/libintl.8.dylib
0 lrw-r--r--@ 1 menu  admin  49 Jan 10 15:49 
Contents/Resources/lib/libintl.8.dylib -> 
LilyPond.app/Contents/Resources/lib/libintl.dylib


JM

> Le 26 mars 2021 à 17:35, Jean Abou Samra  a écrit :
> 
> Le 26/03/2021 à 17:28, Jacques Menu a écrit :
> 
>> Hello folks,
>> 
>> 
>> I have the following version:
>> 
>> menu@macbookprojm: ~/libmusicxml-git/soundnotation/Beispiel1 > lilypond -v
>> GNU LilyPond 2.20.0
>> 
>> Copyright (c) 1996--2015 by
>>   Han-Wen Nienhuys 
>>   Jan Nieuwenhuizen 
>>   and others.
>> 
>> This program is free software.  It is covered by the GNU General Public
>> License and you are welcome to change it and/or distribute copies of it
>> under certain conditions.  Invoke as `lilypond --warranty' for more
>> information.
>> 
>> 
>> When I run musicxml2ly, I get:
>> 
>> menu@macbookprojm: ~/libmusicxml-git/soundnotation/Beispiel1 > musicxml2ly 
>> Beispiel-1.xml
>>   File "/Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly", line 
>> 2264
>> if current_staff and staff <> current_staff and not 
>> n.get_maybe_exist_named_child('chord'):
>> ^
>> SyntaxError: invalid syntax
>> menu@macbookprojm: ~/libmusicxml-git/soundnotation/Beispiel1 >
>> 
>> 
>> Have there been evolutions in musicxml2ly recently?
>> 
>> JM
> 
> 
> Hi Jacques,
> 
> Apparently the script is being run by Python 3.
> Until the latest stable version, namely 2.22,
> musicxml2ly et al. were Python 2-only (and not
> even Python 2.7 but 2.4). They got ported by Jonas.
> I don't have a clue why the wrong version is
> picked, but would you try with version 2.22?
> (Assuming that you can actually execute it, which
> doesn't seem granted from your previous message
> about mysterious Mac OS installation problems...)
> 
> Cheers,
> Jean
> 



Re: musicxml2ly problem as of 2.20.0

2021-03-26 Thread Jean Abou Samra

Le 26/03/2021 à 17:28, Jacques Menu a écrit :


Hello folks,


I have the following version:

menu@macbookprojm: ~/libmusicxml-git/soundnotation/Beispiel1 > lilypond -v
GNU LilyPond 2.20.0

Copyright (c) 1996--2015 by
   Han-Wen Nienhuys 
   Jan Nieuwenhuizen 
   and others.

This program is free software.  It is covered by the GNU General Public
License and you are welcome to change it and/or distribute copies of it
under certain conditions.  Invoke as `lilypond --warranty' for more
information.


When I run musicxml2ly, I get:

menu@macbookprojm: ~/libmusicxml-git/soundnotation/Beispiel1 > musicxml2ly 
Beispiel-1.xml
   File "/Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly", line 
2264
 if current_staff and staff <> current_staff and not 
n.get_maybe_exist_named_child('chord'):
 ^
SyntaxError: invalid syntax
menu@macbookprojm: ~/libmusicxml-git/soundnotation/Beispiel1 >


Have there been evolutions in musicxml2ly recently?

JM



Hi Jacques,

Apparently the script is being run by Python 3.
Until the latest stable version, namely 2.22,
musicxml2ly et al. were Python 2-only (and not
even Python 2.7 but 2.4). They got ported by Jonas.
I don't have a clue why the wrong version is
picked, but would you try with version 2.22?
(Assuming that you can actually execute it, which
doesn't seem granted from your previous message
about mysterious Mac OS installation problems...)

Cheers,
Jean




Re: musicxml2ly

2020-05-25 Thread Jonas Hahnfeld
Am Montag, den 25.05.2020, 16:17 +0200 schrieb Lukas-Fabian Moser:
> On Sat, 23 May 2020, Martin Tarenskeen wrote:
> > > > There must be something seriously broken if musicxml2ly can't convert
> > > > this
> > > 
> > > P.S. I just tried downgrading to lilypond 2.19.84 (from Fedora repo) and
> > > the problem disappeared. So it does look like a regression to me.
> > 
> > Thanks Martin; I’ve opened this tracker page:
> > https://gitlab.com/lilypond/lilypond/-/issues/5994
> > 
> > It seems weird that such a problem wasn’t caught by our
> > pretty-extensive test suite, so I’m wondering what might be particular
> > to your test file.  (At any rate, this will need to be added to the
> > regtests once the problem’s been solved.)
> 
> First bad commit seems to be 21ea33e1cdd75f602b70071e69899370004db30b 
> (Issue 5823: musicxml2ly: Emit bar checks for all voices by Jonas 
> Hahnfeld). I'm not sure that this is plausible, maybe I was to naive in 
> bisecting.

Fully correct, reverting that one fixes the problem. Which also
explains why the removed check was there in the first place: It only
added bar checks for the very first note in each measure. Unfortunately
I don't see an easy way to add bar checks for the first note in each
measure of each voice...

Jonas


signature.asc
Description: This is a digitally signed message part


Re: musicxml2ly

2020-05-25 Thread Lukas-Fabian Moser

On Sat, 23 May 2020, Martin Tarenskeen wrote:

There must be something seriously broken if musicxml2ly can't convert
this

P.S. I just tried downgrading to lilypond 2.19.84 (from Fedora repo) and
the problem disappeared. So it does look like a regression to me.

Thanks Martin; I’ve opened this tracker page:
https://gitlab.com/lilypond/lilypond/-/issues/5994

It seems weird that such a problem wasn’t caught by our
pretty-extensive test suite, so I’m wondering what might be particular
to your test file.  (At any rate, this will need to be added to the
regtests once the problem’s been solved.)


First bad commit seems to be 21ea33e1cdd75f602b70071e69899370004db30b 
(Issue 5823: musicxml2ly: Emit bar checks for all voices by Jonas 
Hahnfeld). I'm not sure that this is plausible, maybe I was to naive in 
bisecting.


Best
Lukas




Re: musicxml2ly

2020-05-25 Thread Valentin Villenave
On 5/23/20, Martin Tarenskeen  wrote:
>
> On Sat, 23 May 2020, Martin Tarenskeen wrote:
>> There must be something seriously broken if musicxml2ly can't convert
>> this
>
> P.S. I just tried downgrading to lilypond 2.19.84 (from Fedora repo) and
> the problem disappeared. So it does look like a regression to me.

Thanks Martin; I’ve opened this tracker page:
https://gitlab.com/lilypond/lilypond/-/issues/5994

It seems weird that such a problem wasn’t caught by our
pretty-extensive test suite, so I’m wondering what might be particular
to your test file.  (At any rate, this will need to be added to the
regtests once the problem’s been solved.)

Cheers,
-- V.



Re: musicxml2ly

2020-05-23 Thread Martin Tarenskeen




On Sat, 23 May 2020, Martin Tarenskeen wrote:


Attached: a simple single F chord

created from Musescore 3.4.2 (simpleChord.mscz), exported as musicxml,
(simpleChord.musicxml) and converted using musicxml2ly without extra options 
(simpleChord.ly).


Using Lilypond 2.21.1 on Linux Fedora 32.

There must be something seriously broken if musicxml2ly can't convert this


P.S. I just tried downgrading to lilypond 2.19.84 (from Fedora repo) and 
the problem disappeared. So it does look like a regression to me.


--

MT



Re: musicxml2ly 2.20 bug

2020-03-22 Thread Jacques Menu
Hello David*2,

You may be interested in xml2ly 0.93, which I’m currently finalizing. The doc 
is at https://github.com/grame-cncm/libmusicxml/tree/lilypond/doc 
, in particular 
https://github.com/grame-cncm/libmusicxml/blob/lilypond/doc/introductionToMusicxml/IntroductionToMusicXML.pdf,
 which I presented at the recent conference in Salzburg.

All you need to build the most recent version is a C++-11 compiler and cmake.

If you send me a sample file, I’ll send you the resulting LilyPond file.

HTH!

JM

> Le 22 mars 2020 à 16:08, David Kastrup  a écrit :
> 
> David Wright  writes:
> 
>> On Sun 22 Mar 2020 at 10:54:29 (+0300), Павел Буданов wrote:
>>> I tried to use musicxml2ly from official repository of manjaro linux and
>>> get this output:
>>> Traceback (most recent call last):
>>>  File "/usr/bin/musicxml2ly", line 44, in 
>>>import lilylib as ly
>>> ImportError: No module named lilylib
>>> Then I tried to install lilypond from official cite via shell script. It
>>> gives following output:
>>>  File "./lilypond/usr/bin/musicxml2ly", line 2264
>>>if current_staff and staff <> current_staff and not
>>> n.get_maybe_exist_named_child('chord'):
>>>^
>>> SyntaxError: invalid syntax
>> 
>> If you run musicxml2ly from the official repository of manjaro linux,
>> it should use the lilypond from the official repository of manjaro
>> linux as well.
>> 
>> If your only lilypond is the one downloaded from the "official [s]ite",
>> by which I assume you mean lilypond.org, then you should run the
>> musicxml2ly that's included in the download.
>> 
>> Both methods include the code to ensure that they use the correct
>> version of Python, python2. It looks as if you've circumvented that
>> code somehow, and are running python3 instead. I've never run a
>> system where "python" means python3, but manjaro/archlinux is one
>> of these, so the wrapper is specially important. (Fedora is another.)
> 
> For what it's worth, Ubuntu "Focal" seems to have no "python" and you
> need to be explicit about whether you want "python2" or "python3".
> 
> -- 
> David Kastrup
> 



Re: musicxml2ly 2.20 bug

2020-03-22 Thread David Kastrup
David Wright  writes:

> On Sun 22 Mar 2020 at 10:54:29 (+0300), Павел Буданов wrote:
>> I tried to use musicxml2ly from official repository of manjaro linux and
>> get this output:
>> Traceback (most recent call last):
>>   File "/usr/bin/musicxml2ly", line 44, in 
>> import lilylib as ly
>> ImportError: No module named lilylib
>> Then I tried to install lilypond from official cite via shell script. It
>> gives following output:
>>   File "./lilypond/usr/bin/musicxml2ly", line 2264
>> if current_staff and staff <> current_staff and not
>> n.get_maybe_exist_named_child('chord'):
>> ^
>> SyntaxError: invalid syntax
>
> If you run musicxml2ly from the official repository of manjaro linux,
> it should use the lilypond from the official repository of manjaro
> linux as well.
>
> If your only lilypond is the one downloaded from the "official [s]ite",
> by which I assume you mean lilypond.org, then you should run the
> musicxml2ly that's included in the download.
>
> Both methods include the code to ensure that they use the correct
> version of Python, python2. It looks as if you've circumvented that
> code somehow, and are running python3 instead. I've never run a
> system where "python" means python3, but manjaro/archlinux is one
> of these, so the wrapper is specially important. (Fedora is another.)

For what it's worth, Ubuntu "Focal" seems to have no "python" and you
need to be explicit about whether you want "python2" or "python3".

-- 
David Kastrup



Re: musicxml2ly 2.20 bug

2020-03-22 Thread David Wright
On Sun 22 Mar 2020 at 10:54:29 (+0300), Павел Буданов wrote:
> I tried to use musicxml2ly from official repository of manjaro linux and
> get this output:
> Traceback (most recent call last):
>   File "/usr/bin/musicxml2ly", line 44, in 
> import lilylib as ly
> ImportError: No module named lilylib
> Then I tried to install lilypond from official cite via shell script. It
> gives following output:
>   File "./lilypond/usr/bin/musicxml2ly", line 2264
> if current_staff and staff <> current_staff and not
> n.get_maybe_exist_named_child('chord'):
> ^
> SyntaxError: invalid syntax

If you run musicxml2ly from the official repository of manjaro linux,
it should use the lilypond from the official repository of manjaro
linux as well.

If your only lilypond is the one downloaded from the "official [s]ite",
by which I assume you mean lilypond.org, then you should run the
musicxml2ly that's included in the download.

Both methods include the code to ensure that they use the correct
version of Python, python2. It looks as if you've circumvented that
code somehow, and are running python3 instead. I've never run a
system where "python" means python3, but manjaro/archlinux is one
of these, so the wrapper is specially important. (Fedora is another.)

Cheers,
David.



Re: musicxml2ly 2.20 bug

2020-03-22 Thread mari+lilypond
It's no bug in musicxml2ly. I compiled v2.20 from source and it works as
expected. Either it's a problem with the manjaro repository or with your
python environment.

On 3/22/20 10:15 AM, Martin Tarenskeen wrote:
> 
> 
> On Sun, 22 Mar 2020, Павел Буданов wrote:
> 
>> I tried to use musicxml2ly from official repository of manjaro linux
>> and get this output:
>> Traceback (most recent call last):
>>   File "/usr/bin/musicxml2ly", line 44, in 
>>     import lilylib as ly
>> ImportError: No module named lilylib
>> Then I tried to install lilypond from official cite via shell script.
>> It gives following output:
>>   File "./lilypond/usr/bin/musicxml2ly", line 2264
>>     if current_staff and staff <> current_staff and not
>> n.get_maybe_exist_named_child('chord'):
>>                                 ^
>> SyntaxError: invalid syntax
>>
>>
> 
> Python 2 vs 3 issue?
> 
> 
> MT



Re: musicxml2ly 2.20 bug

2020-03-22 Thread Martin Tarenskeen



On Sun, 22 Mar 2020, Павел Буданов wrote:


I tried to use musicxml2ly from official repository of manjaro linux and get 
this output:
Traceback (most recent call last):
  File "/usr/bin/musicxml2ly", line 44, in 
    import lilylib as ly
ImportError: No module named lilylib
Then I tried to install lilypond from official cite via shell script. It gives 
following output:
  File "./lilypond/usr/bin/musicxml2ly", line 2264
    if current_staff and staff <> current_staff and not 
n.get_maybe_exist_named_child('chord'):
                                ^
SyntaxError: invalid syntax




Python 2 vs 3 issue?


MT

Re: musicxml2ly was re abc2ly

2018-12-10 Thread Urs Liska


Am 10.12.18 um 13:22 schrieb Andrew Bernard:
Using musicxml2ly with 2.19.82 on a file converted from ABC with the 
current downloadbale versionof abc2xml, I get a badly messed up header 
block, which throws errors in lilypond. Here's an example of a tune 
converted from thesession.org , perfectly good 
ABC notation:


\header {
    source =
"^@h^@t^@t^@p^@s^@:^@/^@/^@t^@h^@e^@s^@e^@s^@s^@i^@o^@n^@.^@o^@r^@g^@/^@t^@u^@n^@e^@s^@/^@6^@9^@#^@s^@e^@t^@t^@i^@n^@g^@1^@2^@5^@3^@3^@"
    ^@
    encoder =  "^@a^@b^@c^@2^@x^@m^@l^@ ^@v^@e^@r^@s^@i^@o^@n^@ 
^@2^@1^@8^@" ^@

    encodingdate =  "^@2^@0^@1^@8^@-^@1^@2^@-^@1^@0^@" ^@
    title =  "^@M^@o^@r^@n^@i^@n^@g^@ ^@D^@e^@w^@,^@ ^@T^@h^@e^@" ^@
}

[You can see this effect in vi.]

On Debian 9.

Has anybody else encountered this problem?



Yes, this was discussed a few times recently and seems to be caused by 
an encoding issue with the ancient Python version shipped with 
LilyPond/musicxml2ly (one of your all-time favourites ;-/ )


Urs



Andrew



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly makes an apparently defective lilypond file

2016-12-15 Thread Jacques Menu Muzhic
Hello Patrick,

I did as you said with LP 2.19.44 and got in the end what follows.

JM

--

\version "2.19.47"
% automatically converted by musicxml2ly from test.xml
\pointAndClickOff

\header {
encodingsoftware =  "MuseScore 2.0.3.1"
encodingdate =  "2016-12-15"
}

#(set-global-staff-size 20.1587428571)
\paper {

paper-width = 21.0\cm
paper-height = 29.7\cm
top-margin = 1.0\cm
bottom-margin = 2.0\cm
left-margin = 1.0\cm
right-margin = 1.0\cm
indent = 1.61538461538\cm
short-indent = 1.29230769231\cm
}
\layout {
\context { \Score
autoBeaming = ##f
}
}
PartPOneVoiceOne =  \relative c'' {
\clef "treble" \key c \major \numericTimeSignature\time 4/4 | % 1
\tempo 4=60 | % 1
\stemDown c4 r4 r2 }

PartPOneVoiceOneLyricsOne =  \lyricmode {\set ignoreMelismata = ##t
"creator: "
}


% The score definition
\score {
<<

\new Staff
<<
\set Staff.instrumentName = "Piano"
\set Staff.shortInstrumentName = "Pia."

\context Staff << 
\mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
\context Voice = "PartPOneVoiceOne" {  \PartPOneVoiceOne }
\new Lyrics \lyricsto "PartPOneVoiceOne" { \set stanza = "1." 
\PartPOneVoiceOneLyricsOne }
>>
>>

>>
\layout {}
% To create MIDI output, uncomment the following line:
%  \midi {\tempo 4 = 60 }
}





> Le 14 déc. 2016 à 18:27, Patrick Karl  a écrit :
> 
> So, I have the following lilypond file, named test.ly:
> 
> 
> 
> 
>> \version "2.19.46"
>> music = { c'' }
>> \score {
>>   \new Staff \music
>>   \layout { }
>>   \midi { }
>> }
> 
> I compile it so:  lilypond test.ly
> 
> which generates a pdf file and a midi file.
> 
> I open the midi file in Musescore 2.0.3.1 and export an xml file, named 
> test_midi_Musescore.xml
> 
> 
> 
> I run musicxml2ly test_midi_Musescore.xml, which generates a lilypond file 
> named test_midi_Musescore.ly.
> 
> 
> 
> There seem to be two problems with the output of musicxml2ly:
> 
>   *  file test_midi_Musescore.ly produces: test_midi_Musescore.ly: data
> 
>   It should probably produce:  test_midi_Musescore.ly:  ASCII text.  
> Another indication that something is aglee with test_midi_Musescore.ly is the 
> output of "more test_midi_Musescore.ly", namely:  "test_midi_Musescore.ly" 
> may be a binary file.  See it anyway? 
> 
> 
> 
>   *  lilypond is unable to compile test_midi_Musescore.ly.  It fails with
> 
> 
> 
> pat$ lilypond test_midi_Musescore.ly
> GNU LilyPond 2.19.46
> Processing `test_midi_Musescore.ly'
> Parsing...
> test_midi_Musescore.ly:6:25: error: EOF found inside string
> encodingsoftware =  
> "
> test_midi_Musescore.ly:6:25: error: syntax error, unexpected end of input, 
> expecting \header
> encodingsoftware =  
> "
> fatal error: failed files: "test_midi_Musescore.ly"
> 
> I am attaching test.midi, test_midi_Musescore.ly and test_midi_Musescore.xml.
> 
> 
> 
> Is there a workaround?  Is this a bug?
> 
> 
> 
> 
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: MusicXML2Ly: Problem with minor chords

2016-08-25 Thread David Kastrup
Jacques Menu Muzhic  writes:

>> Le 17 août 2016 à 21:26, David Kastrup  a écrit:
>> 
>> Johan Vromans  writes:
>> 
>>> David Kastrup  wrote:
>>> 
 ... the change to let
 c:5 exclude the third was introduced as late as version 2.19.28).
>>> 
>>> Does that mean that there are no (regression)tests for musicxml2ly?
>> 
>> Probably not enough.
>
> BTW, how are such regression tests devised and organized?

For musicxml2ly I have no idea really.  Just take a look at what's there
I guess.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: MusicXML2Ly: Problem with minor chords

2016-08-19 Thread Jacques Menu Muzhic
BTW, how are such regression tests devised and organized?

JM

> Le 17 août 2016 à 21:26, David Kastrup  a écrit :
> 
> Johan Vromans  writes:
> 
>> David Kastrup  wrote:
>> 
>>> ... the change to let
>>> c:5 exclude the third was introduced as late as version 2.19.28).
>> 
>> Does that mean that there are no (regression)tests for musicxml2ly?
> 
> Probably not enough.
> 
> -- 
> David Kastrup
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: MusicXML2Ly: Problem with minor chords

2016-08-17 Thread David Kastrup
Johan Vromans  writes:

> David Kastrup  wrote:
>
>> ... the change to let
>> c:5 exclude the third was introduced as late as version 2.19.28).
>
> Does that mean that there are no (regression)tests for musicxml2ly?

Probably not enough.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: MusicXML2Ly: Problem with minor chords

2016-08-17 Thread Johan Vromans
David Kastrup  wrote:

> ... the change to let
> c:5 exclude the third was introduced as late as version 2.19.28).

Does that mean that there are no (regression)tests for musicxml2ly?

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: MusicXML2Ly: Problem with minor chords

2016-08-17 Thread Johan Vromans
On Wed, 17 Aug 2016 14:15:02 +0200
David Kastrup  wrote:

> Well, musicxml2ly.py presumably also generates a \version header, and
> running convert-ly on the resulting file possibly fixes a number of
> those problems (even though it complicates the rules, the change to let
> c:5 exclude the third was introduced as late as version 2.19.28).

  $ /usr/bin/musicxml2ly minor.xml 
  musicxml2ly: Reading MusicXML from minor.xml ...
  musicxml2ly: Converting to LilyPond expressions...
  musicxml2ly: Output to `minor.ly'
  musicxml2ly: Converting to current version (2.19.45) notations ...

As you can see from the last line, musicxml2ly runs convert-ly. The
\version of the generated minor.ly is

  \version "2.19.45"

> Nevertheless it seems like a good idea to change musicxml2ly.py to
> generate output compatible with both older and newer versions.

Patch attached.

I don't know what to do with the major-minor chord.

-- Johan
--- /usr/bin/musicxml2ly	2016-07-11 05:38:00.0 +0200
+++ musicxml2ly	2016-08-16 23:16:59.894187641 +0200
@@ -1620,10 +1620,10 @@
 return r
 
 chordkind_dict = {
-'major': r'{}:5',
-'minor': r'{}:m5',
-'augmented': r'{}:aug5',
-'diminished': r'{}:dim5',
+'major': r'{}',
+'minor': r'{}:m',
+'augmented': r'{}:aug',
+'diminished': r'{}:dim',
 # Sevenths:
 'dominant': r'{}:7',
 'dominant-seventh': r'{}:7',
@@ -1631,7 +1631,7 @@
 'minor-seventh': r'{}:m7',
 'diminished-seventh': r'{}:dim7',
 'augmented-seventh': r'{}:aug7',
-'half-diminished': r'{}:dim5m7',
+'half-diminished': r'{}:m7.5-',
 'major-minor': r'{}:maj7m5',
 # Sixths:
 'major-sixth': r'{}:6',
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: MusicXML2Ly: Problem with minor chords

2016-08-17 Thread David Kastrup
Johan Vromans  writes:

> Johan Vromans  wrote:
>
>> is translated into
>> 
>>   d:m5
>> 
>> and apparently not understood -- lilypond renders it as a major D chord
>> without warning.
>
> The code in musicxml2ly.py does, indeed, generate :m5 for minor.
>
> Surprisingly, the NR, A.2 Common chord modifiers, reads:
>
>   Major   Major third, perfect fifth   5 or nothing   c1:5   notes: c g
>   Minor   Minor third, perfect fifth   m or m5c1:m   notes: c ees g
>
> Despite the examples showing otherwise, this could easily be
> interpreted to mean that c is the same as c:5, and that c1:m is the
> same as c:m. However, the trailing '5' makes a power chord (no
> 3rd). In the case of minor the distinction with the major chord is
> lost.
>
> I really wonder if it is intentional behaviour for musicxml2ly to use m5
> for minor.
> Same goes for :5 (for major), :aug5, :dim5, :dim5m7, and :maj5m5.

Well, musicxml2ly.py presumably also generates a \version header, and
running convert-ly on the resulting file possibly fixes a number of
those problems (even though it complicates the rules, the change to let
c:5 exclude the third was introduced as late as version 2.19.28).

Nevertheless it seems like a good idea to change musicxml2ly.py to
generate output compatible with both older and newer versions.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: MusicXML2Ly: Problem with minor chords

2016-08-17 Thread Johan Vromans
Johan Vromans  wrote:

> is translated into
> 
>   d:m5
> 
> and apparently not understood -- lilypond renders it as a major D chord
> without warning.

The code in musicxml2ly.py does, indeed, generate :m5 for minor.

Surprisingly, the NR, A.2 Common chord modifiers, reads:

  Major   Major third, perfect fifth   5 or nothing   c1:5   notes: c g
  Minor   Minor third, perfect fifth   m or m5c1:m   notes: c ees g

Despite the examples showing otherwise, this could easily be interpreted to
mean that c is the same as c:5, and that c1:m is the same as c:m. However,
the trailing '5' makes a power chord (no 3rd). In the case of minor the
distinction with the major chord is lost.

I really wonder if it is intentional behaviour for musicxml2ly to use m5
for minor.
Same goes for :5 (for major), :aug5, :dim5, :dim5m7, and :maj5m5.

-- Johan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly evolution

2015-10-29 Thread Knute Snortum
http://www.lilypond.org/doc/v2.19/Documentation/usage/invoking-musicxml2ly


Knute Snortum
(via Gmail)

On Thu, Oct 29, 2015 at 3:03 AM, Menu Jacques  wrote:

> Hello folks,
>
> I’ve started looking at the internals of musicxml2ly, to try and
> understand what it does.
> Is there documentation about this to be found somewhere?
>
> Thanks for the help!
>
> JM
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly evolution

2015-10-29 Thread Menu Jacques
Hello Knute,

Sorry for not being more clear, it’s documentation about the source code that 
I’m looking for.

JM

> Le 29 oct. 2015 à 15:48, Knute Snortum  a écrit :
> 
> http://www.lilypond.org/doc/v2.19/Documentation/usage/invoking-musicxml2ly 
> 
> 
> 
> Knute Snortum
> (via Gmail)
> 
> On Thu, Oct 29, 2015 at 3:03 AM, Menu Jacques  > wrote:
> Hello folks,
> 
> I’ve started looking at the internals of musicxml2ly, to try and understand 
> what it does.
> Is there documentation about this to be found somewhere?
> 
> Thanks for the help!
> 
> JM
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org 
> https://lists.gnu.org/mailman/listinfo/lilypond-user 
> 
> 

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly evolution

2015-10-29 Thread Federico Bruni
Il giorno gio 29 ott 2015 alle 17:56, Menu Jacques  
ha scritto:
Sorry for not being more clear, it’s documentation about the source 
code that I’m looking for.


AFAIK it doesn't exist, as it's an "external" script.

I suggest trying to contact people who have worked or are still working 
on it. First of all, the Philomelos project:

https://github.com/Philomelos/lilypond-musicxml2ly-dev




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly evolution

2015-10-29 Thread Menu Jacques
Thanks Federico, I’ve sent them a mail.

JM

> Le 29 oct. 2015 à 18:10, Federico Bruni  a écrit :
> 
> Il giorno gio 29 ott 2015 alle 17:56, Menu Jacques  ha 
> scritto:
>> Sorry for not being more clear, it’s documentation about the source code 
>> that I’m looking for.
> 
> AFAIK it doesn't exist, as it's an "external" script.
> 
> I suggest trying to contact people who have worked or are still working on 
> it. First of all, the Philomelos project:
> https://github.com/Philomelos/lilypond-musicxml2ly-dev
> 
> 
> 


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-03-21 Thread Jim Long
On Fri, Mar 20, 2015 at 12:20:56AM +0100, Martin Tarenskeen wrote:
 
 I am not a Mac user. But first thing I thought was: doesn't a Mac have a 
 PATH variable like Linux and Windows have, where the long path to 
 ./bin can be added before having to type such long commands?

Also, like most UNIX OSes, OSX probably has an 'alias' command,
so those command-line params can also be specified once and then
not re-typed later:

PATH=${PATH}:/Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly
alias musicxml2ly='musicxml2ly --nd --nrp --npl --no-beaming -m 
--language=english'

for f in *.xml; do musicxml2ly $f; done



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-03-21 Thread Noeck
 PATH=${PATH}:/Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly

The folder should be in the path, not the executable:

PATH=${PATH}:/Applications/LilyPond.app/Contents/Resources/bin

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-03-21 Thread Jim Long
D'oh!  Thanks for catching my proofreading error.


On Sun, Mar 22, 2015 at 12:20:46AM +0100, Noeck wrote:
  PATH=${PATH}:/Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly
 
 The folder should be in the path, not the executable:
 
 PATH=${PATH}:/Applications/LilyPond.app/Contents/Resources/bin
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-03-20 Thread Michael Hendry

 On 19 Mar 2015, at 23:20, Martin Tarenskeen m.tarensk...@zonnet.nl wrote:
 
 
 
 On Fri, 20 Mar 2015, Noeck wrote:
 
 Hi Craig,
 
 Do I append for f in *.xml to the end of my command;
 
 No, you put all your command within the for loop:
 
 for f in *.xml; do
 /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly  --nd
 --nrp --npl --no-beaming -m --language=english $f; done
 
 (all this is one line – or written in several lines:)
 
 for f in *.xml
 do
 /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly \
 --nd --nrp --npl --no-beaming -m --language=english $f
 done
 
 I hope this syntax is the same on a Mac.
 
 
 I am not a Mac user. But first thing I thought was: doesn't a Mac have a PATH 
 variable like Linux and Windows have, where the long path to ./bin can be 
 added before having to type such long commands?

Indeed it does, but as installed on the Mac “out-of-the-box” Lilypond doesn’t 
set up the PATH variable. This means that Lilypond itself can’t be run by 
entering “lilypond” at the command line.

As given above, the command is self-contained, which I think is a Good Thing! 

It’s (quite reasonably) left as an exercise for the reader to change the PATH, 
or put the whole command into a script.

Michael

 
 -- 
 
 MT___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-03-20 Thread Knute Snortum
In DOS you can use this:

@echo off
setlocal enableDelayedExpansion

set MYDIR=C:\bin
for /F %%x in ('dir /B/D %MYDIR%') do (
  echo File: %%x
)



Knute Snortum
(via Gmail)

On Thu, Mar 19, 2015 at 1:18 PM, Urs Liska u...@openlilylib.org wrote:



 Am 19.03.2015 um 21:14 schrieb Noeck:

 Hi Craig,

 on which OS? On Linux (bash) you can do this:

 for f in folder/*.xml; do musicxml2ly $f; done

 where folder is your folder containing the xml files.


 or simply

 for f in *.xml
 when you are already in the same folder.
 (I think this should equally work on a Mac).

 Urs


  HTH,
 Joram


  Is there a command for converting a whole folder of xml files to
 lilypond, rather than doing them one by one?

 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user



 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-03-19 Thread Noeck
Hi Craig,

 Do I append for f in *.xml to the end of my command;

No, you put all your command within the for loop:

for f in *.xml; do
/Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly  --nd
--nrp --npl --no-beaming -m --language=english $f; done

(all this is one line – or written in several lines:)

for f in *.xml
do
  /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly \
  --nd --nrp --npl --no-beaming -m --language=english $f
done

I hope this syntax is the same on a Mac.

HTH,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-03-19 Thread Stephen MacNeil
for i in *.xml; do path/musicxml2ly  --nd --nrp --npl --no-beaming -m
--language=english $i; done

path shouldn't be needed if musicxml2lyis in your path
 so this should be fine

for i in *.xml; do musicxml2ly  --nd --nrp --npl --no-beaming -m
--language=english $i; done

Stephen


On Thu, Mar 19, 2015 at 6:56 PM, Craig Dabelstein 
craig.dabelst...@gmail.com wrote:

 Thanks for your responses everyone. I'm on a Mac.

 Do I append for f in *.xml to the end of my command; e.g.

 /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly  --nd --nrp
 --npl --no-beaming -m --language=english for f in *.xml

 Craig



 On Fri, 20 Mar 2015 at 06:58 Stephen MacNeil classicalja...@gmail.com
 wrote:

 if you use linux you can do


 for i in ... ;
 do ;
 done

 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-03-19 Thread Craig Dabelstein
Thanks for your responses everyone. I'm on a Mac.

Do I append for f in *.xml to the end of my command; e.g.

/Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly  --nd --nrp
--npl --no-beaming -m --language=english for f in *.xml

Craig



On Fri, 20 Mar 2015 at 06:58 Stephen MacNeil classicalja...@gmail.com
wrote:

 if you use linux you can do


 for i in ... ;
 do ;
 done

 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-03-19 Thread Martin Tarenskeen



On Fri, 20 Mar 2015, Noeck wrote:


Hi Craig,


Do I append for f in *.xml to the end of my command;


No, you put all your command within the for loop:

for f in *.xml; do
/Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly  --nd
--nrp --npl --no-beaming -m --language=english $f; done

(all this is one line – or written in several lines:)

for f in *.xml
do
 /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly \
 --nd --nrp --npl --no-beaming -m --language=english $f
done

I hope this syntax is the same on a Mac.



I am not a Mac user. But first thing I thought was: doesn't a Mac have a 
PATH variable like Linux and Windows have, where the long path to 
./bin can be added before having to type such long commands?


--

MT___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-03-19 Thread Craig Dabelstein
Thanks everyone -- all working great now!

On Fri, 20 Mar 2015 at 09:21 Martin Tarenskeen m.tarensk...@zonnet.nl
wrote:



 On Fri, 20 Mar 2015, Noeck wrote:

  Hi Craig,
 
  Do I append for f in *.xml to the end of my command;
 
  No, you put all your command within the for loop:
 
  for f in *.xml; do
  /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly  --nd
  --nrp --npl --no-beaming -m --language=english $f; done
 
  (all this is one line – or written in several lines:)
 
  for f in *.xml
  do
   /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly \
   --nd --nrp --npl --no-beaming -m --language=english $f
  done
 
  I hope this syntax is the same on a Mac.


 I am not a Mac user. But first thing I thought was: doesn't a Mac have a
 PATH variable like Linux and Windows have, where the long path to
 ./bin can be added before having to type such long commands?

 --

 MT___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-03-19 Thread Urs Liska



Am 19.03.2015 um 21:14 schrieb Noeck:

Hi Craig,

on which OS? On Linux (bash) you can do this:

for f in folder/*.xml; do musicxml2ly $f; done

where folder is your folder containing the xml files.


or simply

for f in *.xml
when you are already in the same folder.
(I think this should equally work on a Mac).

Urs


HTH,
Joram



Is there a command for converting a whole folder of xml files to
lilypond, rather than doing them one by one?

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-03-19 Thread Noeck
Hi Craig,

on which OS? On Linux (bash) you can do this:

for f in folder/*.xml; do musicxml2ly $f; done

where folder is your folder containing the xml files.

HTH,
Joram


 Is there a command for converting a whole folder of xml files to
 lilypond, rather than doing them one by one?

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-02-07 Thread Jan-Peter Voigt

Hi Urs,

thank you, I will have a look at neoscores.

Cheers, Jan-Peter

Am 06.02.2015 um 13:21 schrieb Urs Liska:


Am 06.02.2015 um 11:57 schrieb Jan-Peter Voigt:

Hi list,

in the project, Iam currently working on, I am importing music-xml-files
created by Score Perfect. I have to repair all of the files and remove
the work-part. That way most files can be converted, but some files fail
with the message:
AttributeError: PartGroupInfo instance has no attribute
'set_part_information'


Maybe try looking for neoscores. IIUC they are or have been working on 
a MusicXML sanitizer.


HTH
Urs



Does anybody know, what to do with those files?
I tried to import the files with Rosegarden and MuseScore with no
success. I will try to use Finale Notepad with Wine on Ubuntu/64 14LTS.

If you are familiar with this problem, I can send you the xml-files via
private mail.

TIA
Jan-Peter

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-02-07 Thread Jan-Peter Voigt

Hi Richard,

I installed Denemo on my ubuntu workstation and it did import the 
xml-file - even with the wrong work-information. The exported lilypond 
file seems to be fine for me, except the lyrics are missing?


I will have a deeper look at it.

For now
best,
Jan-Peter

Am 06.02.2015 um 13:08 schrieb Richard Shann:

On Fri, 2015-02-06 at 11:57 +0100, Jan-Peter Voigt wrote:

Hi list,
...

I'm very interested in musicxml output created by programs other than
finale, as the musicxml specification is open to a very wide
interpretation.
If you send me a failing example I would like to test importing to
LilyPond via Denemo. I should warn, though, that this is unlikely to be
of real benefit to you directly as this import to Denemo is pretty
basic. (The plus side of this is that it may work where more
sophisticated imports gag on less common syntax/semantics).



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-02-07 Thread Richard Shann
On Sat, 2015-02-07 at 10:35 +0100, Jan-Peter Voigt wrote:
 Hi Richard,
 
 I installed Denemo on my ubuntu workstation and it did import the 
 xml-file - even with the wrong work-information. The exported lilypond 
 file seems to be fine for me, except the lyrics are missing?

yes, lyrics are not done (you can paste lyrics into Denemo anyway, so I
haven't been motivated to do it).


 
 I will have a deeper look at it.

Things to watch out for: 
if it is doing repeats it will likely not use the nice \repeat volta 2
{} \alternative {} etc syntax but more primitive LilyPond constructs.
Denemo itself can generate the nicer LilyPond syntax when you enter
music by hand, but it would be tricky to generate that from musicXML.
Change of time signatures, anacrusis - these may need tidying up
(re-barring etc).
Missing constructs (ottava for instance).
In the end, Denemo succeeded here because it is being far less
ambitious, it is primarily aiming to save you having to type all the
notes and their durations again.

Richard



 
 For now
 best,
 Jan-Peter
 
 Am 06.02.2015 um 13:08 schrieb Richard Shann:
  On Fri, 2015-02-06 at 11:57 +0100, Jan-Peter Voigt wrote:
  Hi list,
  ...
  I'm very interested in musicxml output created by programs other than
  finale, as the musicxml specification is open to a very wide
  interpretation.
  If you send me a failing example I would like to test importing to
  LilyPond via Denemo. I should warn, though, that this is unlikely to be
  of real benefit to you directly as this import to Denemo is pretty
  basic. (The plus side of this is that it may work where more
  sophisticated imports gag on less common syntax/semantics).
 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-02-06 Thread pls
Hi Jan-Peter,

I’m very familiar with musicxml2ly. I can offer to have a look at your files 
(tomorrow or sunday).

Cheers,
Patrick
On 06.02.2015, at 11:57, Jan-Peter Voigt jp.vo...@gmx.de wrote:

 Hi list,
 
 in the project, Iam currently working on, I am importing music-xml-files
 created by Score Perfect. I have to repair all of the files and remove
 the work-part. That way most files can be converted, but some files fail
 with the message:
 AttributeError: PartGroupInfo instance has no attribute
 'set_part_information'
 
 Does anybody know, what to do with those files?
 I tried to import the files with Rosegarden and MuseScore with no
 success. I will try to use Finale Notepad with Wine on Ubuntu/64 14LTS.
 
 If you are familiar with this problem, I can send you the xml-files via
 private mail.
 
 TIA
 Jan-Peter
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-02-06 Thread Jan-Peter Voigt
Tank you :)
I'll send one later 

Cheers,
Jan-Peter 

Am 6. Februar 2015 12:08:09 MEZ, schrieb pls p.l.schm...@gmx.de:
Hi Jan-Peter,

I’m very familiar with musicxml2ly. I can offer to have a look at your
files (tomorrow or sunday).

Cheers,
Patrick
On 06.02.2015, at 11:57, Jan-Peter Voigt jp.vo...@gmx.de wrote:

 Hi list,
 
 in the project, Iam currently working on, I am importing
music-xml-files
 created by Score Perfect. I have to repair all of the files and
remove
 the work-part. That way most files can be converted, but some files
fail
 with the message:
 AttributeError: PartGroupInfo instance has no attribute
 'set_part_information'
 
 Does anybody know, what to do with those files?
 I tried to import the files with Rosegarden and MuseScore with no
 success. I will try to use Finale Notepad with Wine on Ubuntu/64
14LTS.
 
 If you are familiar with this problem, I can send you the xml-files
via
 private mail.
 
 TIA
 Jan-Peter
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-02-06 Thread Richard Shann
On Fri, 2015-02-06 at 11:57 +0100, Jan-Peter Voigt wrote:
 Hi list,
 
 in the project, Iam currently working on, I am importing music-xml-files
 created by Score Perfect. I have to repair all of the files and remove
 the work-part. That way most files can be converted, but some files fail
 with the message:
 AttributeError: PartGroupInfo instance has no attribute
 'set_part_information'
 
 Does anybody know, what to do with those files?
 I tried to import the files with Rosegarden and MuseScore with no
 success. I will try to use Finale Notepad with Wine on Ubuntu/64 14LTS.
 
 If you are familiar with this problem, I can send you the xml-files via
 private mail.

I'm very interested in musicxml output created by programs other than
finale, as the musicxml specification is open to a very wide
interpretation. 
If you send me a failing example I would like to test importing to
LilyPond via Denemo. I should warn, though, that this is unlikely to be
of real benefit to you directly as this import to Denemo is pretty
basic. (The plus side of this is that it may work where more
sophisticated imports gag on less common syntax/semantics).

Richard



 
 TIA
 Jan-Peter
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2015-02-06 Thread Urs Liska


Am 06.02.2015 um 11:57 schrieb Jan-Peter Voigt:

Hi list,

in the project, Iam currently working on, I am importing music-xml-files
created by Score Perfect. I have to repair all of the files and remove
the work-part. That way most files can be converted, but some files fail
with the message:
AttributeError: PartGroupInfo instance has no attribute
'set_part_information'


Maybe try looking for neoscores. IIUC they are or have been working on a 
MusicXML sanitizer.


HTH
Urs



Does anybody know, what to do with those files?
I tried to import the files with Rosegarden and MuseScore with no
success. I will try to use Finale Notepad with Wine on Ubuntu/64 14LTS.

If you are familiar with this problem, I can send you the xml-files via
private mail.

TIA
Jan-Peter

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly on Windows

2014-01-06 Thread TaoCG
Alex Loomis-2 wrote
 Have you tried upgrading to 2.18? It's possible that if the issue is with
 musicxml2ly that it has been fixed.
 
 
 
 On Jan 5, 2014, at 4:42 PM, TaoCG lt;

 tao_lilyponduser@

 gt; wrote:
 
 TaoCG wrote
 
 Phil Holmes-2 wrote
 - Original Message - 
 From: TaoCG lt;
 
 tao_lilyponduser@
 
 gt;
 To: lt;
 
 lilypond-user@
 
 gt;
 Sent: Sunday, January 05, 2014 3:32 PM
 Subject: Re: musicxml2ly on Windows
 
 
 Phil Holmes-2 wrote
 - Original Message - 
 From: TaoCG lt;
 
 tao_lilyponduser@
 
 gt;
 To: lt;
 
 lilypond-user@
 
 gt;
 Sent: Sunday, January 05, 2014 2:40 PM
 Subject: musicxml2ly on Windows
 
 
 Dear all,
 
 what would be the best way to invoke musicxml2ly on Windows when
 there 
 is
 also a Python 3 installation.
 When I try to run it with the python that comes with lilypond like
 this
 
 python.exe musicxml2ly.py test.xml
 
 I get this error:
 Could not find platform independent libraries
 
 
 prefix
 Could not find platform dependent libraries
 
 
 exec_prefix
 Consider setting $PYTHONHOME to
 
 
 prefix
 [:
 
 
 exec_prefix
 ]
 'import site' failed; use -v for traceback
 Traceback (most recent call last):
 File musicxml2ly.py, line 3, in ?
   import optparse
 ImportError: No module named optparse
 
 This is with Lilypond 2.16
 
 
 Regards,
 Tao
 
 
 What directory are you running the command from?  What does your PATH
 statement look like?
 
 --
 Phil Holmes
 
 
 ___
 lilypond-user mailing list
 
 lilypond-user@
 
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 I ran it from C:\Program Files (x86)\Lilypond\usr\bin
 and my Path is:
 C:\Python33\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program
 Files (x86)\QT Lite\QTSystem
 
 
 OK.  What does python -V give you?
 
 --
 Phil Holmes 
 
 
 ___
 lilypond-user mailing list
 
 lilypond-user@
 
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 From lilypond\usr\bin
 Python 2.4.5
 
 from everywhere else
 Python 3.3.2
 
 Hmm... I tried replacing the python3-directory with the lily\usr\bin\ and
 now I get this error:
 
  File C:\Program Files (x86)\LilyPond\usr\bin\musicxml2ly.py, line 2105
if current_staff and staff  current_staff and not
 n.get_maybe_exist_named_child ('chord'):
^
 SyntaxError: invalid syntax
 
 
 These brackets sure look strange. Is this an error in musicxml2ly?
 
 
 
 
 --
 View this message in context:
 http://lilypond.1069038.n5.nabble.com/musicxml2ly-on-Windows-tp157181p157204.html
 Sent from the User mailing list archive at Nabble.com.
 
 ___
 lilypond-user mailing list
 

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

I haven't yet.
I got it working with a virtual linuxbox running LP 2.16.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/musicxml2ly-on-Windows-tp157181p157289.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly on Windows

2014-01-05 Thread Phil Holmes
- Original Message - 
From: TaoCG tao_lilypondu...@gmx.net

To: lilypond-user@gnu.org
Sent: Sunday, January 05, 2014 2:40 PM
Subject: musicxml2ly on Windows



Dear all,

what would be the best way to invoke musicxml2ly on Windows when there is
also a Python 3 installation.
When I try to run it with the python that comes with lilypond like this

python.exe musicxml2ly.py test.xml

I get this error:
Could not find platform independent libraries prefix
Could not find platform dependent libraries exec_prefix
Consider setting $PYTHONHOME to prefix[:exec_prefix]
'import site' failed; use -v for traceback
Traceback (most recent call last):
 File musicxml2ly.py, line 3, in ?
   import optparse
ImportError: No module named optparse

This is with Lilypond 2.16


Regards,
Tao



What directory are you running the command from?  What does your PATH 
statement look like?


--
Phil Holmes 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly on Windows

2014-01-05 Thread TaoCG
Phil Holmes-2 wrote
 - Original Message - 
 From: TaoCG lt;

 tao_lilyponduser@

 gt;
 To: lt;

 lilypond-user@

 gt;
 Sent: Sunday, January 05, 2014 2:40 PM
 Subject: musicxml2ly on Windows
 
 
 Dear all,

 what would be the best way to invoke musicxml2ly on Windows when there is
 also a Python 3 installation.
 When I try to run it with the python that comes with lilypond like this

 python.exe musicxml2ly.py test.xml

 I get this error:
 Could not find platform independent libraries 
 prefix
 Could not find platform dependent libraries 
 exec_prefix
 Consider setting $PYTHONHOME to 
 prefix
 [:
 exec_prefix
 ]
 'import site' failed; use -v for traceback
 Traceback (most recent call last):
  File musicxml2ly.py, line 3, in ?
import optparse
 ImportError: No module named optparse

 This is with Lilypond 2.16


 Regards,
 Tao
 
 
 What directory are you running the command from?  What does your PATH 
 statement look like?
 
 --
 Phil Holmes 
 
 
 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

I ran it from C:\Program Files (x86)\Lilypond\usr\bin
and my Path is:
C:\Python33\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\QT Lite\QTSystem



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/musicxml2ly-on-Windows-tp157181p157186.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly on Windows

2014-01-05 Thread Phil Holmes
- Original Message - 
From: TaoCG tao_lilypondu...@gmx.net

To: lilypond-user@gnu.org
Sent: Sunday, January 05, 2014 3:32 PM
Subject: Re: musicxml2ly on Windows



Phil Holmes-2 wrote
- Original Message - 
From: TaoCG lt;



tao_lilyponduser@



gt;
To: lt;



lilypond-user@



gt;
Sent: Sunday, January 05, 2014 2:40 PM
Subject: musicxml2ly on Windows



Dear all,

what would be the best way to invoke musicxml2ly on Windows when there 
is

also a Python 3 installation.
When I try to run it with the python that comes with lilypond like this

python.exe musicxml2ly.py test.xml

I get this error:
Could not find platform independent libraries

prefix

Could not find platform dependent libraries

exec_prefix

Consider setting $PYTHONHOME to

prefix
[:
exec_prefix
]

'import site' failed; use -v for traceback
Traceback (most recent call last):
 File musicxml2ly.py, line 3, in ?
   import optparse
ImportError: No module named optparse

This is with Lilypond 2.16


Regards,
Tao



What directory are you running the command from?  What does your PATH
statement look like?

--
Phil Holmes


___
lilypond-user mailing list



lilypond-user@



https://lists.gnu.org/mailman/listinfo/lilypond-user


I ran it from C:\Program Files (x86)\Lilypond\usr\bin
and my Path is:
C:\Python33\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\QT Lite\QTSystem



OK.  What does python -V give you?

--
Phil Holmes 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly on Windows

2014-01-05 Thread TaoCG
Phil Holmes-2 wrote
 - Original Message - 
 From: TaoCG lt;

 tao_lilyponduser@

 gt;
 To: lt;

 lilypond-user@

 gt;
 Sent: Sunday, January 05, 2014 3:32 PM
 Subject: Re: musicxml2ly on Windows
 
 
 Phil Holmes-2 wrote
 - Original Message - 
 From: TaoCG lt;

 tao_lilyponduser@

 gt;
 To: lt;

 lilypond-user@

 gt;
 Sent: Sunday, January 05, 2014 2:40 PM
 Subject: musicxml2ly on Windows


 Dear all,

 what would be the best way to invoke musicxml2ly on Windows when there 
 is
 also a Python 3 installation.
 When I try to run it with the python that comes with lilypond like this

 python.exe musicxml2ly.py test.xml

 I get this error:
 Could not find platform independent libraries
 
 prefix
 Could not find platform dependent libraries
 
 exec_prefix
 Consider setting $PYTHONHOME to
 
 prefix
 [:
 
 exec_prefix
 ]
 'import site' failed; use -v for traceback
 Traceback (most recent call last):
  File musicxml2ly.py, line 3, in ?
import optparse
 ImportError: No module named optparse

 This is with Lilypond 2.16


 Regards,
 Tao


 What directory are you running the command from?  What does your PATH
 statement look like?

 --
 Phil Holmes


 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

 I ran it from C:\Program Files (x86)\Lilypond\usr\bin
 and my Path is:
 C:\Python33\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program
 Files (x86)\QT Lite\QTSystem
 
 
 OK.  What does python -V give you?
 
 --
 Phil Holmes 
 
 
 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

From lilypond\usr\bin
Python 2.4.5

from everywhere else
Python 3.3.2



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/musicxml2ly-on-Windows-tp157181p157191.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly on Windows

2014-01-05 Thread TaoCG
TaoCG wrote
 
 Phil Holmes-2 wrote
 - Original Message - 
 From: TaoCG lt;

 tao_lilyponduser@

 gt;
 To: lt;

 lilypond-user@

 gt;
 Sent: Sunday, January 05, 2014 3:32 PM
 Subject: Re: musicxml2ly on Windows
 
 
 Phil Holmes-2 wrote
 - Original Message - 
 From: TaoCG lt;

 tao_lilyponduser@

 gt;
 To: lt;

 lilypond-user@

 gt;
 Sent: Sunday, January 05, 2014 2:40 PM
 Subject: musicxml2ly on Windows


 Dear all,

 what would be the best way to invoke musicxml2ly on Windows when there 
 is
 also a Python 3 installation.
 When I try to run it with the python that comes with lilypond like
 this

 python.exe musicxml2ly.py test.xml

 I get this error:
 Could not find platform independent libraries
 
 prefix
 Could not find platform dependent libraries
 
 exec_prefix
 Consider setting $PYTHONHOME to
 
 prefix
 [:
 
 exec_prefix
 ]
 'import site' failed; use -v for traceback
 Traceback (most recent call last):
  File musicxml2ly.py, line 3, in ?
import optparse
 ImportError: No module named optparse

 This is with Lilypond 2.16


 Regards,
 Tao


 What directory are you running the command from?  What does your PATH
 statement look like?

 --
 Phil Holmes


 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

 I ran it from C:\Program Files (x86)\Lilypond\usr\bin
 and my Path is:
 C:\Python33\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program
 Files (x86)\QT Lite\QTSystem
 
 
 OK.  What does python -V give you?
 
 --
 Phil Holmes 
 
 
 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user
 From lilypond\usr\bin
 Python 2.4.5
 
 from everywhere else
 Python 3.3.2

Hmm... I tried replacing the python3-directory with the lily\usr\bin\ and
now I get this error:

  File C:\Program Files (x86)\LilyPond\usr\bin\musicxml2ly.py, line 2105
if current_staff and staff  current_staff and not
n.get_maybe_exist_named_child ('chord'):
^
SyntaxError: invalid syntax


These brackets sure look strange. Is this an error in musicxml2ly?




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/musicxml2ly-on-Windows-tp157181p157204.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly on Windows

2014-01-05 Thread Alex Loomis
Have you tried upgrading to 2.18? It's possible that if the issue is with 
musicxml2ly that it has been fixed.



On Jan 5, 2014, at 4:42 PM, TaoCG tao_lilypondu...@gmx.net wrote:

 TaoCG wrote
 
 Phil Holmes-2 wrote
 - Original Message - 
 From: TaoCG lt;
 
 tao_lilyponduser@
 
 gt;
 To: lt;
 
 lilypond-user@
 
 gt;
 Sent: Sunday, January 05, 2014 3:32 PM
 Subject: Re: musicxml2ly on Windows
 
 
 Phil Holmes-2 wrote
 - Original Message - 
 From: TaoCG lt;
 
 tao_lilyponduser@
 
 gt;
 To: lt;
 
 lilypond-user@
 
 gt;
 Sent: Sunday, January 05, 2014 2:40 PM
 Subject: musicxml2ly on Windows
 
 
 Dear all,
 
 what would be the best way to invoke musicxml2ly on Windows when there 
 is
 also a Python 3 installation.
 When I try to run it with the python that comes with lilypond like
 this
 
 python.exe musicxml2ly.py test.xml
 
 I get this error:
 Could not find platform independent libraries
 
 prefix
 Could not find platform dependent libraries
 
 exec_prefix
 Consider setting $PYTHONHOME to
 
 prefix
 [:
 
 exec_prefix
 ]
 'import site' failed; use -v for traceback
 Traceback (most recent call last):
 File musicxml2ly.py, line 3, in ?
   import optparse
 ImportError: No module named optparse
 
 This is with Lilypond 2.16
 
 
 Regards,
 Tao
 
 
 What directory are you running the command from?  What does your PATH
 statement look like?
 
 --
 Phil Holmes
 
 
 ___
 lilypond-user mailing list
 
 lilypond-user@
 
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 I ran it from C:\Program Files (x86)\Lilypond\usr\bin
 and my Path is:
 C:\Python33\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program
 Files (x86)\QT Lite\QTSystem
 
 
 OK.  What does python -V give you?
 
 --
 Phil Holmes 
 
 
 ___
 lilypond-user mailing list
 
 lilypond-user@
 
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 From lilypond\usr\bin
 Python 2.4.5
 
 from everywhere else
 Python 3.3.2
 
 Hmm... I tried replacing the python3-directory with the lily\usr\bin\ and
 now I get this error:
 
  File C:\Program Files (x86)\LilyPond\usr\bin\musicxml2ly.py, line 2105
if current_staff and staff  current_staff and not
 n.get_maybe_exist_named_child ('chord'):
^
 SyntaxError: invalid syntax
 
 
 These brackets sure look strange. Is this an error in musicxml2ly?
 
 
 
 
 --
 View this message in context: 
 http://lilypond.1069038.n5.nabble.com/musicxml2ly-on-Windows-tp157181p157204.html
 Sent from the User mailing list archive at Nabble.com.
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly bug: Fails on empty work-title / node

2013-12-21 Thread pls
On 21.12.2013, at 09:14, James Harkins jamshar...@gmail.com wrote:In case anybody is working on musicxml2ly:I just found that it doesn't handle the case of an XML document where the title node exists, but is empty. I've uploaded a zip archive of two musicxml documents.Hi James,we fixed this bug some time ago. See:https://github.com/Philomelos/lilypond-musicxml2ly-dev.http://ubuntuone.com/0iNRBh17UxPJWlVJikFYVD** 13-1220-li-xuanyi.xml -- The original file from my student, exported from Sibelius on Mac.$ musicxml2ly 13-1220-li-xuanyi.xml musicxml2ly: Reading MusicXML from 13-1220-li-xuanyi.xml ...Traceback (most recent call last): File "/usr/local/lilypond/usr/bin/musicxml2ly", line 2984, in ? main() File "/usr/local/lilypond/usr/bin/musicxml2ly", line 2979, in main voices = convert (filename, options) File "/usr/local/lilypond/usr/bin/musicxml2ly", line 2881, in convert score_information = extract_score_information (tree) File "/usr/local/lilypond/usr/bin/musicxml2ly", line 201, in extract_score_information set_if_exists ('title', movement_title.get_text ())AttributeError: 'NoneType' object has no attribute 'get_text'** 13-1220-li-xuanyi-finale.xml -- Another version, made by importing the original into Finale 2010 and re-exporting to musicxml. This one is fine in musicxml2ly, producing a LilyPond file that compiles successfully (apart from LilyPond complaining about all the collisions that Finale generated…).LilyPond cannot complain "about all the collisions that Finale generated" because they are not translated. musicxml2ly complains about errors in the xml-file, e.g.:warning: Cannot have two simultaneous slurswarning: Encountered closing slur, but no slur is openmusicxml2ly-dev shows that your file contains some more faults:x2l: warning: Negative skip -41/4 (from position 163/8 to 81/8)x2l: warning: Negative skip -3/4 (from position 87/8 to 81/8)x2l: warning: Negative skip -3/4 (from position 87/8 to 81/8)x2l: warning: Negative skip -3/4 (from position 87/8 to 81/8)x2l: warning: Negative skip -41/4 (from position 163/8 to 81/8)x2l: warning: Negative skip -41/4 (from position 41/2 to 41/4)x2l: warning: Negative skip -5/8 (from position 87/8 to 41/4)x2l: warning: Negative skip -5/8 (from position 87/8 to 41/4)x2l: warning: Negative skip -5/8 (from position 87/8 to 41/4)x2l: warning: Negative skip -41/4 (from position 41/2 to 41/4)x2l: warning: Negative skip -41/4 (from position 165/8 to 83/8)x2l: warning: Negative skip -1/2 (from position 87/8 to 83/8)x2l: warning: Negative skip -1/2 (from position 87/8 to 83/8)x2l: warning: Negative skip -1/2 (from position 87/8 to 83/8)x2l: warning: Negative skip -41/4 (from position 165/8 to 83/8)x2l: warning: Negative skip -41/4 (from position 83/4 to 21/2)x2l: warning: Negative skip -3/8 (from position 87/8 to 21/2)x2l: warning: Negative skip -3/8 (from position 87/8 to 21/2)x2l: warning: Negative skip -3/8 (from position 87/8 to 21/2)x2l: warning: Negative skip -41/4 (from position 83/4 to 21/2)x2l: warning: Negative skip -41/4 (from position 167/8 to 85/8)x2l: warning: Negative skip -1/4 (from position 87/8 to 85/8)x2l: warning: Negative skip -1/4 (from position 87/8 to 85/8)x2l: warning: Negative skip -1/4 (from position 87/8 to 85/8)x2l: warning: Negative skip -41/4 (from position 167/8 to 85/8)x2l: warning: Negative skip -41/4 (from position 21 to 43/4)x2l: warning: Negative skip -1/8 (from position 87/8 to 43/4)x2l: warning: Negative skip -1/8 (from position 87/8 to 43/4)x2l: warning: Negative skip -1/8 (from position 87/8 to 43/4)x2l: warning: Negative skip -41/4 (from position 21 to 43/4)x2l: warning: Negative skip -41/4 (from position 169/8 to 87/8)x2l: warning: Negative skip -41/4 (from position 169/8 to 87/8)x2l: warning: Negative skip -41/4 (from position 85/4 to 11)x2l: warning: Negative skip -41/4 (from position 85/4 to 11)This usually means that measures are incomplete. Sibelius' xml-export is bad. Importing and exporting the file with Finale doesn't help here.A notable difference is that the one from Sibelius includes the following, but Finale omits it.work work-title //workIf I remove those lines, then musicxml2ly gets past this error... only to fail later. So this document (the original) might be a good test case for musicxml2ly's error recovery.These files are not minimal examples and contain loads of faulty xml markup. I attached a tiny example to show that musicxml2ly-dev (but not musicxml2ly) can handle empty work-title nodes.hthpatrick

MovementTitle-NoTitle.xml
Description: XML document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly bug: Fails on empty work-title / node

2013-12-21 Thread Urs Liska

Am 21.12.2013 10:56, schrieb pls:

These files are not minimal examples and contain loads of faulty xml
markup.  I attached a tiny example to show that musicxml2ly-dev (but not
musicxml2ly) can handle empty work-title nodes.



What would be the necessary approach to port your -dev work back to main 
LilyPond's musicxml2ly?


Urs

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly bug: Fails on empty work-title / node

2013-12-21 Thread pls

On 21.12.2013, at 10:58, Urs Liska u...@openlilylib.org wrote:

 What would be the necessary approach to port your -dev work back to main 
 LilyPond's musicxml2ly?
Nothing special.  It's a git repository.  I simply haven't had the time (and 
probably won't in the near future) to prepare small documented patches and go 
through the LilyPond review process. I still have quite a few additional bug 
reports and a lot of experience with MusicXML waiting to be shared with you...

patrick


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly bug: Fails on empty work-title / node

2013-12-21 Thread James Harkins
On Dec 21, 2013 5:56 PM, pls p.l.schm...@gmx.de wrote:

 On 21.12.2013, at 09:14, James Harkins jamshar...@gmail.com wrote:
 I just found that it doesn't handle the case of an XML document where
the title node exists, but is empty. I've uploaded a zip archive of two
musicxml documents.

 we fixed this bug some time ago. See:
https://github.com/Philomelos/lilypond-musicxml2ly-dev.

Thanks for clarifying that.

 These files are not minimal examples and contain loads of faulty xml
markup.

... which Finale at least doesn't choke on. Whether Finale's result is
valid or not, I couldn't say. What I can say is that the musicxml2ly result
from the Finale file looked superficially reasonable at a quick glance. The
point being that Finale's error tolerance produces something that is at
least usable, even if awful, where musicxml2ly requires a standard of
correctness that was unfortunately not useful in this case.

I offered the files not as minimal examples for the specific empty title
issue, but as real-world use cases, on the supposition that musicxml2ly
would be more useful if it's better able to recover from flawed input.

hjh
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly output indentation style

2013-11-17 Thread Martin Tarenskeen



On Sat, 16 Nov 2013, Peter Bjuhr wrote:


On 11/14/2013 09:16 AM, Martin Tarenskeen wrote:


Hi,

The lilypond output that is produced from musicxml2ly uses another 
indentation style than I see in my own scores when using for example Vim or 
Frescobaldi, or in all examples in the Lilypond documentation.



Hi Martin!

Thanks for pointing this out! In the latest development version of 
Frescobaldi scores imported through internal musicXML import are now 
reformatted (the same way as if Tools-Format were used).


I did a short try with the dev version from Github (downloaded zip there) 
but I see no difference. Still had to use Tools-Format manually.


But even if it works, it would still be a workaround instead of a real 
fix.


--

MT



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly output indentation style

2013-11-17 Thread Peter Bjuhr


On 11/17/2013 07:02 PM, Martin Tarenskeen wrote:


I did a short try with the dev version from Github (downloaded zip 
there) but I see no difference. Still had to use Tools-Format manually.


Sorry for a stupid question, but did you install after download?



But even if it works, it would still be a workaround instead of a real 
fix.




Agreed, as also Urs pointed out.

Best
Peter

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly output indentation style

2013-11-16 Thread Peter Bjuhr


On 11/14/2013 09:16 AM, Martin Tarenskeen wrote:


Hi,

The lilypond output that is produced from musicxml2ly uses another 
indentation style than I see in my own scores when using for example 
Vim or Frescobaldi, or in all examples in the Lilypond documentation.


for example:

%commonly used style
music = \relative c' {
  a b c d
}

%musicxml2ly style
music = \relative c' {
  a b c d
  }



Hi Martin!

Thanks for pointing this out! In the latest development version of 
Frescobaldi scores imported through internal musicXML import are now 
reformatted (the same way as if Tools-Format were used).


Best
Peter


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly output indentation style

2013-11-16 Thread Urs Liska




Peter Bjuhr peterbj...@gmail.com schrieb:

On 11/14/2013 09:16 AM, Martin Tarenskeen wrote:

 Hi,

 The lilypond output that is produced from musicxml2ly uses another 
 indentation style than I see in my own scores when using for example 
 Vim or Frescobaldi, or in all examples in the Lilypond documentation.

 for example:

 %commonly used style
 music = \relative c' {
   a b c d
 }

 %musicxml2ly style
 music = \relative c' {
   a b c d
   }


Hi Martin!

Thanks for pointing this out! In the latest development version of 
Frescobaldi scores imported through internal musicXML import are now 
reformatted (the same way as if Tools-Format were used).

... which of course doesn't mean that this issue couldn't/shouldn't be fixed 
right in musicxml2ly.

Urs

Best
Peter


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly introduction (Fwd: New LilyPond blog message from Luis)

2013-11-04 Thread Richard Shann
There is MusicXML import into Denemo which then generates LilyPond. This
used to be hopelessly broken, but now it always generates the bare bones
of the score (AFAIK). That would give an route not needing command line
expertise.

Richard


On Mon, 2013-11-04 at 00:06 +0100, Urs Liska wrote:
 Hi,
 
 I just got the call for help at the end of this message.
 
 What would be the best advise/pointer/introduction to give someone
 interested in migrating from Finale to LilyPond?
 A quick glance seems to confirm that the relevant sections of the
 Usage Manual aren't exactly inviting to someone having experience
 neither with text input nor the command line.
 
 Best
 Urs
 
 
  Original-Nachricht  
   Betreff: 
 New LilyPond blog message from Luis
 Datum: 
 Sun, 3 Nov 2013 22:52:03 +
   Von: 
 LilyPond blog contact form
 cont...@lilypondblog.org
Antwort an: 
 luismiguelar...@gmail.com
An: 
 blogcont...@openlilylib.org
 
 
 
 
 From: Luis Araya (luismiguelar...@gmail.com)
 
 Message:
 
 I am interested in migrating from finale to lilypond but I would like
 to know how to open XML files into lilypond. The instructions at the
 lilypond.com website about using the command-line apps are very
 confusing, partly because I have never used the terminal before (mac
 user). Please help!!! 
 
 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly introduction (Fwd: New LilyPond blog message from Luis)

2013-11-04 Thread Shane Brandes
Hi all,

 I sent Luis an explanation yesterday. He managed to not run it from
the command line, but he left a space in the file name so it looked
like an invocation with a switch included. He has been advised to
remove the space from his file name. Hopefully that will get him
going. If not it is because there is some issue with the bash not
noticing musicxml2ly exists. Which is out of my ability to assist
because he is in Apple world and I do not know exactly how similar
that is to linux world for command line things.

Shane

On Mon, Nov 4, 2013 at 3:33 AM, Richard Shann rich...@rshann.plus.com wrote:
 There is MusicXML import into Denemo which then generates LilyPond. This
 used to be hopelessly broken, but now it always generates the bare bones
 of the score (AFAIK). That would give an route not needing command line
 expertise.

 Richard


 On Mon, 2013-11-04 at 00:06 +0100, Urs Liska wrote:
 Hi,

 I just got the call for help at the end of this message.

 What would be the best advise/pointer/introduction to give someone
 interested in migrating from Finale to LilyPond?
 A quick glance seems to confirm that the relevant sections of the
 Usage Manual aren't exactly inviting to someone having experience
 neither with text input nor the command line.

 Best
 Urs


  Original-Nachricht 
   Betreff:
 New LilyPond blog message from Luis
 Datum:
 Sun, 3 Nov 2013 22:52:03 +
   Von:
 LilyPond blog contact form
 cont...@lilypondblog.org
Antwort an:
 luismiguelar...@gmail.com
An:
 blogcont...@openlilylib.org




 From: Luis Araya (luismiguelar...@gmail.com)

 Message:

 I am interested in migrating from finale to lilypond but I would like
 to know how to open XML files into lilypond. The instructions at the
 lilypond.com website about using the command-line apps are very
 confusing, partly because I have never used the terminal before (mac
 user). Please help!!!




 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user



 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly introduction (Fwd: New LilyPond blog message from Luis)

2013-11-03 Thread flup2
The problem is that any solution uses the Terminal: the command itself, or
the installation of Frescobaldi (no fixed, even for the last OS X release).

Philippe



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/musicxml2ly-introduction-Fwd-New-LilyPond-blog-message-from-Luis-tp153347p153352.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly introduction (Fwd: New LilyPond blog message from Luis)

2013-11-03 Thread Urs Liska
I don't think the OP would insist on not using the command line. He is just 
completely confused and would need a helping hand.

Isn't there an installer for Mac by now? Or did I get something wrong there?



flup2 phili...@philmassart.net schrieb:
The problem is that any solution uses the Terminal: the command itself,
or
the installation of Frescobaldi (no fixed, even for the last OS X
release).

Philippe



--
View this message in context:
http://lilypond.1069038.n5.nabble.com/musicxml2ly-introduction-Fwd-New-LilyPond-blog-message-from-Luis-tp153347p153352.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly introduction (Fwd: New LilyPond blog message from Luis)

2013-11-03 Thread flup2
Yes, using the Macports package distribution system. Perhaps could you send
me his mail in order to make step by step instructions. The instructions
posted on Frescoabaldi website are OK with some command line knowledge.
Macport isn't completely easy, but is more straightforward once installed.

Philippe



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/musicxml2ly-introduction-Fwd-New-LilyPond-blog-message-from-Luis-tp153347p153355.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-11 Thread Urs Liska
Am Mittwoch, den 10.04.2013, 12:28 +0200 schrieb Werner LEMBERG:
 %{ 5 %} a,4 ( a4 ) ( b4 ) d4 |
 
  I like that.  It's tedious to type manually, but a computer
  program doesn't know that word :-)
 
  Indeed, but i find it unreadable, especially if it was placed at
  every line.
 
 Really?  It's like having a BASIC program which always starts with a
 line number:
 
   %{  1 %}  a,4 ( a4 ) ( b4 ) d4 |
   %{  2 %}  a,4 ( a4 ) ( b4 ) d4 |
   %{  3 %}  a,4 ( a4 ) ( b4 ) d4 |
   %{  4 %}  a,4 ( a4 ) ( b4 ) d4 |
   %{  5 %}  a,4 ( a4 ) ( b4 ) d4 |
   %{  6 %}  a,4 ( a4 ) ( b4 ) d4 |
   %{  7 %}  a,4 ( a4 ) ( b4 ) d4 |
   %{  8 %}  a,4 ( a4 ) ( b4 ) d4 |
   %{  9 %}  a,4 ( a4 ) ( b4 ) d4 |
   %{ 10 %}  a,4 ( a4 ) ( b4 ) d4 |
 
 As mentioned earlier, I don't like to type this, but having such a
 format returned by musicxml2ly is good IMHO.  After some time you get
 used to it, and line numbers are only looked at if you really need
 them.

You could define a snippet in Frescobaldi with
%{ $SELECTION %}| 
as its content (note the bar check and the empty space at the end) and
assign a shortcut.

With some more effort one could create a Python snippet that
- takes a single integer on a line
- places this comment around it and 
- right-aligns the number to three digits

If one then added for example an '@' after the opening comment one could
maybe talk Wilbert into making use of this for Frescobaldi's document
outline.

Urs


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: musicxml2ly enhancements

2013-04-10 Thread Curt McDowell
How about allowing bar numbers as a letter+number, parsed similar to musical 
note+duration:
B78 a,4 ( a4 ) ( b4 ) d4 |
B79 e,4 ( f4 ) ( g4 ) a4 |
Perhaps they could also double as bar checks:
B78 a,4 ( a4 ) ( b4 ) d4
B79 e,4 ( f4 ) ( g4 ) a4
Or alternately, augment the existing bar check to allow an optional value:
a,4 ( a4 ) ( b4 ) d4 |78
e,4 ( f4 ) ( g4 ) a4 |79
Or (to taste):
|78  a,4 ( a4 ) ( b4 ) d4
|79  e,4 ( f4 ) ( g4 ) a4
The actual bar numbers might be ignored initially, but eventually 
- they might be the numbers printed
- bar checks might also verify that bar numbers match across staves, voices, 
\alternatives.

Having already entered some large pieces, I only recently discovered 
Frescobaldi. What a wonderful program. The point-and-click cursor matching 
between source and PDF nearly obviates the need for measure numbers. I wish I'd 
found it sooner!

Cheers,
-Curt

-Original Message-
From: lilypond-user-bounces+lilypond=fishlet@gnu.org 
[mailto:lilypond-user-bounces+lilypond=fishlet@gnu.org] On Behalf Of Urs 
Liska
Sent: Tuesday, April 09, 2013 4:26 AM
To: lilypond-user@gnu.org
Subject: Re: musicxml2ly enhancements

Am 09.04.2013 13:19, schrieb Janek Warchoł:
 2013/4/9 Werner LEMBERG w...@gnu.org:
 Putting the bar number at the start of the line would require

%{ 5 %} a,4 ( a4 ) ( b4 ) d4 |

 instead.
 I like that.  It's tedious to type manually, but a computer program 
 doesn't know that word :-)
 Indeed, but i find it unreadable, especially if it was placed at every line.
 I think that the best way to mark bar numbers in source is to make a 
 separate-line comment every 5 or so measures:

  \clef treble \key c \major \numericTimeSignature \time 4/4
  a4 ( a4) ( b4 ) d4 |
  \key c \major a4 ( a4 ) ( b4 ) d4 |
  a4 ( a4 ) ( b4 ) d4 |
  g1 |
  % m.5
  a,4 ( a4 ) ( b4 ) d4 |
  g1 |
  a,4 ( a4 ) ( b4 ) d4 |
  g1 |
  a,4 ( a4 ) ( b4 ) d4 |
  % m.10
  g1 |
  a,4 ( a4 ) ( b4 ) d4 |
 etc.
 Janek
I have come to the conclusion that it is a _very_ good idea to make a measure 
number for _every_ measure.
That way you have a measure indicator in each Git diff.
Which proves useful to map the change to the location in the file if the line 
numbers have changed considerably in the meantime.

Urs

 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: musicxml2ly enhancements

2013-04-10 Thread Martin Tarenskeen




   %{ 5 %} a,4 ( a4 ) ( b4 ) d4 |

instead.
I like that.  It's tedious to type manually, but a computer program 
doesn't know that word :-)

Indeed, but i find it unreadable, especially if it was placed at every line.


In general I think tools like musicxml2ly and other programs that convert 
to or export .ly files (xxx2ly, mscore, denemo, rosegarden) should do 
their best to make the lilypond output look like it was handwritten by a 
real human lilypond user and likewise should be easily readable and 
editable by a real human. With proper formatting, indentation, and coding 
style.


I don't like the way it going for example in today's world of webdesign: 
There are advanced tools to create professional websites without knowing 
anything about HTML and CSS. But if you want to edit the html code these 
tools produce by hand it can be a real nightmare.


Just like my lilypond scores I often still write (simple) html code using 
just Vim. Maybe I'm just getting old and old fashioned :-)


--

MT


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-10 Thread Werner LEMBERG

%{ 5 %} a,4 ( a4 ) ( b4 ) d4 |

 I like that.  It's tedious to type manually, but a computer
 program doesn't know that word :-)

 Indeed, but i find it unreadable, especially if it was placed at
 every line.

Really?  It's like having a BASIC program which always starts with a
line number:

  %{  1 %}  a,4 ( a4 ) ( b4 ) d4 |
  %{  2 %}  a,4 ( a4 ) ( b4 ) d4 |
  %{  3 %}  a,4 ( a4 ) ( b4 ) d4 |
  %{  4 %}  a,4 ( a4 ) ( b4 ) d4 |
  %{  5 %}  a,4 ( a4 ) ( b4 ) d4 |
  %{  6 %}  a,4 ( a4 ) ( b4 ) d4 |
  %{  7 %}  a,4 ( a4 ) ( b4 ) d4 |
  %{  8 %}  a,4 ( a4 ) ( b4 ) d4 |
  %{  9 %}  a,4 ( a4 ) ( b4 ) d4 |
  %{ 10 %}  a,4 ( a4 ) ( b4 ) d4 |

As mentioned earlier, I don't like to type this, but having such a
format returned by musicxml2ly is good IMHO.  After some time you get
used to it, and line numbers are only looked at if you really need
them.

 In general I think tools like musicxml2ly and other programs that
 convert to or export .ly files (xxx2ly, mscore, denemo, rosegarden)
 should do their best to make the lilypond output look like it was
 handwritten by a real human lilypond user and likewise should be
 easily readable and editable by a real human.  With proper
 formatting, indentation, and coding style.

I fully agree.


Werner

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-10 Thread Wim van Dommelen



On 10 Apr 2013, at 11:38 , Martin Tarenskeen wrote:

Just like my lilypond scores I often still write (simple) html code  
using just Vim. Maybe I'm just getting old and old fashioned :-)


+1, we're not alone..


Regards,
Wim.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-09 Thread David Kastrup
Jacques Menu jacques.m...@tvtmail.ch writes:

 Hello folks,

 I've been experimenting with Sibelius 7.1.3 as a front-end to Lily,
 i.e. as a note input engine.

 This lead me to fix some issues in musicxml2ly:
   - the comment bar number at the end of regular lines is one
 too much;

I don't see that.  It is the number that would be printed above the bar.

   - it's missing when a \ barNumberCheck is present;

Because then the bar number is given by the \barNumberCheck command.

   - musicxml2ly crashes if there's no title specified in the XML
   file.

That's certainly an error.

 The first two points are important to me since they help locating the
 guilty lines (it's cumbersome to have to do the math each time you
 switch from an error message to the .ly file).

Math?  You just look for the right bar number and then read on from
there.

 Compare the 2.16.2 original with the modified version used on the
 attached file:

  \clef treble \key c \major \numericTimeSignature\time 4/4
  \pageBreak a4 ( a4 ) ( b4 ) d4 | % 2
  \key c \major a4 ( a4 ) ( b4 ) d4 | % 3
  a4 ( a4 ) ( b4 ) d4 | % 4
  g1 | % 5
  a,4 ( a4 ) ( b4 ) d4 | % 6
  g1 \break | % 7
  a,4 ( a4 ) ( b4 ) d4 | % 8
  g1 | % 9
  a,4 ( a4 ) ( b4 ) d4 | \barNumberCheck #10
  g1 | % 11
  a,4 ( a4 ) ( b4 ) d4 | % 12

Looks consistent to me.

 a,4 ( a4 ) ( b4 ) d4 | % 9
 g1 | \barNumberCheck #11 % 10
 a,4 ( a4 ) ( b4 ) d4 | % 11

Not exactly an improvement here, is it?

 I could spend time on the TODOs mentioned in the code, hence my
 question: is there work going on on musicxml2ly, and if so, can I
 contribute to it?

Wouldn't it be even more important to contribute to it if there was _no_
work going on on musicxml2ly?

Currently there is not much happening with it.  The Philomelos guys have
their own fork of it, but so far not much has been reintegrated into
LilyPond IIRC.

-- 
David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-09 Thread Urs Liska

Am 09.04.2013 08:49, schrieb David Kastrup:

Jacques Menu jacques.m...@tvtmail.ch writes:


Hello folks,

I've been experimenting with Sibelius 7.1.3 as a front-end to Lily,
i.e. as a note input engine.

This lead me to fix some issues in musicxml2ly:
- the comment bar number at the end of regular lines is one
too much;

I don't see that.  It is the number that would be printed above the bar.


- it's missing when a \ barNumberCheck is present;

Because then the bar number is given by the \barNumberCheck command.


- musicxml2ly crashes if there's no title specified in the XML
file.

That's certainly an error.


The first two points are important to me since they help locating the
guilty lines (it's cumbersome to have to do the math each time you
switch from an error message to the .ly file).

Math?  You just look for the right bar number and then read on from
there.


Compare the 2.16.2 original with the modified version used on the
attached file:

 \clef treble \key c \major \numericTimeSignature\time 4/4
 \pageBreak a4 ( a4 ) ( b4 ) d4 | % 2
 \key c \major a4 ( a4 ) ( b4 ) d4 | % 3
 a4 ( a4 ) ( b4 ) d4 | % 4
 g1 | % 5
 a,4 ( a4 ) ( b4 ) d4 | % 6
 g1 \break | % 7
 a,4 ( a4 ) ( b4 ) d4 | % 8
 g1 | % 9
 a,4 ( a4 ) ( b4 ) d4 | \barNumberCheck #10
 g1 | % 11
 a,4 ( a4 ) ( b4 ) d4 | % 12

Looks consistent to me.


 a,4 ( a4 ) ( b4 ) d4 | % 9
 g1 | \barNumberCheck #11 % 10

wouldn't it be better to write

g1 | % 10
\barNumberCheck #11


in such cases?

Urs



 a,4 ( a4 ) ( b4 ) d4 | % 11

Not exactly an improvement here, is it?


I could spend time on the TODOs mentioned in the code, hence my
question: is there work going on on musicxml2ly, and if so, can I
contribute to it?

Wouldn't it be even more important to contribute to it if there was _no_
work going on on musicxml2ly?

Currently there is not much happening with it.  The Philomelos guys have
their own fork of it, but so far not much has been reintegrated into
LilyPond IIRC.




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-09 Thread pls
On 09.04.2013, at 09:01, Urs Liska li...@ursliska.de wrote:

 Am 09.04.2013 08:49, schrieb David Kastrup:
 Jacques Menu jacques.m...@tvtmail.ch writes:
 
 Hello folks,
 
 I've been experimenting with Sibelius 7.1.3 as a front-end to Lily,
 i.e. as a note input engine.
 
 This lead me to fix some issues in musicxml2ly:
 - the comment bar number at the end of regular lines is one
 too much;
 I don't see that.  It is the number that would be printed above the bar.
 
 - it's missing when a \ barNumberCheck is present;
 Because then the bar number is given by the \barNumberCheck command.
 
 - musicxml2ly crashes if there's no title specified in the XML
 file.
 That's certainly an error.
Which has been fixed on https://github.com/Philomelos/lilypond-musicxml2ly-dev
 
 The first two points are important to me since they help locating the
 guilty lines (it's cumbersome to have to do the math each time you
 switch from an error message to the .ly file).
 Math?  You just look for the right bar number and then read on from
 there.
 
 Compare the 2.16.2 original with the modified version used on the
 attached file:
 
  \clef treble \key c \major \numericTimeSignature\time 4/4
  \pageBreak a4 ( a4 ) ( b4 ) d4 | % 2
  \key c \major a4 ( a4 ) ( b4 ) d4 | % 3
  a4 ( a4 ) ( b4 ) d4 | % 4
  g1 | % 5
  a,4 ( a4 ) ( b4 ) d4 | % 6
  g1 \break | % 7
  a,4 ( a4 ) ( b4 ) d4 | % 8
  g1 | % 9
  a,4 ( a4 ) ( b4 ) d4 | \barNumberCheck #10
  g1 | % 11
  a,4 ( a4 ) ( b4 ) d4 | % 12
 Looks consistent to me.
 
 a,4 ( a4 ) ( b4 ) d4 | % 9
 g1 | \barNumberCheck #11 % 10
 wouldn't it be better to write
 
 g1 | % 10
 \barNumberCheck #11
 
 
 in such cases?
 
 Urs
 
 
 a,4 ( a4 ) ( b4 ) d4 | % 11
 Not exactly an improvement here, is it?
 
 I could spend time on the TODOs mentioned in the code, hence my
 question: is there work going on on musicxml2ly, and if so, can I
 contribute to it?
 Wouldn't it be even more important to contribute to it if there was _no_
 work going on on musicxml2ly?
 
 Currently there is not much happening with it.  
Wrong.  I spent quite a considerable amount of time tracking down and analyzing 
bugs that lead to compilation failures.  These bugs have a high priority.  
There are a lot more issues of the type ugly.  Apart from this there are 
still many white gaps in musicxml2ly.  But we only have limited time to fix all 
of these problems...
 The Philomelos guys have
 their own fork of it, but so far not much has been reintegrated into
 LilyPond IIRC.
We have fixed quite a few issues but there is still a lot to do.  Help would be 
very much appreciated!  I can offer to help with the reintegration of the code 
and to share our findings / bug reports.

hth
patrick
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-09 Thread Jacques Menu TvTMail
The math I mentioned is because I interpreted the bar number in:

a,4 ( a4 ) ( b4 ) d4 | % 6

as a help to locate the offending bar number…

David, sorry I offended you about work going on. I've got only one experience 
in open software contributions so far, which lead to a dead-end: these guys 
didn't even answer to my proposal...

I'll be glad to help on musicxml2ly, with guidance from Patrick or others as to 
how to proceed.

Jacques

Le 9 avr. 2013 à 10:08:00, pls p.l.schm...@gmx.de a écrit :

 On 09.04.2013, at 09:01, Urs Liska li...@ursliska.de wrote:
 
 Am 09.04.2013 08:49, schrieb David Kastrup:
 Jacques Menu jacques.m...@tvtmail.ch writes:
 
 Hello folks,
 
 I've been experimenting with Sibelius 7.1.3 as a front-end to Lily,
 i.e. as a note input engine.
 
 This lead me to fix some issues in musicxml2ly:
- the comment bar number at the end of regular lines is one
 too much;
 I don't see that.  It is the number that would be printed above the bar.
 
- it's missing when a \ barNumberCheck is present;
 Because then the bar number is given by the \barNumberCheck command.
 
- musicxml2ly crashes if there's no title specified in the XML
file.
 That's certainly an error.
 Which has been fixed on https://github.com/Philomelos/lilypond-musicxml2ly-dev
 
 The first two points are important to me since they help locating the
 guilty lines (it's cumbersome to have to do the math each time you
 switch from an error message to the .ly file).
 Math?  You just look for the right bar number and then read on from
 there.
 
 Compare the 2.16.2 original with the modified version used on the
 attached file:
 
  \clef treble \key c \major \numericTimeSignature\time 4/4
  \pageBreak a4 ( a4 ) ( b4 ) d4 | % 2
  \key c \major a4 ( a4 ) ( b4 ) d4 | % 3
  a4 ( a4 ) ( b4 ) d4 | % 4
  g1 | % 5
  a,4 ( a4 ) ( b4 ) d4 | % 6
  g1 \break | % 7
  a,4 ( a4 ) ( b4 ) d4 | % 8
  g1 | % 9
  a,4 ( a4 ) ( b4 ) d4 | \barNumberCheck #10
  g1 | % 11
  a,4 ( a4 ) ( b4 ) d4 | % 12
 Looks consistent to me.
 
a,4 ( a4 ) ( b4 ) d4 | % 9
g1 | \barNumberCheck #11 % 10
 wouldn't it be better to write
 
 g1 | % 10
 \barNumberCheck #11
 
 
 in such cases?
 
 Urs
 
 
a,4 ( a4 ) ( b4 ) d4 | % 11
 Not exactly an improvement here, is it?
 
 I could spend time on the TODOs mentioned in the code, hence my
 question: is there work going on on musicxml2ly, and if so, can I
 contribute to it?
 Wouldn't it be even more important to contribute to it if there was _no_
 work going on on musicxml2ly?
 
 Currently there is not much happening with it.  
 Wrong.  I spent quite a considerable amount of time tracking down and 
 analyzing bugs that lead to compilation failures.  These bugs have a high 
 priority.  There are a lot more issues of the type ugly.  Apart from this 
 there are still many white gaps in musicxml2ly.  But we only have limited 
 time to fix all of these problems...
 The Philomelos guys have
 their own fork of it, but so far not much has been reintegrated into
 LilyPond IIRC.
 We have fixed quite a few issues but there is still a lot to do.  Help would 
 be very much appreciated!  I can offer to help with the reintegration of the 
 code and to share our findings / bug reports.
 
 hth
 patrick
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user


Bien à toi,
Bien à vous,

--

Jacques Menu
Ch. de la Pierre 12
1023 Crissier

mailto:jacques.m...@tvtmail.ch



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-09 Thread David Kastrup
Jacques Menu TvTMail jacques.m...@tvtmail.ch writes:

 The math I mentioned is because I interpreted the bar number in:

 a,4 ( a4 ) ( b4 ) d4 | % 6

 as a help to locate the offending bar number…

Well, it is a help but probably not immediately what you'd like best.  I
think it is reasonable to have bar checks at the end of a line where
they don't distract from the content, and putting the comment containing
the bar number with it makes sense.  It is no accident that
\barNumberCheck fits well with that numbering.  Putting the bar number
at the start of the line would require

  %{ 5 %} a,4 ( a4 ) ( b4 ) d4 |

instead.

 David, sorry I offended you about work going on.

No offense was taken.  What might have looked like offense was just my
personal rendition of playful banter.  I might be somewhat
overspecialized regarding the roles I play.

 I've got only one experience in open software contributions so far,
 which lead to a dead-end: these guys didn't even answer to my
 proposal...

 I'll be glad to help on musicxml2ly, with guidance from Patrick or
 others as to how to proceed.

We have a contributor's guide for LilyPond in the documentation, it
outlines the general procedures pretty well.

I doubt you'll get much tutoring regarding musicxml2ly itself.  Like
with many other areas of LilyPond, work being done on it is spotty
enough that one can't really talk about coordinated efforts.  That does
not mean that organizing a concerted effort might not be a good idea,
but it might require a better overview over potential players and the
involved code passages and how to best approach them (or replace them)
than just fixing a few of your personal pet peeves might.  So it is
probably easiest to just try starting to work on those, and look for the
greater picture once you get more of a feeling for how things work.

There is also a certain likelihood of getting the these guys didn't
even answer to my proposal... impression: a large ratio of currently
active developers is mainly focused on their own projects.  We have a
bug squad that tries to make sure that no contributions fall through
the cracks, but even if things are tracked in the issue tracker, at some
point of time somebody needs to pick them up.



-- 
David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-09 Thread Werner LEMBERG
 Putting the bar number at the start of the line would require

   %{ 5 %} a,4 ( a4 ) ( b4 ) d4 |

 instead.

I like that.  It's tedious to type manually, but a computer program
doesn't know that word :-)


Werner

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-09 Thread Urs Liska

Am 09.04.2013 11:38, schrieb Werner LEMBERG:

Putting the bar number at the start of the line would require

   %{ 5 %} a,4 ( a4 ) ( b4 ) d4 |

instead.

I like that.  It's tedious to type manually, but a computer program
doesn't know that word :-)


 Werner

Would something like

%@5 a,4 ( a4 ) ( b4 ) d4 |

be an option?
The combination'%@' would indicate that the next token is meant as a 
measure number (or any other pointer to the structure of the content).
An editor could use such entries (i.e. specific syntax, starting at the 
beginning of a line) to create a document outline, e.g. point to @5 
entries in all parts.


Of course I know that syntax changes shouldn't be taken lightly, though ...

Urs


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-09 Thread David Kastrup
Urs Liska li...@ursliska.de writes:

 Am 09.04.2013 11:38, schrieb Werner LEMBERG:
 Putting the bar number at the start of the line would require

%{ 5 %} a,4 ( a4 ) ( b4 ) d4 |

 instead.
 I like that.  It's tedious to type manually, but a computer program
 doesn't know that word :-)


  Werner
 Would something like

 %@5 a,4 ( a4 ) ( b4 ) d4 |

 be an option?

In the same sense that drilling a hole in your knee and pouring in milk
is an option, definitely.

 The combination'%@' would indicate that the next token is meant as a
 measure number (or any other pointer to the structure of the content).

Except that inside of comments, there is no such thing as a token.
Which is part of a comment's appeal.  And a comment that is a pointer
to the structure of the content?  I don't see how a comment be any such
thing, but then I have a problem parsing this parenthetical addition
anyway.

 An editor could use such entries (i.e. specific syntax, starting at
 the beginning of a line) to create a document outline, e.g. point to
 @5 entries in all parts.

You lost me _way_ back.

 Of course I know that syntax changes shouldn't be taken lightly,
 though ...

There is nobody keeping you to put whatever editor-hinting comments into
your LilyPond source file using the existing comment syntax.  I don't
see what another comment syntax would buy you in that regard, though.

-- 
David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-09 Thread Thomas Morley
2013/4/9 David Kastrup d...@gnu.org:

 In the same sense that drilling a hole in your knee and pouring in milk
 is an option, definitely.

ROFLMAO

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-09 Thread lists
OK. Please consider my suggestion as obsolete, but I'd like to clarify  
what I intended to say (but obviously failed to do so)


Quoting David Kastrup d...@gnu.org:


Urs Liska li...@ursliska.de writes:


Would something like

%@5 a,4 ( a4 ) ( b4 ) d4 |

be an option?

The combination'%@' would indicate that the next token is meant as a
measure number (or any other pointer to the structure of the content).


Except that inside of comments, there is no such thing as a token.
Which is part of a comment's appeal.  And a comment that is a pointer
to the structure of the content?  I don't see how a comment be any such
thing, but then I have a problem parsing this parenthetical addition
anyway.

What I thought of was that
  %@
would assume an implicit closing tag after the next white space, so  
you can write

  %@5_ (the underscore meaning a space character)
instead of
  %{ 5 %}
so that the rest of the line is considered as non-comment.

That probably was a silly idea because its only real advantage is some  
slightly less typing.


Of course it was misleading to use 'keywords' like pointer etc. I  
meant special comments that indicate a measure number or any other  
indicator of a musical structure (e.g. partI, verse, coda etc.)





An editor could use such entries (i.e. specific syntax, starting at
the beginning of a line) to create a document outline, e.g. point to
@5 entries in all parts.


You lost me _way_ back.


Of course I know that syntax changes shouldn't be taken lightly,
though ...


There is nobody keeping you to put whatever editor-hinting comments into
your LilyPond source file using the existing comment syntax.  I don't
see what another comment syntax would buy you in that regard, though.

You're probably right.
Everything I could want could also be achieved with the existing  
command syntax.


Urs



--
David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user





___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-09 Thread Janek Warchoł
2013/4/9 Werner LEMBERG w...@gnu.org:
 Putting the bar number at the start of the line would require

   %{ 5 %} a,4 ( a4 ) ( b4 ) d4 |

 instead.

 I like that.  It's tedious to type manually, but a computer program
 doesn't know that word :-)

Indeed, but i find it unreadable, especially if it was placed at every line.
I think that the best way to mark bar numbers in source is to make a
separate-line comment every 5 or so measures:

 \clef treble \key c \major \numericTimeSignature \time 4/4
 a4 ( a4) ( b4 ) d4 |
 \key c \major a4 ( a4 ) ( b4 ) d4 |
 a4 ( a4 ) ( b4 ) d4 |
 g1 |
 % m.5
 a,4 ( a4 ) ( b4 ) d4 |
 g1 |
 a,4 ( a4 ) ( b4 ) d4 |
 g1 |
 a,4 ( a4 ) ( b4 ) d4 |
 % m.10
 g1 |
 a,4 ( a4 ) ( b4 ) d4 |

etc.
Janek

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly enhancements

2013-04-09 Thread Urs Liska

Am 09.04.2013 13:19, schrieb Janek Warchoł:

2013/4/9 Werner LEMBERG w...@gnu.org:

Putting the bar number at the start of the line would require

   %{ 5 %} a,4 ( a4 ) ( b4 ) d4 |

instead.

I like that.  It's tedious to type manually, but a computer program
doesn't know that word :-)

Indeed, but i find it unreadable, especially if it was placed at every line.
I think that the best way to mark bar numbers in source is to make a
separate-line comment every 5 or so measures:


 \clef treble \key c \major \numericTimeSignature \time 4/4
 a4 ( a4) ( b4 ) d4 |
 \key c \major a4 ( a4 ) ( b4 ) d4 |
 a4 ( a4 ) ( b4 ) d4 |
 g1 |
 % m.5
 a,4 ( a4 ) ( b4 ) d4 |
 g1 |
 a,4 ( a4 ) ( b4 ) d4 |
 g1 |
 a,4 ( a4 ) ( b4 ) d4 |
 % m.10
 g1 |
 a,4 ( a4 ) ( b4 ) d4 |

etc.
Janek
I have come to the conclusion that it is a _very_ good idea to make a 
measure number for _every_ measure.

That way you have a measure indicator in each Git diff.
Which proves useful to map the change to the location in the file if the 
line numbers have changed considerably in the meantime.


Urs


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly formatting

2013-03-22 Thread pls

Am 22.03.2013 um 00:52 schrieb Martin Tarenskeen m.tarensk...@zonnet.nl:

 
 
 On Thu, 21 Mar 2013, pls wrote:
 
 Martin,
 IINM Julien Lerouge and me are the only ones who currently work on 
 musicxml2ly.   We publish our
 results on https://github.com/Philomelos/lilypond-musicxml2ly-dev.  Feel 
 free to use it and help
 to improve it!  Some of our latest improvements:
 
 Why was this project forked? Wasn't it possible to do join the Lilypond team 
 and do the work on musicxml2ly within the lilypond development tree?
This fork is not a form of schism.  We just did it for practical reasons: we 
can develop faster and implement features that are important to us but maybe 
not to others.  I wrote a lot of bug reports concerning musicxml2ly but right 
now there don't seem to be too many people with expertise/interest in MusicXML, 
Python and time on the list.  (Correct me if I'm wrong.)  Of course we would 
love to see at least some of our code end up in a LilyPond version.  We just 
don't have the necessary time to add it to the lilypond development tree…  
Maybe you could help?!
 
 Does this mean that if I install the latest Lilypond version, even if I 
 choose to use the development version, I am not getting the latest version of 
 musicxml2ly?
Well yes, because our improvements are still on 
https://github.com/Philomelos/lilypond-musicxml2ly-dev.  Feel free to download, 
test, improve and add it to the latest version of musicxml2ly on lilypond.org.  
You can also test the current development version on philomelos.net.

patrick


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly formatting

2013-03-21 Thread pls
Martin,

IINM Julien Lerouge and me are the only ones who currently work on musicxml2ly. 
  We publish our results on 
https://github.com/Philomelos/lilypond-musicxml2ly-dev.  Feel free to use it 
and help to improve it!  Some of our latest improvements:
recognition of credit-Elements (title, composer, poet…)
new command line options, such as --no-system-breaks; --no-page-breaks; 
--no-page-margins; --no-stem-directions
automatic indentation of long instrument names
automatic update of the LilyPond-Code with convert-ly (after the conversion)
quite a few tiny xml examples

You are right, the resulting LilyPond files are not optimized.  To be honest: 
this is not at all on our priority list.  There are scores of more important 
bugs to kill.  But again we wouldn't mind some help!

Your plans to test a large collection of xml scores sounds very interesting!  
We use musicxml2ly on http:/philomelos.net to render xml files (Public Domain 
and CC-licenses).  Feel free to contact me if you are interested in an 
invitation to the beta version of the platform.

hth
patrick
Am 20.03.2013 um 10:31 schrieb Martin Tarenskeen m.tarensk...@zonnet.nl:

 
 Hi,
 
 Musicxml2ly is a nice tool, even if the output is quite often not perfect and 
 needs manual editing to - often easily - fix errors. (I have plans to test a 
 large collection of xml scores, and make a list of all strange and/or bad 
 results I'm encountering. But that's not what this message is about)
 
 Fixing errors in complex lilypond files is easier when the file is nicely 
 formatted. But IMO the output from music2xml, even if syntactically correct, 
 often looks ugly. When I use frescobaldi's formatting tool things already 
 look much better.
 
 Is muscxml2ly's ugly output formatting a matter of  personal taste and style, 
 or is this an issue worth to be added to the buglist?
 
 -- 
 
 MT
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly formatting

2013-03-21 Thread Martin Tarenskeen



On Thu, 21 Mar 2013, pls wrote:


Martin,
IINM Julien Lerouge and me are the only ones who currently work on musicxml2ly. 
  We publish our
results on https://github.com/Philomelos/lilypond-musicxml2ly-dev.  Feel free 
to use it and help
to improve it!  Some of our latest improvements:


Why was this project forked? Wasn't it possible to do join the Lilypond 
team and do the work on musicxml2ly within the lilypond development tree?


Does this mean that if I install the latest Lilypond version, even if I 
choose to use the development version, I am not getting the latest version 
of musicxml2ly?


I find this confusing, please explain.

Don't get me wrong, I am really glad there are people working on 
musicxml2ly improvement!


--

MT

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2012-06-19 Thread Rodolfo Zitellini
On Wed, May 16, 2012 at 7:55 PM, Colin Hall colingh...@gmail.com wrote:

 On Wed, May 16, 2012 at 10:42:09AM +0200, pls wrote:
 It's not a regression. It has never been officially fixed. A while
 ago I posted a bug report and a minimal example:
 http://old.nabble.com/musicxml2ly%3A-chordnames-placement-bug-td33309393.html.

 Here is a solution for the chord symbol bug:
 http://codereview.appspot.com/5697059/. I still haven't found the
 time to tidy up the patch. But it works!

 Thanks, Patrick. I'm going to move this conversation to bug-lilypond cc Martin
 and respond in full there.

 Cheers,
 Colin.

 --

 Colin Hall

 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi,
who is the maintainer of musicxml2ly? I made a small small patch to
preserve parenthesis on accidentals, would it be useful to anyone?

Ciao,
Rodolfo

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2012-06-19 Thread Janek Warchoł
On Tue, Jun 19, 2012 at 8:55 AM, Rodolfo Zitellini xhero...@gmail.com wrote:
 who is the maintainer of musicxml2ly? I made a small small patch to
 preserve parenthesis on accidentals, would it be useful to anyone?

I think musicxml2ly doesn't have any dedicated maintainer.
I suggest that you send an email to developers mailing list with the
patch attached (or upload it for a review yourself, but that's quite
complicated - partial instructions are in Contributors' Guide).

cheers,
Janek

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2012-06-19 Thread Colin Campbell

On 12-06-19 01:03 AM, Janek Warchoł wrote:

On Tue, Jun 19, 2012 at 8:55 AM, Rodolfo Zitellinixhero...@gmail.com  wrote:

who is the maintainer of musicxml2ly? I made a small small patch to
preserve parenthesis on accidentals, would it be useful to anyone?

I think musicxml2ly doesn't have any dedicated maintainer.
I suggest that you send an email to developers mailing list with the
patch attached (or upload it for a review yourself, but that's quite
complicated - partial instructions are in Contributors' Guide).

cheers,
Janek





Janek's suggestion is a good one, Rodolfo, and if you need a hand 
putting up a patch, I'll be glad to help where I can.


Cheers,
Colin

--
I've learned that you shouldn't go through life with a catcher's mitt on both 
hands. You need to be able to throw something back.
-Maya Angelou, poet (1928- )


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2012-06-19 Thread Rodolfo Zitellini
On Tue, Jun 19, 2012 at 2:58 PM, Colin Campbell c...@shaw.ca wrote:
 On 12-06-19 01:03 AM, Janek Warchoł wrote:

 On Tue, Jun 19, 2012 at 8:55 AM, Rodolfo Zitellinixhero...@gmail.com
  wrote:

 who is the maintainer of musicxml2ly? I made a small small patch to
 preserve parenthesis on accidentals, would it be useful to anyone?

 I think musicxml2ly doesn't have any dedicated maintainer.
 I suggest that you send an email to developers mailing list with the
 patch attached (or upload it for a review yourself, but that's quite
 complicated - partial instructions are in Contributors' Guide).

 cheers,
 Janek




 Janek's suggestion is a good one, Rodolfo, and if you need a hand putting up
 a patch, I'll be glad to help where I can.

 Cheers,
 Colin

 --
 I've learned that you shouldn't go through life with a catcher's mitt on
 both hands. You need to be able to throw something back.
 -Maya Angelou, poet (1928- )



 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

Thanks Janek and Colin, I posted my mini patch on -devel

Cheers,
Rodolfo

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2012-05-16 Thread Martin Tarenskeen




On Sun, 8 Apr 2012, Martin Tarenskeen wrote:

The good news is that in many cases only a little editing of the .ly file 
is required to turn a bad conversion into a good one. For example, all 
lead sheets from Wikifonia that I have tried have the Chords printed below 
instead of above the staff.


I remember this had been fixed in one of the previous lilypond 2.15.x 
versions, but with musicxml2ly from Lilypond 2.15.37 I am still (again?) 
having this problem.


Same with 2.15.38


Hi,

I did not see a reaction to this question, so I try again. What happened 
with this musicxml2ly bug ? First chords were printed below the staff, 
then I think it was fixed, and now the chords are below the staff again. 
Regression?


--

MT

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2012-05-16 Thread Graham Percival
On Wed, May 16, 2012 at 09:33:09AM +0200, Martin Tarenskeen wrote:
 
 I did not see a reaction to this question, so I try again. What
 happened with this musicxml2ly bug ? First chords were printed below
 the staff, then I think it was fixed, and now the chords are below
 the staff again. Regression?

Report bugs to the bugs mailing list, not the user or devel lists.

- Graham

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2012-05-16 Thread Colin Hall
On Wed, May 16, 2012 at 09:33:09AM +0200, Martin Tarenskeen wrote:
 The good news is that in many cases only a little editing of
 the .ly file is required to turn a bad conversion into a good
 one. For example, all lead sheets from Wikifonia that I have
 tried have the Chords printed below instead of above the
 staff.
 
 I remember this had been fixed in one of the previous lilypond
 2.15.x versions, but with musicxml2ly from Lilypond 2.15.37 I am
 still (again?) having this problem.
 
 Same with 2.15.38
 
 I did not see a reaction to this question, so I try again. What
 happened with this musicxml2ly bug ? First chords were printed below
 the staff, then I think it was fixed, and now the chords are below
 the staff again. Regression?

That must be very frustrating for you. Sorry that I can't help you, as
I'm not familiar with musicxml2ly. It appears to be central to
Patrick's project so I would imagine he or his colleagues are working
hard on this.

http://www.philomelos.net/en/about

There are a number of issue trackers relating to musicxml2ly but I see
no issue tracker for this bug, Martin.

I'd like to at least record the bug. We can create a tracker if you
supply these details:

1. A version of lilypond/musicxml2ly and a specific lead sheet from Wikifonia
   in MusicXML format that together exhibit the bug.

2. A version of lilypond/musicxml2ly from the 2.15.x series which does not 
exhibit the bug.

Cheers,
Colin.

-- 

Colin Hall

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2012-05-16 Thread pls
It's not a regression. It has never been officially fixed. A while ago I posted 
a bug report and a minimal example: 
http://old.nabble.com/musicxml2ly%3A-chordnames-placement-bug-td33309393.html.

Here is a solution for the chord symbol bug: 
http://codereview.appspot.com/5697059/. I still haven't found the time to tidy 
up the patch. But it works!
Am 16.05.2012 um 10:18 schrieb Colin Hall:

 On Wed, May 16, 2012 at 09:33:09AM +0200, Martin Tarenskeen wrote:
 The good news is that in many cases only a little editing of
 the .ly file is required to turn a bad conversion into a good
 one. For example, all lead sheets from Wikifonia that I have
 tried have the Chords printed below instead of above the
 staff.
 
 I remember this had been fixed in one of the previous lilypond
 2.15.x versions, but with musicxml2ly from Lilypond 2.15.37 I am
 still (again?) having this problem.
 
 Same with 2.15.38
 
 I did not see a reaction to this question, so I try again. What
 happened with this musicxml2ly bug ? First chords were printed below
 the staff, then I think it was fixed, and now the chords are below
 the staff again. Regression?
 
 That must be very frustrating for you. Sorry that I can't help you, as
 I'm not familiar with musicxml2ly. It appears to be central to
 Patrick's project so I would imagine he or his colleagues are working
 hard on this.
 
 http://www.philomelos.net/en/about
 
 There are a number of issue trackers relating to musicxml2ly but I see
 no issue tracker for this bug, Martin.
 
 I'd like to at least record the bug. We can create a tracker if you
 supply these details:
 
 1. A version of lilypond/musicxml2ly and a specific lead sheet from Wikifonia
   in MusicXML format that together exhibit the bug.
 
 2. A version of lilypond/musicxml2ly from the 2.15.x series which does not 
 exhibit the bug.
 
 Cheers,
 Colin.
 
 -- 
 
 Colin Hall
 
 ___
 bug-lilypond mailing list
 bug-lilyp...@gnu.org
 https://lists.gnu.org/mailman/listinfo/bug-lilypond


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2012-05-16 Thread Colin Hall

On Wed, May 16, 2012 at 10:42:09AM +0200, pls wrote:
 It's not a regression. It has never been officially fixed. A while
 ago I posted a bug report and a minimal example:
 http://old.nabble.com/musicxml2ly%3A-chordnames-placement-bug-td33309393.html.

 Here is a solution for the chord symbol bug:
 http://codereview.appspot.com/5697059/. I still haven't found the
 time to tidy up the patch. But it works!

Thanks, Patrick. I'm going to move this conversation to bug-lilypond cc Martin
and respond in full there.

Cheers,
Colin.

-- 

Colin Hall

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: musicxml2ly

2012-05-12 Thread Martin Tarenskeen



On Sun, 8 Apr 2012, Martin Tarenskeen wrote:

The good news is that in many cases only a little editing of the .ly file is 
required to turn a bad conversion into a good one. For example, all lead 
sheets from Wikifonia that I have tried have the Chords printed below instead 
of above the staff.


I remember this had been fixed in one of the previous lilypond 2.15.x 
versions, but with musicxml2ly from Lilypond 2.15.37 I am still (again?) 
having this problem.


--

MT

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


  1   2   >