Re: Problems with musicxml2ly

2022-12-21 Thread mark damerell
Thank you very much all who replied. Paul Hodges said (in part):

... Music XML files always require a lot of processing to get acceptable
> output  ...
>

 This is certainly true in this instance!! Thank you all.


Re: Problems with musicxml2ly

2022-12-20 Thread Jacques Menu
Well, well, it seems I’m getting too old to try and help other users, and that 
the only misleading thing is my environment being set to have ‘.mxl’ files 
opened by MuseScore...

Sorry for the (large) noise!

JM




Re: Problems with musicxml2ly

2022-12-20 Thread Silvain Dupertuis

I tried this:

1. opening the file with MuseScore (3.6 portable) 2. reexporting in MusicXML format, 3, 
then importing the resulting file into Lilypond:


Now the import works, but there are still a certain number of errors in the Lilypond file 
when I try to process the file (warnings are in French). I do not have the time and did 
not try and correcting them...


AbsoluteDynamicEvent non attaché
Avertissement : liaison de prolongation non terminée (3×)

Avertissement : trait d'union sans suite ; escamoté

and the process stops with error code 6

Le 20.12.22 à 09:36, Jacques Menu a écrit :

Hello Mark,


Unfortunately I do not know any way to produce a small xml  that will give this 
error.
The file I wanted was "O holy night" by Adolphe Adam (translated into English) 
adapted
by P. Le Bas.
It came from this address:

https://www.cpdl.org/wiki/index.php/Minuit,_chr%C3%A9tiens_(O_Holy_Night)_(Adolphe_Charles_Adam)#In_English_translation.2C_.22O_Holy_Night.22


The legend on this page is misleading: the files that can be downloaded clicking on the 
supposedly MusicXML icon have a ‘.mxl’ suffix, i.e. they are MuseScore files in fact:




I know, it’s unfortunate that this suffix is so close to ‘.xml’…

The first page this gives in the recent MuseScore 4.0.0r is:




Exporting all the parts to MusicXML produces the attached O_Holy_Night.xml file. Note 
that MusicXML is a textual format, and one can open such files with any text editor:




Here again. a suffix point: historically, MusicXML has used ‘.xml’, which is marked as 
obsolete by MuseScore. An attempt to change that to ‘.musicxml’ doesn’t seem to have 
gained approval yet, though.


Converting O_Holy_Night.xml to LilyPond with:

*musicxml2ly (LilyPond) 2.23.82*

*Copyright (c) 2005--2022 by*

*    Han-Wen Nienhuys ,*

*    Jan Nieuwenhuizen  and*

*    Reinhold Kainhofer *

*    Patrick L. Schmidt *


produces the attached O_Holy_Night.ly, converted to the attached O_Holy_Night.pdf file 
by LilyPond.


HTH!

JM








--
Silvain Dupertuis
Route de Lausanne 335
1293 Bellevue (Switzerland)
tél. +41-(0)22-774.20.67
portable +41-(0)79-604.87.52
web: silvain-dupertuis.org <https://perso.silvain-dupertuis.org>

Re: Problems with musicxml2ly

2022-12-20 Thread Paul Hodges

From:   Jacques Menu  





The legend on this page is misleading: the files that can be downloaded 
clicking on the supposedly MusicXML icon have a ‘.mxl’ suffix, i.e. they are 
MuseScore files in fact:

.mxl files are the standard compressed form of Music XML files; the Music XML 
file is compressed as a .zip file which is then renamed .mxl.









As to the original issue - my experience is that Music XML files always require 
a lot of processing to get acceptable output - I just treat them as a means of 
inputting notes, and remove all the extraneous formatting, and simplify and 
rewrite the score layout until it's correct.  Music XML is far from a 
satisfactory medium for transmitting formatted scores.


Sometimes I find it helps to read the Music XML into Dorico and write a new 
Music XML file from there; but in this case Dorico sees similar problems, with 
five staves for the organ, and also overlaid words in some places which 
LilyPond manages better.


Paul





Re: Problems with musicxml2ly

2022-12-20 Thread m.tarensk...@kpnmail.nl
MusicXml files can have .xml .mxl or .musicxml filename extension.Musescore file format uses .mscz extension.Verzonden vanaf mijn Huawei mobiele telefoon Oorspronkelijk bericht Onderwerp: Re: Problems with musicxml2lyVan: Jean Abou Samra Aan: Jacques Menu ,mark damerell Cc: lilypond-user Le 20/12/2022 à 09:36, Jacques Menu a écrit :> Hello Mark,>>> Unfortunately I do not know any way to produce a small xml  that will >> give this error.>> The file I wanted was "O holy night" by Adolphe Adam (translated into >> English) adapted>> by P. Le Bas.>> It came from this address:>>>> https://www.cpdl.org/wiki/index.php/Minuit,_chr%C3%A9tiens_(O_Holy_Night)_(Adolphe_Charles_Adam)#In_English_translation.2C_.22O_Holy_Night.22>> The legend on this page is misleading: the files that can be > downloaded clicking on the supposedly MusicXML icon have a ‘.mxl’ > suffix, i.e. they are MuseScore files in fact:Are you sure? I think .mxl is the extension for MusicXML files compressed in a standard way. Seehttps://www.w3.org/2021/06/musicxml40/tutorial/compressed-mxl-files/So the issue smells like a musicxml2ly bug to me, but I didn't investigate much more.Best,Jean

Re: Problems with musicxml2ly

2022-12-20 Thread Silvain Dupertuis

I do not think the problem is with the msl format, which is an archive 
containing a xml file.
I tried on another mxl file directly and it worked. But it was actually a score coming 
from Lilypond.
In the case of Minuit, I tried extracting the xml file from the mxl file and using 
musicxml2ly on the mxl archive gives the same result (and the same errors)...



Le 20.12.22 à 09:36, Jacques Menu a écrit :

Hello Mark,


Unfortunately I do not know any way to produce a small xml  that will give this 
error.
The file I wanted was "O holy night" by Adolphe Adam (translated into English) 
adapted
by P. Le Bas.
It came from this address:

https://www.cpdl.org/wiki/index.php/Minuit,_chr%C3%A9tiens_(O_Holy_Night)_(Adolphe_Charles_Adam)#In_English_translation.2C_.22O_Holy_Night.22


The legend on this page is misleading: the files that can be downloaded clicking on the 
supposedly MusicXML icon have a ‘.mxl’ suffix, i.e. they are MuseScore files in fact:




I know, it’s unfortunate that this suffix is so close to ‘.xml’…

The first page this gives in the recent MuseScore 4.0.0r is:




Exporting all the parts to MusicXML produces the attached O_Holy_Night.xml file. Note 
that MusicXML is a textual format, and one can open such files with any text editor:




Here again. a suffix point: historically, MusicXML has used ‘.xml’, which is marked as 
obsolete by MuseScore. An attempt to change that to ‘.musicxml’ doesn’t seem to have 
gained approval yet, though.


Converting O_Holy_Night.xml to LilyPond with:

*musicxml2ly (LilyPond) 2.23.82*


*Copyright (c) 2005--2022 by*

*    Han-Wen Nienhuys ,*

*    Jan Nieuwenhuizen  and*

*    Reinhold Kainhofer *

*    Patrick L. Schmidt *


produces the attached O_Holy_Night.ly, converted to the attached O_Holy_Night.pdf file 
by LilyPond.


HTH!

