Re: XML to .ly and Lilypond, again

2017-05-15 Thread David Wright
On Fri 12 May 2017 at 11:59:05 (+0100), Phil Holmes wrote:
> - Original Message - From: "Urs Liska" 
> To: ; 
> Sent: Friday, May 12, 2017 11:00 AM
> Subject: Re: XML to .ly and Lilypond, again

> >Am 12.05.2017 um 11:26 schrieb Jan-Peter Voigt:
> >>Dear Leszek,
> >>
> >>when I look with hexdump, I see a lot of NUL-bytes inside the file.
> >>And it seems to me that the strings are in UTF-16 and the rest in
> >>latin-1 or the like. At least it seems like a mixture of encodings.
> >
> >I think this is exactly what was discussed in the mentioned recent thread.
> >So it seems this is an issue in musicxml2ly that has recently been
> >introduced. Does anyone know or can anyone find out when this happened
> >(by trying musicxml2ly from different LilyPond versions)?
> >
> >Urs
> 
> See https://sourceforge.net/p/testlilyissues/issues/4751/

Took me a while to look at this, as I'm not used to this site.
The places to check are:

https://codereview.appspot.com/295120043/diff/1/python/musicexp.py
green lines 138 and 139.

https://codereview.appspot.com/295120043/diff/1/python/utilities.py
(green) lines 66 through 72.

Cheers,
David.

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


Re: looking for a lot of help for piano reduction

2017-05-15 Thread Molly Preston
It's about 1 hr 15 minutes. It's a one act opera. Written for
flute/piccolo, oboe, clarinet, percussion, string quartet.

Sorry I left this information out.

-Molly

On Mon, May 15, 2017 at 7:39 PM, Karen Billings  wrote:

> Hi Molly,
>
> How big a composition are we talking about, and what texture (SATB, brass
> choir, etc)?
>
> Karen
>
>
> On Monday, May 15, 2017 5:17 PM, Molly Preston 
> wrote:
>
>
> Hello everyone.
>
> I don't know anyone who has lilypond who can help me with writing up a
> piano reduction, so I thought I would ask the list.
>
> I have a project that is (technically) due next Monday. But I don't have
> the time to mess with all the lilypond errors I'm getting from trying to
> use \partcombine. I'm still finishing composing.
>
> I was wondering if anyone was willing to do the reduction for me or
> extensively help ( ie look at the files themselves and see what's wrong
> with it )?
>
> Even if I complete the piano reduction by the end of May that would be
> fantastic.
>
> Thanks,
>
> Molly
> ___
> 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: looking for a lot of help for piano reduction

2017-05-15 Thread Karen Billings
Hi Molly,
How big a composition are we talking about, and what texture (SATB, brass 
choir, etc)?
Karen

On Monday, May 15, 2017 5:17 PM, Molly Preston  
wrote:
 

 Hello everyone. 