JM









--
Silvain Dupertuis
Route de Lausanne 335
1293 Bellevue (Switzerland)
tél. +41-(0)22-774.20.67
portable +41-(0)79-604.87.52
web: silvain-dupertuis.org <https://perso.silvain-dupertuis.org>

Re: Problems with musicxml2ly

2022-12-20 Thread Jean Abou Samra



Le 20/12/2022 à 09:36, Jacques Menu a écrit :

Hello Mark,

Unfortunately I do not know any way to produce a small xml  that will 
give this error.
The file I wanted was "O holy night" by Adolphe Adam (translated into 
English) adapted

by P. Le Bas.
It came from this address:

https://www.cpdl.org/wiki/index.php/Minuit,_chr%C3%A9tiens_(O_Holy_Night)_(Adolphe_Charles_Adam)#In_English_translation.2C_.22O_Holy_Night.22


The legend on this page is misleading: the files that can be 
downloaded clicking on the supposedly MusicXML icon have a ‘.mxl’ 
suffix, i.e. they are MuseScore files in fact:



Are you sure? I think .mxl is the extension for MusicXML files 
compressed in a standard way. See


https://www.w3.org/2021/06/musicxml40/tutorial/compressed-mxl-files/

So the issue smells like a musicxml2ly bug to me, but I didn't 
investigate much more.


Best,
Jean



OpenPGP_signature
Description: OpenPGP digital signature


Problems with musicxml2ly

2022-12-19 Thread mark damerell via LilyPond user discussion
Sorry about the length of this: In outline: I tried to use  musicxml2ly  on
a  xml  file.
This ran with no error, but when I ran  lilypond on the result,  I got a
flood of warnings
& then a fatal error & no output.  I append the (truncated) error report I
hope.

Unfortunately I do not know any way to produce a small  xml  that will give
this error.
The file I wanted was "O holy night" by Adolphe Adam (translated into
English) adapted
by P. Le Bas.
It came from this address:


https://www.cpdl.org/wiki/index.php/Minuit,_chr%C3%A9tiens_(O_Holy_Night)_(Adolphe_Charles_Adam)#In_English_translation.2C_.22O_Holy_Night.22

& it was the first item listed.  It was available in  pdf  , mid  ,  mp3 ,
xml  and  sib.
jsonformatter.org   said it is a valid  xml  file. The  pdf  looks good.  I
tried  midi2ly
& the result was really weird.  Please any advice?
rmd@rmd:~/Music/night$ musicxml2ly O\ Holy\ Night\ -\ NP.xml 
musicxml2ly: Reading MusicXML from O Holy Night - NP.xml ...
musicxml2ly: Converting to LilyPond expressions...
musicxml2ly: warning: Negative skip -3/2 (from position 249/2 to 123)
musicxml2ly: warning: Negative skip -9/8 (from position 993/8 to 123)


[ 350 similar errors]


musicxml2ly: Converting to LilyPond expressions...
musicxml2ly: Converting to LilyPond expressions...
musicxml2ly: warning: Negative skip -1 (from position 275/2 to 273/2)
musicxml2ly: Converting to LilyPond expressions...
Traceback (most recent call last):
  File "/usr/bin/musicxml2ly", line 2986, in 
    main()
  File "/usr/bin/musicxml2ly", line 2981, in main
voices = convert (filename, options)
  File "/usr/bin/musicxml2ly", line 2892, in convert
score = extract_score_structure (mxl_pl, staff_info)
  File "/usr/bin/musicxml2ly", line 430, in extract_score_structure
staff = read_score_part (el)
  File "/usr/bin/musicxml2ly", line 383, in read_score_part
    staff.instrument_name = extract_display_text (partname)
  File "/usr/bin/musicxml2ly", line 907, in extract_display_text
child = el.get_maybe_exist_named_child ("display-text")
  File "/usr/share/lilypond/2.18.2/python/musicxml.py", line 114, in 
get_maybe_exist_named_child
return self.get_maybe_exist_typed_child (get_class (name))
  File "/usr/share/lilypond/2.18.2/python/musicxml.py", line 123, in 
get_maybe_exist_typed_child
raise "More than 1 child", klass
TypeError: exceptions must be old-style classes or derived from BaseException, 
not str
rmd@rmd:~/Music/night$ 

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.


musicxml2ly in python

2022-02-24 Thread 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


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 > <mailto:j...@abou-samra.fr>> 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




musicxml2ly problem as of 2.20.0

2021-03-26 Thread Jacques Menu
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




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.



musicxml2ly

2020-05-23 Thread Martin Tarenskeen


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 
simple chord correctly and returns single notes instead? I can't remember 
it was like this in older versions, so I am assuming a regression?


MT

simpleChord.mscz
Description: Zip archive

http://www.musicxml.org/dtds/partwise.dtd;>

  
simple chord

  

  MuseScore 3.4.2
  2020-05-23
  
  
  
  
  
  

  

  7.05556
  40
  

  1683.36
  1190.88
  
56.6929
56.6929
56.6929
113.386

  
56.6929
56.6929
56.6929
113.386

  



  
simple chord

  

  Piano
  Pno.
  
Piano

  
  
1
1
78.7402
0

  

  

  

  
0.00
819.58

  170.00
  

  
1

  0
  

  4
  4
  

  G
  2
  

  

  F
  4
  
4
1
whole

  


  A
  4
  
4
1
whole

  


  C
  5
  
4
1
whole

  
light-heavy

  

  
\version "2.21.1"
% automatically converted by musicxml2ly from simpleChord.musicxml
\pointAndClickOff

\header {
title =  "simple chord"
encodingsoftware =  "MuseScore 3.4.2"
encodingdate =  "2020-05-23"
}

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

paper-width = 21.01\cm
paper-height = 29.69\cm
top-margin = 1.0\cm
bottom-margin = 2.0\cm
left-margin = 1.0\cm
right-margin = 1.0\cm
indent = 1.6161538461538463\cm
short-indent = 1.292923076923077\cm
}
\layout {
\context { \Score
autoBeaming = ##f
}
}
PartPOneVoiceOne =  \relative f' {
\clef "treble" \numericTimeSignature\time 4/4 \key c \major | % 1
f1 | % 1
a1 | % 1
c1 \bar "|."
}


% The score definition
\score {
<<

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

\context Staff << 
\mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
\context Voice = "PartPOneVoiceOne" {  \PartPOneVoiceOne }
>>
>>

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



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 
<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

musicxml2ly 2.20 bug

2020-03-22 Thread Павел Буданов
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


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 <http://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


musicxml2ly was re abc2ly

2018-12-10 Thread 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?

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


Re: Enconding problems with musicxml2ly

2018-11-16 Thread Lukas-Fabian Moser

Hi Urs,

In the ly file created by musicxml2ly, any quoted string contains 
strange characters which prevent Lilypond from compiling the file. On 
my system, they are displayed thus (I include Kate's warning):


This was discussed recently. I don't recall exactly what it was about 
but you might search the archives (both lilypond-user and 
bug-lilypond). I would think it has to do with the pretty old Python 
version shipped with LilyPond. As a workaround (you're right that's 
definitely not the way it *should* be) you should be able to remove 
these "characters" automatically.


Thanks for the pointer - I don't usually follow the goings on in 
bug-lilypond, which is where that recent discussion took place. I'm sorry!


For future reference: The problem is discussed in

https://lists.gnu.org/archive/html/bug-lilypond/2018-08/msg00038.html
and
http://lists.gnu.org/archive/html/lilypond-user/2017-05/msg00230.html

It's not so bad since it turns out that (as Urs suggested) killing the 
spurious "Delta" signs by search (e.g. in Frescobaldi) solves 
the problem. So it's just a slight inconvenience.


Best
Lukas


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


Re: Enconding problems with musicxml2ly

2018-11-15 Thread Urs Liska


Am 16.11.18 um 08:29 schrieb Lukas-Fabian Moser:


Dear List,

I try to transfer music written in MuseScore 2.3.2 (Linux) to Lilypond 
using MuseScore's musicxml export and musicxml2ly from 2.19.80.


In the ly file created by musicxml2ly, any quoted string contains 
strange characters which prevent Lilypond from compiling the file. On 
my system, they are displayed thus (I include Kate's warning):


This also happens with literal strings (pizz, arco etc.), which are 
perfectly straightforward ASCII in the .musicxml file generated by 
MuseScore.


Can anybody give me a hint what makes musicxml2ly produce such 
characters? (If I remove them by hand, the produced .ly file works 
just fine, but of course that's not the way to go in a score that 
contains plenty of text markings.)




This was discussed recently. I don't recall exactly what it was about 
but you might search the archives (both lilypond-user and bug-lilypond). 
I would think it has to do with the pretty old Python version shipped 
with LilyPond. As a workaround (you're right that's definitely not the 
way it *should* be) you should be able to remove these "characters" 
automatically.


HTH
Urs



Best
Lukas


___
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


Enconding problems with musicxml2ly

2018-11-15 Thread Lukas-Fabian Moser

Dear List,

I try to transfer music written in MuseScore 2.3.2 (Linux) to Lilypond 
using MuseScore's musicxml export and musicxml2ly from 2.19.80.


In the ly file created by musicxml2ly, any quoted string contains 
strange characters which prevent Lilypond from compiling the file. On my 
system, they are displayed thus (I include Kate's warning):


This also happens with literal strings (pizz, arco etc.), which are 
perfectly straightforward ASCII in the .musicxml file generated by 
MuseScore.


Can anybody give me a hint what makes musicxml2ly produce such 
characters? (If I remove them by hand, the produced .ly file works just 
fine, but of course that's not the way to go in a score that contains 
plenty of text markings.)


Best
Lukas

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


musicxml2ly fails on start and stop

2018-05-07 Thread Menu Jacques
Hello folks,

The MusicXML example below causes musicxml2ly 2.19.80 to create the following 
code, which is not acceptable to LilyPond:


Starting lilypond 2.19.80 [ExtendStartAndStop.ly]...
Processing 
`/Users/menu/Documents/LaTeX/PartitionsLilypond/lyrics/ExtendStartAndStop.ly'
Parsing...
/Users/menu/Documents/LaTeX/PartitionsLilypond/lyrics/ExtendStartAndStop.ly:48:19
 : error: syntax error, 
unexpected __
"テ " __\skip1
__ " " "ニ " 
/Users/menu/Documents/LaTeX/PartitionsLilypond/lyrics/ExtendStartAndStop.ly:54:5
 : error: errors found, 
ignoring music expression
<<
fatal error: failed files: 
"/Users/menu/Documents/LaTeX/PartitionsLilypond/lyrics/ExtendStartAndStop.ly"
Exited with return code 1.



%


\version "2.19.80"
% automatically converted by musicxml2ly from ExtendStartAndStop.xml
\pointAndClickOff

\header {
subtitle =  "Echigo-Jishi"
copyright = 
"Transcription donated to the public domain, 2005 by Tom Potter"
encodingdate =  "2007-06-19"
title =  "越後獅子"
poet =  \markup \column {
\line { "Source: \Japanese Popular Music: a collection of the popular 
music of Japan rendered in to the "}
\line { "staff notation\, by Y. Nagai and K. Kobatake, 2nd ed., Osaka, 
S. Miki & Co., 1892, pp. 96-97."}
\line { ""}
\line { "Transcribed into Finale music notation by Tom Potter, 2005.  
See http://www.daisyfield.com/music/"}
\line { "Lyrics added by Karen Tanaka and Michael Good, 2006. See 
http://www.recordare.com/"}
}

arranger =  "Y. Nagai"
composer =  "Arr. Y. Nagai , K. Kobatake"
encodingsoftware =  "Finale 2005 for Windows"
}

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

paper-width = 21.59\cm
paper-height = 27.93\cm
top-margin = 0.18\cm
bottom-margin = 1.27\cm
left-margin = 1.9\cm
right-margin = 1.27\cm
between-system-space = 1.68\cm
page-top-space = 1.68\cm
}
\layout {
\context { \Score
autoBeaming = ##f
}
}
PartPOneVoiceOne =  \relative b' {
\clef "treble" \key c \major \time 2/4 | % 1
\stemDown b4 ^\markup{ \bold {Allegro} } \stemDown c8 [ \stemDown e8
] | % 2
\stemDown fis8 \stemDown fis4 \stemDown e8 }

PartPOneVoiceOneLyricsOne =  \lyricmode {\set ignoreMelismata = ##t
"テ " __\skip1 __ " " "ニ " 
}


% The score definition
\score {
<<

\new Staff
<<

\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 = 92 }
}


%



http://www.musicxml.org/dtds/partwise.dtd;>

  越後獅子
  

  7.2319
  40


  
  
  

  MusicXML Part
  
Koto
  
  
1
108
  

  
  
  

  
8

  0
  major


  2
  4


  G
  2

  
  

  Allegro


  
  
  

  B
  4

8
1
quarter
down

  single
  テ
  

  
  

  C
  5

4
1
eighth
down
begin
  
  

  E
  5

4
1
eighth
down
end

  

  


  
  




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


Re: Problems with musicxml2ly

2017-05-10 Thread Simon Albrecht

Am 10.05.2017 um 10:08 schrieb Don Gingrich:

I thought(hoped) that we had got past the
days of "Standards aren't":-)


That’s a good thing to hope for. Though… 
Thumbs up to MEI…

Best, Simon

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


Re: Problems with musicxml2ly

2017-05-10 Thread Richard Shann
On Wed, 2017-05-10 at 18:08 +1000, Don Gingrich wrote:
> On Wed, 10 May 2017 08:45:40 Richard Shann wrote:
[...]
> And, by the way, the chordnames above the staves vanished
> somewhere in your import.

Denemo's MusicXML import is very crude, it doesn't even try for chord
names, lyrics and probably quite a lot of other things, just
concentrates on reducing the labor of putting in all those dratted notes
and durations again. The upside of this is that it will often get you
*something* while musicxml2ly generally used to give up if it
encountered something bad in the input.
> 
> I've now got two versions that I can try to work with.
> 
> So, thanks for having a go.

Happy to test out musicXML import via Denemo any time, in the hopes of
finding places to improve it.

Richard





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


Re: Problems with musicxml2ly

2017-05-10 Thread Don Gingrich
On Wed, 10 May 2017 08:45:40 Richard Shann wrote:
> On Wed, 2017-05-10 at 13:43 +1000, Don Gingrich wrote:
> > Perhaps cubase does something unusual with the setup
> > of the XML file?
> 
> Unfortunately MusicXML is IMHO just a rag-bag of ideas for fields to
> describe poorly documented music features, every program devises its own
> interpretation of the "standard".

I thought(hoped) that we had got past the
days of "Standards aren't" :-)

Unfortunately it seems not much has changed since my early 
experience in the 80s. <sigh!>

I only posted this because I thought that it might be useful to
those working on musicxml2ly.

And, by the way, the chordnames above the staves vanished
somewhere in your import.

I've now got two versions that I can try to work with.

So, thanks for having a go.

Cheers,

-Don
> 
> FWIW I imported this via Denemo and it looked ok - not sure what it
> should look like. Attached is the LilyPond source generated and the PDF
> I get.
> 
> Richard



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


Re: Problems with musicxml2ly

2017-05-10 Thread Richard Shann
On Wed, 2017-05-10 at 13:43 +1000, Don Gingrich wrote:
> Perhaps cubase does something unusual with the setup
> of the XML file?

Unfortunately MusicXML is IMHO just a rag-bag of ideas for fields to
describe poorly documented music features, every program devises its own
interpretation of the "standard".

FWIW I imported this via Denemo and it looked ok - not sure what it
should look like. Attached is the LilyPond source generated and the PDF
I get.

Richard


output-Default Score Layout.pdf
Description: Adobe PDF document

%% LilyPond file generated by Denemo version 2.1.3

%%http://www.gnu.org/software/denemo/

\version "2.18.0"

CompactChordSymbols = {}
#(define DenemoTransposeStep 0)
#(define DenemoTransposeAccidental 0)
DenemoGlobalTranspose = #(define-music-function (parser location arg)(ly:music?) #{\transpose c c#arg #})
titledPiece = {}
AutoBarline = {}
AutoEndMovementBarline = \bar "|."

% The music follows

MvmntIVoiceI = {
<> ^\markup \bold {"Levi Jackson Rag" }}






\score
{ %Start of Selection from current movement
  <<

%Start of Staff
\new Staff = "voice 1"  << 
 \new Voice = "MvmntIVoiceI"  { 
  \clef treble\key c \major\time 2/4   \MvmntIVoiceI
} %End of voice

>> %End of Staff

  >>

\header {

}

} %End of Movement



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


Problems with musicxml2ly

2017-05-09 Thread Don Gingrich
Just tried to import a cubase XML file and hit a 
*bunch* of errors.

I did finally get a .ly, but it was a struggle and required the
command line version rather than working in Frescobaldi.

I post this, not so much asking for assistance, but as possibly
useful data for those working on  musicxml2ly. So, no replies
required unless I've stuffed up something obvious.

Perhaps cubase does something unusual with the setup
of the XML file?

Cheers

-Don

XML file follows: (sorry, it's *BIG*, but didn't know where/how to edit for 
minimum example)

__

#>  musicxml2ly --no-beaming -v "Levi Jackson Rag.xml"
musicxml2ly: Reading MusicXML from Levi Jackson Rag.xml ...
musicxml2ly: Converting to LilyPond expressions...
musicxml2ly: warning: Unable to convert chord type none to lilypond.
musicxml2ly: warning: Unable to convert chord type none to lilypond.
musicxml2ly: warning: Unable to convert chord type none to lilypond.
musicxml2ly: warning: Unable to convert chord type none to lilypond.
musicxml2ly: warning: Unable to convert chord type none to lilypond.
musicxml2ly: warning: Unable to convert chord type none to lilypond.
musicxml2ly: warning: Unable to convert chord type none to lilypond.
Traceback (most recent call last):
  File "/usr/bin/musicxml2ly", line 2986, in 
main()
  File "/usr/bin/musicxml2ly", line 2981, in main
voices = convert (filename, options)
  File "/usr/bin/musicxml2ly", line 2887, in convert
(voices, staff_info) = get_all_voices (parts)
  File "/usr/bin/musicxml2ly", line 2574, in get_all_voices
part_ly_voices[n] = musicxml_voice_to_lily_voice (v)
  File "/usr/bin/musicxml2ly", line 2189, in musicxml_voice_to_lily_voice
for a in musicxml_harmony_to_lily_chordname (n):
  File "/usr/bin/musicxml2ly", line 1690, in musicxml_harmony_to_lily_chordname
ev.root = musicxml_chordpitch_to_lily (root)
  File "/usr/bin/musicxml2ly", line 1628, in musicxml_chordpitch_to_lily
r.alteration = mxl_cpitch.get_alteration ()
  File "/usr/share/lilypond/2.18.2/python/musicxml.py", line 1098, in 
get_alteration
return interpret_alter_element (ch)
  File "/usr/share/lilypond/2.18.2/python/musicxml.py", line 40, in 
interpret_alter_element
val = eval(alter_elm.get_text ())
  File "", line 2

^
IndentationError: unexpected indent

#> cat "Levi Jackson Rag.xml"

http://www.musicxml.org/dtds/partwise.dtd;>



Cubase, Version 7.0.5, Build 2197
2017-05-09




7.01
40


1682
1190

86
88
86
88











1
0







480

1


2
4


G
2




D

none

D




Levi Jackson Rag

1



by Pat Shaw

1



240
1
eighth
1



   

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 <jpk...@gmail.com> 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


musicxml2ly makes an apparently defective lilypond file

2016-12-14 Thread Patrick Karl

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?






test.midi
Description: MIDI audio


test_midi_Musescore.ly
Description: Binary data

http://www.musicxml.org/dtds/partwise.dtd;>

  

  MuseScore 2.0.3.1
  2016-12-14
  
  
  
  
  
  

  

  7.05556
  40
  

  1683.78
  1190.55
  
56.6929
56.6929
56.6929
113.386

  
56.6929
56.6929
56.6929
113.386

  



  

  Piano
  Pno.
  
Piano

  
  
1
1
78.7402
0

  

  

  

  
0.00
697.91

  70.00
  

  
1

  0
  

  4
  4
  

  G
  2
  

  

  
quarter
60

  


  

  C
  5
  
1
1
quarter
down

  single
  creator: 
  

  

1
1
quarter

  

2
1
half

  

  
___
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 <imj-muz...@bluewin.ch> writes:

>> Le 17 août 2016 à 21:26, David Kastrup <d...@gnu.org> a écrit:
>> 
>> Johan Vromans <jvrom...@squirrel.nl> writes:
>> 
>>> David Kastrup <d...@gnu.org> 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 <d...@gnu.org> a écrit :
> 
> Johan Vromans <jvrom...@squirrel.nl> writes:
> 
>> David Kastrup <d...@gnu.org> 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 <jvrom...@squirrel.nl> writes:

> David Kastrup <d...@gnu.org> 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 <d...@gnu.org> 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 <d...@gnu.org> 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 <jvrom...@squirrel.nl> writes:

> Johan Vromans <jvrom...@squirrel.nl> 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 <jvrom...@squirrel.nl> 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


MusicXML2Ly: Problem with minor chords

2016-08-16 Thread Johan Vromans
Hi,

In the attached XML, the minor D chord

  

  D

minor
  

is translated into

  d:m5

and apparently not understood -- lilypond renders it as a major D chord
without warning.

Dm(maj7) becomes d:maj7m5.

A similar thing happens to half-diminished chords: Bm7b5 becomes b:dim5m7.

Is this a known problem? Googling for "musicxml2ly minor" did not return
anything relevant.

-- Johan
\version "2.19.45"
% automatically converted by musicxml2ly from x.xml
\pointAndClickOff

\header {
encodingsoftware =  "MuseScore 2.0.3"
source =  "http://musescore.com/score/1578186;
copyright =  "Círculo da Música - 2011"
encodingdate =  "2016-08-16"
}

PartPOneVoiceOne =  \relative a {
\clef "treble" \key f \major \numericTimeSignature\time 4/4 \partial
8 a8 \bar "||"
a'8 f8 d2. }

PartPOneVoiceOneChords =  \chordmode {
\partial 8 s8 \bar "||"
d8:m5 s8 }


% The score definition
\score {
<<

\context ChordNames = "PartPOneVoiceOneChords" { \PartPOneVoiceOneChords}
\new Staff
<<
\set Staff.instrumentName = "Guitar"

\context Staff << 
\mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
\context Voice = "PartPOneVoiceOne" {  \PartPOneVoiceOne }
>>
>>

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



minor.pdf
Description: Adobe PDF document


minor.xml
Description: XML document
___
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 <imj-...@bluewin.ch> 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 <ksnor...@gmail.com> a écrit :
> 
> http://www.lilypond.org/doc/v2.19/Documentation/usage/invoking-musicxml2ly 
> <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 <imj-...@bluewin.ch 
> <mailto:imj-...@bluewin.ch>> 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 <mailto:lilypond-user@gnu.org>
> https://lists.gnu.org/mailman/listinfo/lilypond-user 
> <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 <imj-...@bluewin.ch> 
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 <f...@inventati.org> a écrit :
> 
> Il giorno gio 29 ott 2015 alle 17:56, Menu Jacques <imj-...@bluewin.ch> 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


musicxml2ly evolution

2015-10-29 Thread Menu Jacques
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


Error when using musicxml2ly - how to proceed ?

2015-09-08 Thread Michael Gerdau
Dear Lilyponder,

a couple of years ago I created a score in Sibelius that I now would
like to continue to work on with Lilypond. I thus have exported from
Sibelius (7.1.3) in MusicXML and tried to import in Lilypond using
musicxml2ly (2.19.26).

Unfortunately I get an error (see attached logfile).

How do I proceed ?

I've attached the compressed MusicXML as well but am happy to reduce
the size by removing stuff. However I have no experience in debugging
this sort of problem and would need a few hints as to what I should do.

The command invoked was
musicxml2ly --nd --nrp --no-beaming -m Machet\ die\ Thore\ weit.xml >Machet\
die\ Thore\ weit.log 2>&1

Kind regards,
Michael
--
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

Machet die Thore weit.xml.bz2
Description: application/bzip
musicxml2ly: MusicXML aus Machet die Thore weit.xml lesen...
musicxml2ly: In LilyPond-Ausdrücke umwandeln...
musicxml2ly: In LilyPond-Ausdrücke umwandeln...
musicxml2ly: In LilyPond-Ausdrücke umwandeln...
musicxml2ly: In LilyPond-Ausdrücke umwandeln...
musicxml2ly: Warnung: Negativer Sprung (skip) -1/2 (von Position 337/2 bis 168)
musicxml2ly: Warnung: Negativer Sprung (skip) -1/2 (von Position 337/2 bis 168)
musicxml2ly: Warnung: Negativer Sprung (skip) -1/2 (von Position 337/2 bis 168)
musicxml2ly: Warnung: Negativer Sprung (skip) -1/2 (von Position 337/2 bis 168)
musicxml2ly: Warnung: Negativer Sprung (skip) -1/2 (von Position 169 bis 337/2)
musicxml2ly: Warnung: Negativer Sprung (skip) -3/2 (von Position 2857/16 bis 2833/16)
musicxml2ly: Warnung: Negativer Sprung (skip) -3/2 (von Position 2857/16 bis 2833/16)
musicxml2ly: Warnung: Negativer Sprung (skip) -3/2 (von Position 2857/16 bis 2833/16)
musicxml2ly: Warnung: Negativer Sprung (skip) -3/2 (von Position 2857/16 bis 2833/16)
musicxml2ly: In LilyPond-Ausdrücke umwandeln...
musicxml2ly: In LilyPond-Ausdrücke umwandeln...
musicxml2ly: In LilyPond-Ausdrücke umwandeln...
musicxml2ly: In LilyPond-Ausdrücke umwandeln...
musicxml2ly: In LilyPond-Ausdrücke umwandeln...
musicxml2ly: In LilyPond-Ausdrücke umwandeln...
musicxml2ly: Warnung: Negativer Sprung (skip) -3/2 (von Position 357/2 bis 177)
musicxml2ly: Warnung: Negativer Sprung (skip) -3/2 (von Position 357/2 bis 177)
musicxml2ly: Warnung: Negativer Sprung (skip) -3/2 (von Position 357/2 bis 177)
musicxml2ly: In LilyPond-Ausdrücke umwandeln...
musicxml2ly: Warnung: Negativer Sprung (skip) -1/2 (von Position 337/2 bis 168)
musicxml2ly: Warnung: Negativer Sprung (skip) -1/2 (von Position 337/2 bis 168)
musicxml2ly: Warnung: Negativer Sprung (skip) -1/2 (von Position 337/2 bis 168)
musicxml2ly: Warnung: Negativer Sprung (skip) -3/2 (von Position 357/2 bis 177)
musicxml2ly: Warnung: Negativer Sprung (skip) -3/2 (von Position 357/2 bis 177)
musicxml2ly: Warnung: Negativer Sprung (skip) -3/2 (von Position 357/2 bis 177)
musicxml2ly: Warnung: Negativer Sprung (skip) -3/2 (von Position 357/2 bis 177)
musicxml2ly: In LilyPond-Ausdrücke umwandeln...
Traceback (most recent call last):
  File "/usr/bin/musicxml2ly", line 2986, in 
main()
  File "/usr/bin/musicxml2ly", line 2981, in main
voices = convert (filename, options)
  File "/usr/bin/musicxml2ly", line 2892, in convert
score = extract_score_structure (mxl_pl, staff_info)
  File "/usr/bin/musicxml2ly", line 430, in extract_score_structure
staff = read_score_part (el)
  File "/usr/bin/musicxml2ly", line 391, in read_score_part
staff.short_instrument_name = extract_display_text (partdisplay)
  File "/usr/bin/musicxml2ly", line 907, in extract_display_text
child = el.get_maybe_exist_named_child ("display-text")
  File "/usr/share/lilypond/2.19.26/python/musicxml.py", line 114, in get_maybe_exist_named_child
return self.get_maybe_exist_typed_child (get_class (name))
  File "/usr/share/lilypond/2.19.26/python/musicxml.py", line 123, in get_maybe_exist_typed_child
raise "More than 1 child", klass
TypeError: exceptions must be old-style classes or derived from BaseException, not str


signature.asc
Description: This is a digitally signed message part.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error when using musicxml2ly - how to proceed ?

2015-09-08 Thread Richard Shann
On Tue, 2015-09-08 at 21:25 +0200, Martin Tarenskeen wrote:
> 
> On Tue, 8 Sep 2015, Richard Shann wrote:
> 
> > Just in case it is of use to you I attach the LilyPond conversion that
> > Denemo does from your MusicXML, there are some bugs in there but I think
> > the vast bulk of the notes are there for you to work with, separated
> > into voices.
> 
> I know Denemo only by name, never reall tried it, but I am wondering: does 
> it have it's own MusicXML->LilyPond conversion mechanisms or does it rely 
> on the musicxml2ly tool that is shipped with LilyPond?

It has its own one, it doesn't give up when it encounters problems, so
the output is often a little garbled but in almost all cases you get the
bulk of the data. In the case of your file there is what looks like a
spurious note at the end of one of the parts. If you know what the music
is supposed to look like then you can usually fix any irregularities...

Richard




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


Re: Error when using musicxml2ly - how to proceed ?

2015-09-08 Thread Martin Tarenskeen



On Tue, 8 Sep 2015, Richard Shann wrote:


Just in case it is of use to you I attach the LilyPond conversion that
Denemo does from your MusicXML, there are some bugs in there but I think
the vast bulk of the notes are there for you to work with, separated
into voices.


I know Denemo only by name, never reall tried it, but I am wondering: does 
it have it's own MusicXML->LilyPond conversion mechanisms or does it rely 
on the musicxml2ly tool that is shipped with LilyPond?


--

MT

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


Re: Error when using musicxml2ly - how to proceed ?

2015-09-08 Thread Avner Dorman
Dear Michael,

What I've found is that exporting and importing xml works best for single
parts - so I would recommend exporting each part as an xml file and then
including them in your lilypond score. I've even found that piano parts
generally work better when each hand (and sometimes each voice/layer) is
imported separately. It's a bit of a hassle - but with lilypond's
architecture it actually isn't that bad. It seems to me that there is a lot
of variability in how well different program export and import xml that you
can't yet trust it for automatic transfer between programs. Each programs
seems to miss or mess up certain things. This is true for transferring
files between any two programs (try to load your file in Finale or
MuseScore and you'll probably see what I mean).

Hope this helps.

All the best,
Avner

On Tue, Sep 8, 2015 at 8:48 AM Michael Gerdau <m...@qata.de> wrote:

> Dear Lilyponder,
>
> a couple of years ago I created a score in Sibelius that I now would
> like to continue to work on with Lilypond. I thus have exported from
> Sibelius (7.1.3) in MusicXML and tried to import in Lilypond using
> musicxml2ly (2.19.26).
>
> Unfortunately I get an error (see attached logfile).
>
> How do I proceed ?
>
> I've attached the compressed MusicXML as well but am happy to reduce
> the size by removing stuff. However I have no experience in debugging
> this sort of problem and would need a few hints as to what I should do.
>
> The command invoked was
> musicxml2ly --nd --nrp --no-beaming -m Machet\ die\ Thore\ weit.xml
> >Machet\
> die\ Thore\ weit.log 2>&1
>
> Kind regards,
> Michael
> --
>  Michael Gerdau   email: m...@qata.de
>  GPG-keys available on request or at public
> keyserver___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
-- 
All the best,
Avner
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Error when using musicxml2ly - how to proceed ?

2015-09-08 Thread Richard Shann
Just in case it is of use to you I attach the LilyPond conversion that
Denemo does from your MusicXML, there are some bugs in there but I think
the vast bulk of the notes are there for you to work with, separated
into voices.

Richard


On Tue, 2015-09-08 at 14:47 +0200, Michael Gerdau wrote:
> Dear Lilyponder,
> 
> a couple of years ago I created a score in Sibelius that I now would
> like to continue to work on with Lilypond. I thus have exported from
> Sibelius (7.1.3) in MusicXML and tried to import in Lilypond using
> musicxml2ly (2.19.26).
> 
> Unfortunately I get an error (see attached logfile).
> 
> How do I proceed ?
> 
> I've attached the compressed MusicXML as well but am happy to reduce
> the size by removing stuff. However I have no experience in debugging
> this sort of problem and would need a few hints as to what I should do.
> 
> The command invoked was
> musicxml2ly --nd --nrp --no-beaming -m Machet\ die\ Thore\ weit.xml >Machet\ 
> die\ Thore\ weit.log 2>&1
> 
> Kind regards,
> Michael
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


%% LilyPond file generated by Denemo version 1.2.5

%%http://www.gnu.org/software/denemo/

\version "2.18.0"

CompactChordSymbols = {}
#(define DenemoTransposeStep 0)
#(define DenemoTransposeAccidental 0)
DenemoGlobalTranspose = #(define-music-function (parser location arg)(ly:music?) #{\transpose c c #arg #})
titledPiece = {}
AutoBarline = {}
AutoEndMovementBarline = \bar "|."
\include "simplified-book-titling.ily"

% The music follows

MvmntIVoiceI = {
 d''2. d''4 d''2\AutoBarline
 d''2. d''4 d''2\AutoBarline
 r d'' d''\AutoBarline
 c''1 c''2\AutoBarline
%5
 b'2.( c''4 d''2)\AutoBarline
 b' a'1\AutoBarline
 g'2 g' a'\AutoBarline
 b' b' c''\AutoBarline
 d''1.\AutoBarline
%10
 a'2 a' b'\AutoBarline
 c'' c'' d''\AutoBarline
 e''2. d''4 c''2\AutoBarline
 b'1 a'2\AutoBarline
 e''2. e''4 e''2\AutoBarline
%15
 e''2. e''4 e''2\AutoBarline
 r e'' e''\AutoBarline
 c''2. d''4 e''2\AutoBarline
 e'' f''1\AutoBarline
 e'' r2\AutoBarline
%20
 r1 r2\AutoBarline
 r1 r2\AutoBarline
 r1 r2\AutoBarline
 r a' b'\AutoBarline
 c'' c'' d''\AutoBarline
%25
 e''1.\AutoBarline
 b'2 b' cis''\AutoBarline
 dis''1 dis''2\AutoBarline
 e'' e''2.( dis''4)\AutoBarline
 e''1 r2\AutoBarline
%30
 e'' b' b'\AutoBarline
 b' cis'' d''\AutoBarline
 cis'' cis'' r\AutoBarline
 r1 r2\AutoBarline
 r1 r2\AutoBarline
%35
 r1 r2\AutoBarline
 d'' d'' d''\AutoBarline
 b'1 r2\AutoBarline
 r e'' e''\AutoBarline
 c''1 c''2\AutoBarline
%40
 a' a' a'\AutoBarline
 d'' d'' d''\AutoBarline
 b'1 b'2\AutoBarline
 r e'' e''\AutoBarline
 c''2. d''4 e''2\AutoBarline
%45
 d''1 r2\AutoBarline
 e''2. e''4 e''2\AutoBarline
 e''2. e''4 e''2\AutoBarline
 r e'' e''\AutoBarline
 d''1 d''2\AutoBarline
%50
 c''2.( d''4 e''2)\AutoBarline
 c'' b'1\AutoBarline
 a'2 cis'' cis''\AutoBarline
 d'' d'' d''\AutoBarline
 b'1 b'2\AutoBarline
%55
 r1 r2\AutoBarline
 r a' a'\AutoBarline
 d'' d'' d''\AutoBarline
 g' a' b'\AutoBarline
 c''1 b'2\AutoBarline
%60
 b' b'2.( a'4)\AutoBarline
 b'1 r2\AutoBarline
 r1 r2\AutoBarline
 r1 r2\AutoBarline
 e'' b' b'\AutoBarline
%65
 b' cis'' d''\AutoBarline
 cis'' cis'' r\AutoBarline
 r1 r2\AutoBarline
 d'' a' a'\AutoBarline
 a' b' c''\AutoBarline
%70
 b' b' b'\AutoBarline
 c'' c'' d''\AutoBarline
 e'' e'' d''\AutoBarline
 d'' d'' r\AutoBarline
 d'' d'' d''\AutoBarline
%75
 e''2. e''4 d''2\AutoBarline
 c''1 c''2\AutoBarline
 b'1 r2\AutoBarline
 r1 r2\AutoBarline
 r1 r2\AutoBarline
%80
 e'' e''4( d'') e''( d'')\AutoBarline
 c''2 c''4( b') c''( b')\AutoBarline
 a'1 a'2\AutoBarline
 r1 r2\AutoBarline
 d'' d''4( c'') d''( c'')\AutoBarline
%85
 b'1 a'2\AutoBarline
 a' a'2.( gis'4)\AutoBarline
 a'1 r2\AutoBarline
 a' a' a'\AutoBarline
 d'' d'' d''\AutoBarline
%90
 b'1 b'2\AutoBarline
 e''1 e''2\AutoBarline
 d'' d''2.( cis''4)\AutoBarline
 d''1 r2\AutoBarline
 r1 r2\AutoBarline
%95
 r1 r2\AutoBarline
 r1 r2\AutoBarline
 r1 r2\AutoBarline
 r1 r2\AutoBarline
 r1 r2\AutoBarline
%100
 r1 r2\AutoBarline

Re: Missing \new Voice in output of musicxml2ly

2015-06-22 Thread Michael Gerdau
 What is the aim in tampering the MusicXML file? I would convert everything
 to LP and then remove what’s too much in the latter format.

The objective is to create a short example that displays the - as I see
it - errorneous behavour.

Apart from the noted IMO buggy code musicxml2ly does an excellent job
and I certainly can live with it as it is.

However if it is a bug it should be fixed and if I'm doing something
stupid I'd like to know how I could fix my doing ;)

Just in case I did not make myself clear the first time:
The code musicxml2ly creates from the musicxml file (both attached to
the initial mail) does create an error when processed with lilypond.
I'm using 2.19.21.

Best wishes,
Michael
-- 
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

signature.asc
Description: This is a digitally signed message part.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Missing \new Voice in output of musicxml2ly

2015-06-22 Thread Jacques Menu
Hello Michael,

What is the aim in tampering the MusicXML file? I would convert everything to 
LP and then remove what’s too much in the latter format.

JM

 Le 22 juin 2015 à 00:48, Michael Gerdau m...@qata.de a écrit :
 
 Hi list,
 
 I have a short Finale created (and by hand shortened) MusicXML file
 (attached) that I wish to import to lilypond. I also attached what
 musicxml2ly produces.
 
 I'm using lilypond 2.19.21 on linux.
 
 The main problem is in this block (similar for all other voices):
 ...
  \new Staff 
\set Staff.instrumentName = Sopran 1
\context Staff 
  \context Voice = PartPOneVoiceOne { \PartPOneVoiceOne }
  \new Lyrics \lyricsto PartPOneVoiceOne 
 \PartPOneVoiceOneLyricsOne
 
 
 ...
 
 This results in an error. Changing it into
 ...
  \new Staff 
\set Staff.instrumentName = Sopran 1
  \new Voice = PartPOneVoiceOne { \PartPOneVoiceOne }
  \new Lyrics \lyricsto PartPOneVoiceOne 
 \PartPOneVoiceOneLyricsOne
 
 ...
 (i.e. removing the \context Staff block and creating a Voice instead of
 using the Voice context) creates the score I'd like to see.
 
 Is this a bug in muxicxml or am I doing something stupid ?
 
 The example xml file has removed 42 bars by manual editing for brevity.
 The same problem occurs with the unedited larger file.
 
 Best wishes,
 Michael
 
 -- 
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public 
 keyservermusicxml-test.xmlmusicxml-test.ly___
 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


Missing \new Voice in output of musicxml2ly

2015-06-21 Thread Michael Gerdau
Hi list,

I have a short Finale created (and by hand shortened) MusicXML file
(attached) that I wish to import to lilypond. I also attached what
musicxml2ly produces.

I'm using lilypond 2.19.21 on linux.

The main problem is in this block (similar for all other voices):
...
  \new Staff 
\set Staff.instrumentName = Sopran 1
\context Staff 
  \context Voice = PartPOneVoiceOne { \PartPOneVoiceOne }
  \new Lyrics \lyricsto PartPOneVoiceOne
\PartPOneVoiceOneLyricsOne

  
...

This results in an error. Changing it into
...
  \new Staff 
\set Staff.instrumentName = Sopran 1
  \new Voice = PartPOneVoiceOne { \PartPOneVoiceOne }
  \new Lyrics \lyricsto PartPOneVoiceOne
\PartPOneVoiceOneLyricsOne

...
(i.e. removing the \context Staff block and creating a Voice instead of
using the Voice context) creates the score I'd like to see.

Is this a bug in muxicxml or am I doing something stupid ?

The example xml file has removed 42 bars by manual editing for brevity.
The same problem occurs with the unedited larger file.

Best wishes,
Michael

--
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

musicxml-test.xml
Description: XML document
\version 2.19.21
% automatically converted by musicxml2ly from /home/mgd/Dokumente/mgd/Bachchor-St.Petri/Choräle-TD/musicxml-test.xml

\header {
  encodingsoftware = Finale 2012 for Mac
  encodingdate = 2015-06-04
  composer = Andreas Hammerschmidt (1611–1675)
  title = Wie lieblich sind deine Wohnungen
}

\layout {
  \context {
\Score
skipBars = ##t
  }
}
PartPOneVoiceOne =  \relative g' {
  \clef treble \key f \major \time 4/2 r1 g1
}

PartPOneVoiceOneLyricsOne =  \lyricmode { Wie }
PartPTwoVoiceOne =  \relative g' {
  \clef treble \key f \major \time 4/2 r1 r2 g2
}

PartPTwoVoiceOneLyricsTwo =  \lyricmode { Wie }
PartPThreeVoiceOne =  \relative d' {
  \clef treble \key f \major \time 4/2 r2 d2 d2 ( c2 )
}

PartPThreeVoiceOneLyricsThree =  \lyricmode { Wie lieb -- }
PartPFourVoiceOne =  \relative c' {
  \clef treble_8 \key f \major \time 4/2 R1*2
}

PartPFiveVoiceOne =  \relative d {
  \clef bass \key f \major \time 4/2 d1 es1
}

PartPFiveVoiceOneLyricsFive =  \lyricmode { Wie lieb -- }

% The score definition
\score {
  
\new StaffGroup \with { \override SpanBar #'transparent = ##t }

  \new Staff 
\set Staff.instrumentName = Sopran 1
\context Staff 
  \context Voice = PartPOneVoiceOne { \PartPOneVoiceOne }
  \new Lyrics \lyricsto PartPOneVoiceOne \PartPOneVoiceOneLyricsOne

  
  \new Staff 
\set Staff.instrumentName = Sopran 2
\context Staff 
  \context Voice = PartPTwoVoiceOne { \PartPTwoVoiceOne }
  \new Lyrics \lyricsto PartPTwoVoiceOne \PartPTwoVoiceOneLyricsTwo

  
  \new Staff 
\set Staff.instrumentName = Alt
\context Staff 
  \context Voice = PartPThreeVoiceOne { \PartPThreeVoiceOne }
  \new Lyrics \lyricsto PartPThreeVoiceOne \PartPThreeVoiceOneLyricsThree

  
  \new Staff 
\set Staff.instrumentName = Tenor
\context Staff 
  \context Voice = PartPFourVoiceOne { \PartPFourVoiceOne }

  
  \new Staff 
\set Staff.instrumentName = Bass
\context Staff 
  \context Voice = PartPFiveVoiceOne { \PartPFiveVoiceOne }
  \new Lyrics \lyricsto PartPFiveVoiceOne \PartPFiveVoiceOneLyricsFive

  



  
  \layout {}
  \midi {}
}



signature.asc
Description: This is a digitally signed message part.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


want to report problem of musicxml2ly

2015-06-08 Thread Haipeng Hu
Hello,
  I'm using musicxml2ly to process a large orchestral piece, to see
how the composer deals with percussion parts with various kinds of
pitched and unpitched instruments switched in the middle of the piece.
But musicxml2ly reports lots of problems, and  ends up with failure. I
remember Reinhold ever played main role on musicxml2ly and
orchestrallily, but I don't know whether he's still active now. The
xml file is large even after archiving, so I can't place it here.
Could you please tell me who I can contact?

Regards
Haipeng

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


Re: want to report problem of musicxml2ly

2015-06-08 Thread Richard Shann
On Mon, 2015-06-08 at 17:56 +0800, Haipeng Hu wrote:
 Hello,
   I'm using musicxml2ly to process a large orchestral piece, to see
 how the composer deals with percussion parts with various kinds of
 pitched and unpitched instruments switched in the middle of the piece.
 But musicxml2ly reports lots of problems, and  ends up with failure. I
 remember Reinhold ever played main role on musicxml2ly and
 orchestrallily, but I don't know whether he's still active now. The
 xml file is large even after archiving, so I can't place it here.
 Could you please tell me who I can contact?

I believe there are two versions of the musicxml2ly program, one
official and forked and pushed on with in a free-er manner. You could
try the other one. You could also try importing it into Denemo and
taking the LilyPond output from that - very unlikely to give you
immediately a nice-looking score, but I would personally be most
interested if it failed to generate something at least (indeed if you
email me your archived xml file I will test it out).

Richard


 
 Regards
 Haipeng
 
 ___
 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-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


musicxml2ly

2015-03-19 Thread Craig Dabelstein
Hi all,

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

Many thanks,

Craig


   *Craig Dabelstein*
 e:craig.dabelst...@gmail.com
 http://www.facebook.com/craig.dabelstein
http://au.linkedin.com/pub/craig-dabelstein/b2/5b8/389/en
___
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


musicxml2ly

2015-03-19 Thread Cynthia Karl

 
 Message: 4
 Date: Thu, 19 Mar 2015 20:06:23 +
 From: Craig Dabelstein craig.dabelst...@gmail.com
 Subject: musicxml2ly
 
 Is there a command for converting a whole folder of xml files to lilypond,
 rather than doing them one by one?

In any OS with a bash-like shell:

for f in *.xml
do
  musicxml2ly [option...] $f
done

___
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


musicxml2ly

2015-02-06 Thread 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'

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


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


Finale Notepad xml file vs musicxml2ly

2014-11-21 Thread Peter Teeson
Hi all:

I am testing Finale NotePad (2012) and did the tutorial2.mus.
Then Exported to xml. Then did a CLI using musicxml2ly.

Only the first bar appears with notes, and they are not correct, The remaining 
bars are all rests.
In fact there are 7 bars with notes in the Voice part. The Piano part is all 
rests as this is just a test.
I have the files available if it's useful.

Is this a known issue? I am not sure yet how to validate that the Finale output 
is valid musicxml.

respect…

Peter


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


Re: Finale Notepad xml file vs musicxml2ly

2014-11-21 Thread Urs Liska
You should send the Finale xml files with the message, that's the only 
starting point you can deliver.
No guarantee that this will help, but not sending them will be a 
guarantee to get no meaningful feedback.


Urs

Am 21.11.2014 22:42, schrieb Peter Teeson:

Hi all:

I am testing Finale NotePad (2012) and did the tutorial2.mus.
Then Exported to xml. Then did a CLI using musicxml2ly.

Only the first bar appears with notes, and they are not correct, The remaining 
bars are all rests.
In fact there are 7 bars with notes in the Voice part. The Piano part is all 
rests as this is just a test.
I have the files available if it's useful.

Is this a known issue? I am not sure yet how to validate that the Finale output 
is valid musicxml.

respect…

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-musicxml2ly-dev

2014-02-04 Thread Martin Tarenskeen


Hi,

When I look at the lilypond-musicxml2ly-dev fork from Philomenos.net on 
Github I see that the last commit has been 6 months ago. Also when I look 
at their code the Lilypond version still says 2.15.95. I always wondered 
why the improvements on musicxml2ly could not be done within the normal 
main Lilypond development tree and bugreporting system (mailinglists, 
bugtracker, bugsquad) And I very much doubt now if this separate fork 
speeds up the improvement of musicxml2ly. After 6 months, have the 
improvements from Philomenos been merged in the official Lilypond 
development tree yet? If not, who is waiting for who?


--

MT

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


Re: lilypond-musicxml2ly-dev

2014-02-04 Thread Urs Liska

Am 04.02.2014 09:08, schrieb Martin Tarenskeen:


Hi,

When I look at the lilypond-musicxml2ly-dev fork from Philomenos.net on
Github I see that the last commit has been 6 months ago. Also when I
look at their code the Lilypond version still says 2.15.95. I always
wondered why the improvements on musicxml2ly could not be done within
the normal main Lilypond development tree and bugreporting system
(mailinglists, bugtracker, bugsquad) And I very much doubt now if this
separate fork speeds up the improvement of musicxml2ly. After 6 months,
have the improvements from Philomenos been merged in the official
Lilypond development tree yet? If not, who is waiting for who?



AFAIK the philomelos devs are waiting for either time to merge their 
work with main LilyPond or for anybody else willing and able to do so.


The current situation isn't in any way intentional but only the result 
of lack of time on all sides.


Urs

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


Re: lilypond-musicxml2ly-dev

2014-02-04 Thread pls

On 04.02.2014, at 09:41, Urs Liska u...@openlilylib.org wrote:

 Am 04.02.2014 09:08, schrieb Martin Tarenskeen:
 
 Hi,
 
 When I look at the lilypond-musicxml2ly-dev fork from Philomenos.net on
 Github I see that the last commit has been 6 months ago. Also when I
 look at their code the Lilypond version still says 2.15.95. I always
 wondered why the improvements on musicxml2ly could not be done within
 the normal main Lilypond development tree and bugreporting system
 (mailinglists, bugtracker, bugsquad) And I very much doubt now if this
 separate fork speeds up the improvement of musicxml2ly. After 6 months,
 have the improvements from Philomenos been merged in the official
 Lilypond development tree yet? If not, who is waiting for who?
 
 
 AFAIK the philomelos devs are waiting for either time to merge their work 
 with main LilyPond or for anybody else willing and able to do so.
 
 The current situation isn't in any way intentional but only the result of 
 lack of time on all sides.
true!

btw: the LilyPond version number “2.15.95” is irrelevant.  It just hasn’t been 
removed. musicxml2ly-dev calls convert-ly to update the syntax automatically.

patrick___
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


musicxml2ly on Windows

2014-01-05 Thread TaoCG
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



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/musicxml2ly-on-Windows-tp157181.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


  1   2   3   >