I don't know anyone who has lilypond who can help me with writing up a piano 
reduction, so I thought I would ask the list.
I have a project that is (technically) due next Monday. But I don't have the 
time to mess with all the lilypond errors I'm getting from trying to use 
\partcombine. I'm still finishing composing. 
I was wondering if anyone was willing to do the reduction for me or extensively 
help ( ie look at the files themselves and see what's wrong with it )?
Even if I complete the piano reduction by the end of May that would be 
fantastic. 
Thanks,
Molly___
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


looking for a lot of help for piano reduction

2017-05-15 Thread Molly Preston
Hello everyone.

I don't know anyone who has lilypond who can help me with writing up a
piano reduction, so I thought I would ask the list.

I have a project that is (technically) due next Monday. But I don't have
the time to mess with all the lilypond errors I'm getting from trying to
use \partcombine. I'm still finishing composing.

I was wondering if anyone was willing to do the reduction for me or
extensively help ( ie look at the files themselves and see what's wrong
with it )?

Even if I complete the piano reduction by the end of May that would be
fantastic.

Thanks,

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


looking for a lot of help for piano reduction

2017-05-15 Thread Molly Preston
Hello everyone.

I don't know anyone who has lilypond who can help me with writing up a
piano reduction, so I thought I would ask the list.

I have a project that is (technically) due next Monday. But I don't have
the time to mess with all the lilypond errors I'm getting from trying to
use \partcombine. I'm still finishing composing.

I was wondering if anyone was willing to do the reduction for me or
extensively help ( ie look at the files themselves and see what's wrong
with it )?

Even if I complete the piano reduction by the end of May that would be
fantastic.

Thanks,

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


Frecobaldi 3.0 install

2017-05-15 Thread MING TSANG
Dear lily users
I install window 10 Pro to replace my window 10 Home for my laptop.
I installed lilypond 2.18.2 and lilypond 2.19.60 and frecobaldi 2.20.0  All are 
well and no problem.
Then I install frecobaldi 3.0.0 and when I run frecobaldi 3.0.0 and I get the 
following error.When I am with window 10 Home, there is no problen of 
installing frecobaldi.3.0.0
What is missing for frecobaldi 3.0.0?Ming







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


Function which return the chords of the degrees of a mode

2017-05-15 Thread zaord
Hi Here,

I'am trying to make a function which is returning a list of 7 chords
corresponding of each degree of a mode.

Exemple :

In X Major, we knows that  the chords are  :


degree 1 : Maj
degree 2 : min
degree 3 : min
degree 4 : Maj
degree 5 : Maj
degree 6 : min
degree 7 : dim

So in C Maj scale, the function will return a list of < g b d >   *.

In A minor the function will return a list of <   * c e g >  
 < g b d >.

Do you have any idea to make this function simple to code ?

Best,

And thanks





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Function-which-return-the-chords-of-the-degrees-of-a-mode-tp203140.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: XML to .ly and Lilypond, again

2017-05-15 Thread David Wright
On Sun 14 May 2017 at 08:33:26 (+0200), zs.has...@gmx.de wrote:
> >On Fri 12 May 2017 at 12:03:36 (+0200), David Kastrup wrote:

He wrote something else. But I wrote…

> >My guess is that the wrong encoding comes from "original" strings
> >being passed from the input to the output as opposed to all the
> >normal strings that are generated by the conversion program. These
> >original strings would carry their encoding with them.

> If you are meaning finale is producing the wrong xml, I can tell you
> Sibelius, musescore and capella also have this problem.

No, they all should have the problem as they all write correct
Unicode XML files. The fault was in the python program,
because an enhancement was made before the version was new
enough to handle it corrctly.

Cheers,
David.

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


Re: XML to .ly and Lilypond, again, with a fix

2017-05-15 Thread David Wright
On Sun 14 May 2017 at 15:35:51 (+0100), Phil Holmes wrote:
> - Original Message - From: "Urs Liska" 
> To: 
> Sent: Sunday, May 14, 2017 3:06 PM
> Subject: Re: XML to .ly and Lilypond, again

> >Am 14.05.2017 um 16:03 schrieb Phil Holmes:
> >>I've just confirmed Ian Ring's suggestion - removing the copyright
> >>symbol allows the conversion to continue, but results in text with
> >>spurious null characters.

Only some of the text, as I reported in
http://lists.gnu.org/archive/html/lilypond-user/2017-05/msg00241.html

> >But can that be? Shouldn't MusicXML allow arbitrary regular Unicode
> >characters?
> 
> My understanding is the XML is like HTML and requires special
> characters to be escaped.

No, the norm is for XML to be written in Unicode as this one is,
hence its header:


So the program should be handling all the data in unicode, and the
problem is the exact opposite of what I started out looking for.
Handling unicode is tricky at best in python2, and I avoided it
myself by switching to python3 before trying to do anything more
than printing unicode to output, which is all musicxml2py should
really be doing.

However, the new version tries to do one clever thing and it's in
split_string_and_preserve_doublequoted_substrings in utilities.py.
This uses the shlex module whose preamble runs:

 The shlex class makes it easy to write lexical analyzers for simple
 syntaxes resembling that of the Unix shell. This will often be useful
 for writing minilanguages, (for example, in run control files for
 Python applications) or for parsing quoted strings.

 Prior to Python 2.7.3, this module did not support Unicode input.

So the fate of the copyright symbol in printer.dump should be
to go from
 u'"\xa9"'   ← a unicode value
to
 [u'"\xa9"'] ← a list with one unicode value
but instead it gets mangled to
 ['"\x00\xa9\x00"', '\x00']  ← a list of ascii strings.

I don't know what the change was meant to fix as I've never used
musicxml in anger. But the easiest patch to get things to work is
to replace

 words = utilities.split_string_and_preserve_doublequoted_substrings (str)

with

 words = string.split (str)

in .../lilypond-2.19.…/lilypond/usr/share/lilypond/current/python/utilities.py
assuming you're running a downloaded version rather than one
included in your distribution. (Debian is still installing 2.18 IIRC.)

Cheers,
David.

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


edition-engraver and rehearsal marks in 2.19.60

2017-05-15 Thread arnepe
hello list,

when using the (old) edition-engraver to add Rehearsal marks, in v. 2.19.60,
writing a Mark with a specific #(number), this is ignored, and the first
mark is displayed as "A". 
In v. 2.19.58 (others not tested) the behaviour is as expected.

confused greetings,
Arne P.

image and MWE (using Frescobaldi 2.20 on Win 10) attached

MWE-edEng-01.png
  

MWE-edEng-01.ly
  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/edition-engraver-and-rehearsal-marks-in-2-19-60-tp203137.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: XML to .ly and Lilypond, again

2017-05-15 Thread Robert Blackstone
Hi Leszek,

Thanks for your reaction to my post.
Interesting, yes, but of little help to you.

We could do a little test.

What happens if you use the xlm-file that can be downloaded from this link 
here? 

https://dl.dropboxusercontent.com/u/512573/FileChute/Kyrie_copy.zip

Best regards,
Robert


On 15 May 2017, at 08:22 , Leszek Wroński  wrote:

> Hi Robert,
> 
> thanks! It's interesting that all is fine on a Mac. I just wanted to
> mention that I'm only using Finale, that is, Windows, to produce the
> XML. I then switch to Ubuntu 16.04 to use musicxml2ly because that's
> the system I generally use. So the problem is also present on Linux.
> 
> This is actually a nice practical reason to use a Mac ;)
> 
> Cheers,
> 
> Leszek.
> 
> On 14 May 2017 at 12:42, Robert Blackstone  
> wrote:
>> Hi Leszek,
>> 
>> Out of curiosity I downloaded and processed the Kyrie.xml, from the link you
>> attached to your post of 12-05-17.
>> I was curious in particular because I mostly use the same procedure for
>> engraving with LilyPond as you do, starting with Finale, except that I'm on
>> a Mac (OSX 10.9.5 also known as Mavericks).
>> So I imported your file in Frescobaldi, and then copied and pasted it in
>> TeXShop, my favourite editor, which processed your file without any problem
>> (both with LilyPond version 2.18.2 and 2.19.58.1).
>> 
>> You can find the results here:
>> 
>> https://dl.dropboxusercontent.com/u/512573/FileChute/LilyPond-test_Kyrie_from_xml-file.zip
>> 
>> So apparently for a Mac there is nothing wrong, neither with your xml-file
>> nor with recent musicxml2ly.
>> It may be of litte help to you (as  long as you stay on Windows ;-)) but it
>> could perhaps help you in narrowing down the search for the source of
>> trouble in your system.
>> 
>> Best regards
>> 
>> Robert Blackstone
>> 
>> 
>> 
>> 
>> On 12 May 2017, at 13:42 , Leszek Wroński  wrote:
>> 
>> Dear Guys,
>> 
>> first, thank you very much for the replies!
>> 
>> Second, for a little bit of detective work. I have not updated my
>> Finale in years, so if it produced correct XML files in the past, it
>> should do the same now (I always write using a similar really basic
>> setup, since actual editing is to be done in Lilypond). Anyway, I
>> tracked down an XML file which converted correctly in 2.19.5. I wanted
>> to check whether I would get the 'lots of null characters' problem
>> currently. To my surprise, I didn't even get to that part. Musicxml2ly
>> gave me the following:
>> 
>> --
>> musicxml2ly: Reading MusicXML from Kyrie.xml ...
>> musicxml2ly: Converting to LilyPond expressions...
>> (.)
>> musicxml2ly: Output to `Kyrie.ly'
>> Traceback (most recent call last):
>> File "/home/leszek/lilypond/usr/bin/musicxml2ly", line 3269, in ?
>>   main()
>> File "/home/leszek/lilypond/usr/bin/musicxml2ly", line 3263, in main
>>   voices = convert(filename, options)
>> File "/home/leszek/lilypond/usr/bin/musicxml2ly", line 3175, in convert
>>   score_information.print_ly(printer)
>> File "/home/leszek/lilypond/usr/share/lilypond/current/python/musicexp.py",
>> line 855, in print_ly
>>   self.format_header_strings(k, v, printer)
>> File "/home/leszek/lilypond/usr/share/lilypond/current/python/musicexp.py",
>> line 848, in format_header_strings
>>   printer.newline()
>> File "/home/leszek/lilypond/usr/share/lilypond/current/python/musicexp.py",
>> line 123, in newline
>>   self._file.write (self._line + '\n')
>> File "/home/leszek/lilypond/usr/lib/python2.4/codecs.py", line 501, in
>> write
>>   return self.writer.write(data)
>> File "/home/leszek/lilypond/usr/lib/python2.4/codecs.py", line 178, in
>> write
>>   data, consumed = self.encode(object, self.errors)
>> UnicodeDecodeError: 'utf8' codec can't decode byte 0xa9 in position
>> 19: unexpected code byte
>> 
>> 
>> (Isn't '0xa9' the copyright character? ;))
>> 
>> The XML file, if someone wants to take a peek, is here:
>> https://www.dropbox.com/s/1dnv1hthyp7ss5h/Kyrie.xml?dl=0
>> 
>> Unfortunately it seems I do not have an XML file about which I could
>> be sure that it converted correctly using a version of Lilypond newer
>> than 2.19.5. Anyway, since one and the same XML file stopped
>> converting correctly, it indeed seems that in the meantime some
>> encoding issues have been introduced to musicxml2ly (I'm using 2.19.48
>> now).
>> 
>> If you think I could be of any additional help (well, not sure this
>> was helpful at all, but I'm trying ;)), please tell me what info I
>> should provide.
>> 
>> Cheers and thank you again,
>> 
>> Leszek.
>> 
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>> 
>> 

___
lilypond-user mailing list
lilypond-user@gnu.org

Re: lilypond-user Digest, Vol 174, Issue 51

2017-05-15 Thread Johan Vromans
On Sun, 14 May 2017 13:57:48 -0500, David Wright
 wrote:

> Well, let's make sure we're starting from the same source:
> ...
> The attached shows that the file claims to be encoding="UTF-8"
> In emacs, the Copyright shows as \302\251 so I think you've
> missed the preceding  (0xc2) character somehow.

Thanks for clearing this up. I was misled by one of the earlier postings
that mentioned:

  UnicodeDecodeError: 'utf8' codec can't decode byte 0xa9 in position 39: 
  unexpected code byte

-- Johan

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