Re: ellipsis point music

2017-05-16 Thread Gianmaria Lari
I'm writing some technical exercises like that one mentioned by Francesco
so your example is perfect.

[...]

> In didactical examples it is appropriate to give some instructions before
> the
> music pattern. However it’s not uncommon to see staff lines continuing a
> bit
> past the last bar, maybe with an accompanying “etc.” text.
>

I will follow your suggestion and your code.

I attached for other users a screenshot of your suggestion.

Grazie Francesco!
Thank you also to Abraham and Erik!
g.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: ellipsis point music

2017-05-16 Thread Francesco Napoleoni
In data martedì 16 maggio 2017 16:29:26, Gianmaria Lari ha scritto:
> Is there any musical equivalent symbol for the ellipsis points used to
> indicates "and so forth"?
> 
> For example, suppose you have an exercise where there is a pattern to play
> in different tonality. You write the first two or three measures and then I
> would like to indicate "and so forth". What I should use for that in
> lilypond?

Hi Gianmaria

As far as I know, the most wide-accepted practice is to enclose the music into 
a repeated section ||: :|| and to write how many times it should be played, or 
“ad libitum” if it is to leave to the freedom of the player.

In didactical examples it is appropriate to give some instructions before the 
music pattern. However it’s not uncommon to see staff lines continuing a bit 
past the last bar, maybe with an accompanying “etc.” text.

All these things can be done pretty easily in lilypond, like the following 
example, freely taken from “Rational principles of piano techinque” by Cortot:

\version "2.19.59"

\score {
  \header {
piece = \markup { "Esercizio n. 1b" \italic "(cominciando col 2° dito - m. 
d. e col 4° - m. s.)" }
  }

  \new Staff \with {
\remove Time_signature_engraver
instrumentName = \markup {
  \center-column {
\line {
  \box "C" "*"
}
\line {
  \box "H" \box "R"
}
  }
}
  } <<
\time 2/4
\new Voice \relative c' {
  \repeat volta 2 {
d16^2_4 c^1_5 e^3_3 f^4_2 g^5_1 f^4_2 e^3_3 c^1_5 |
  }
  \repeat volta 2 {
d16 c f e g e f c |
  }
}
  >>
}

\markup {
  \column {
\justify {
  *) Esempio tratto dall’esercizio n. 1b (Serie B, capitolo I)
}
  }
}

\score {
  \new Staff \with {
\remove Bar_engraver
\remove Time_signature_engraver
instrumentName = "ascendendo:"
  } \relative c' {
d16 c e f g f e c dis cis eis fis gis fis eis cis e d fis g a g fis d f es 
g 
as bes as g es \hideNotes fis \stopStaff e-\tweak TextScript.staff-padding #'() 
-\markup { \italic "ecc." }
  }

  \layout {
#(layout-set-staff-size 16)
  }
}




This should help you, I hope.

ciao
Francesco Napoleoni


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


Re: ellipsis point music

2017-05-16 Thread tisimst
Hi, Gianmaria!

On Tue, May 16, 2017 at 8:31 AM, Gianmaria Lari [via Lilypond] <
ml+s1069038n203151...@n5.nabble.com> wrote:

> Is there any musical equivalent symbol for the ellipsis points used to
> indicates "and so forth"?
>
> For example, suppose you have an exercise where there is a pattern to play
> in different tonality. You write the first two or three measures and then I
> would like to indicate "and so forth". What I should use for that in
> lilypond?
>

Unless I'm really not understanding your question, pretty sure you don't
need anything fancy. A simple "simile" or just "sim." should do here.

Best,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/ellipsis-point-music-tp203151p203161.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: Function which return the chords of the degrees of a mode

2017-05-16 Thread daviau ewen
Oh ! This is wonderfull ! I am alays so surprised by your answears and your
skills !

Thanks Thomas !


---
http://labodezao.fr/
---
Ewen d'Aviau
11 chemin de berrien
44600 Saint-Nazaire
06-02-37-53-22

2017-05-16 22:08 GMT+02:00 Thomas Morley :

>
>
> 2017-05-15 19:56 GMT+02:00 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 >  < g b d >   *.
>>
>> In A minor the function will return a list of <   * c e g >  > b >
>>  < g b d >.
>>
>> Do you have any idea to make this function simple to code ?
>>
>> Best,
>>
>> And thanks
>>
>> How about:
>
> \version "2.19.60"
>
> %% STEPS:
> %% - Construct the requested scale, for use with 'modalTranspose' it needs
> to be
> %% sequential music.
> %% - Construct the tonic-chord.
> %% - Transpose the tonic-chord with 'modalTranspose',
> %% using 'multipleModalTransposes'
>
> multipleModalTransposes =
> #(define-music-function (parser location m scale music)
>   (ly:music? ly:music? ly:music?)
>   (music-clone m
>'elements
>(map (lambda (pitch)
>  (ly:music-property #{ \modalTranspose c $pitch $scale $music #}
> 'element))
> (event-chord-pitches m
>
> #(define (c-based-scale scale-def)
>   (map (lambda (el) (ly:make-pitch 0 (car el) (cdr el))) scale-def))
>
> #(define (c-based-chord scale-def)
>   (let ((scale (c-based-scale scale-def)))
> (list (car scale) (third scale) (fifth scale
>
> #(define (c-based-pitches->sequential-music scale-def pitches duration)
>   (make-sequential-music
> (map
>   (lambda (p)
> (make-music
>   'NoteEvent
>   'duration duration
>   'pitch p))
>   pitches)))
>
> #(define (make-tonic-triad scale-def duration)
>   (let ((seq-music ;; sequential music containing an event-chord
>   (c-based-pitches->sequential-music
> scale-def
> (c-based-chord scale-def)
> duration)))
>   (make-event-chord
> (extract-typed-music
>   #{
>  \multipleModalTransposes
>\absolute $seq-music
>\absolute $seq-music
>\absolute c
>   #}
>   'note-event
>
> chords-of-scale =
> #(define-music-function (tonic scale-def)(ly:music? list?)
>   (let ((tonic-pitch (ly:music-property tonic 'pitch))
> (dur (ly:music-property tonic 'duration))
> ;; sequential music containing a scale,
> ;; the duration is pretty arbitrary
> (seq-music
>   (c-based-pitches->sequential-music
> scale-def
> (c-based-scale scale-def)
> #{ 1 #})))
> #{
>   \transpose c $tonic-pitch
>   \multipleModalTransposes
> $seq-music
> $seq-music
> \transpose c c, $(make-tonic-triad scale-def dur)
> #}))
>
> \markup \rounded-box \fill-line \bold { MINOR }
>
> \chords-of-scale c2 \minor
> \chords-of-scale cis2 \minor
> \chords-of-scale d4 \minor
> \chords-of-scale ees8 \minor
> \chords-of-scale e8 \minor
> \chords-of-scale f1 \minor
> \chords-of-scale fis1 \minor
> \chords-of-scale g2 \minor
> \chords-of-scale gis2 \minor
> \chords-of-scale a2 \minor
> \chords-of-scale aes2 \minor
> \chords-of-scale bes \minor
> \chords-of-scale b \minor
>
> \markup \rounded-box \fill-line \bold { MAJOR }
>
> \chords-of-scale c2 \major
> \chords-of-scale d4 \major
> \chords-of-scale e8 \major
> \chords-of-scale f1 \major
> \chords-of-scale g2 \major
> \chords-of-scale a2 \major
> %% The 'chords-of-scale'-music-function can't read the KeySignature
> { \key b \major \chords-of-scale b \major }
>
> \markup \rounded-box \fill-line \bold { "OTHER SCALES" }
>
> \chords-of-scale f2 \ionian
> \chords-of-scale c\breve \dorian
> \chords-of-scale b,16 \phrygian
> \chords-of-scale g2 \lydian
> \chords-of-scale b2 \mixolydian
> \chords-of-scale d'2 \aeolian
> \chords-of-scale e,2 \locrian
>
>
> There's still wide room to do it more straight forward, though.
>
>
> HTH,
>   Harm
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Function which return the chords of the degrees of a mode

2017-05-16 Thread Thomas Morley
2017-05-15 19:56 GMT+02:00 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 ofb >  < 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
>
> How about:

\version "2.19.60"

%% STEPS:
%% - Construct the requested scale, for use with 'modalTranspose' it needs
to be
%% sequential music.
%% - Construct the tonic-chord.
%% - Transpose the tonic-chord with 'modalTranspose',
%% using 'multipleModalTransposes'

multipleModalTransposes =
#(define-music-function (parser location m scale music)
  (ly:music? ly:music? ly:music?)
  (music-clone m
   'elements
   (map (lambda (pitch)
 (ly:music-property #{ \modalTranspose c $pitch $scale $music #}
'element))
(event-chord-pitches m

#(define (c-based-scale scale-def)
  (map (lambda (el) (ly:make-pitch 0 (car el) (cdr el))) scale-def))

#(define (c-based-chord scale-def)
  (let ((scale (c-based-scale scale-def)))
(list (car scale) (third scale) (fifth scale

#(define (c-based-pitches->sequential-music scale-def pitches duration)
  (make-sequential-music
(map
  (lambda (p)
(make-music
  'NoteEvent
  'duration duration
  'pitch p))
  pitches)))

#(define (make-tonic-triad scale-def duration)
  (let ((seq-music ;; sequential music containing an event-chord
  (c-based-pitches->sequential-music
scale-def
(c-based-chord scale-def)
duration)))
  (make-event-chord
(extract-typed-music
  #{
 \multipleModalTransposes
   \absolute $seq-music
   \absolute $seq-music
   \absolute c
  #}
  'note-event

chords-of-scale =
#(define-music-function (tonic scale-def)(ly:music? list?)
  (let ((tonic-pitch (ly:music-property tonic 'pitch))
(dur (ly:music-property tonic 'duration))
;; sequential music containing a scale,
;; the duration is pretty arbitrary
(seq-music
  (c-based-pitches->sequential-music
scale-def
(c-based-scale scale-def)
#{ 1 #})))
#{
  \transpose c $tonic-pitch
  \multipleModalTransposes
$seq-music
$seq-music
\transpose c c, $(make-tonic-triad scale-def dur)
#}))

\markup \rounded-box \fill-line \bold { MINOR }

\chords-of-scale c2 \minor
\chords-of-scale cis2 \minor
\chords-of-scale d4 \minor
\chords-of-scale ees8 \minor
\chords-of-scale e8 \minor
\chords-of-scale f1 \minor
\chords-of-scale fis1 \minor
\chords-of-scale g2 \minor
\chords-of-scale gis2 \minor
\chords-of-scale a2 \minor
\chords-of-scale aes2 \minor
\chords-of-scale bes \minor
\chords-of-scale b \minor

\markup \rounded-box \fill-line \bold { MAJOR }

\chords-of-scale c2 \major
\chords-of-scale d4 \major
\chords-of-scale e8 \major
\chords-of-scale f1 \major
\chords-of-scale g2 \major
\chords-of-scale a2 \major
%% The 'chords-of-scale'-music-function can't read the KeySignature
{ \key b \major \chords-of-scale b \major }

\markup \rounded-box \fill-line \bold { "OTHER SCALES" }

\chords-of-scale f2 \ionian
\chords-of-scale c\breve \dorian
\chords-of-scale b,16 \phrygian
\chords-of-scale g2 \lydian
\chords-of-scale b2 \mixolydian
\chords-of-scale d'2 \aeolian
\chords-of-scale e,2 \locrian


There's still wide room to do it more straight forward, though.


HTH,
  Harm
___
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-16 Thread Flaming Hakama by Elaine
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




-- Forwarded message --
From: Molly Preston 
To: Karen Billings 
Cc: "lilypond-user@gnu.org" 
Bcc:
Date: Mon, 15 May 2017 19:41:49 -0400
Subject: Re: looking for a lot of help for piano reduction
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


If this means that you have a working edition of your score and parts I'm
lilypond already,

I'd be able to offer some suggestions along the lines of how I create
condensed scores on grand staff.

However, I will note at the outset that creating a piano reduction is not
the same as combining parts, and is itself a creative compositional task.

Especially given your time frame and the length of the piece, doing a
proper job might be out of scope.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Function which return the chords of the degrees of a mode

2017-05-16 Thread daviau ewen
Hi,

In guile :)

Best


---
http://labodezao.fr/
---
Ewen d'Aviau
11 chemin de berrien
44600 Saint-Nazaire
06-02-37-53-22

2017-05-16 18:07 GMT+02:00 Jacques Menu Muzhic :

> Hello zaord,
>
> In which language?
>
> JM
>
> > Le 15 mai 2017 à 19:56, zaord  a écrit :
> >
> > 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  
>  > b >  < g b d >   *.
> >
> > In A minor the function will return a list of <   * c e g >   b >
> >  < 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
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Function which return the chords of the degrees of a mode

2017-05-16 Thread Jacques Menu Muzhic
Hello zaord,

In which language?

JM

> Le 15 mai 2017 à 19:56, zaord  a écrit :
> 
> 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 ofb >  < 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


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


ellipsis point music

2017-05-16 Thread Gianmaria Lari
Is there any musical equivalent symbol for the ellipsis points used to
indicates "and so forth"?

For example, suppose you have an exercise where there is a pattern to play
in different tonality. You write the first two or three measures and then I
would like to indicate "and so forth". What I should use for that in
lilypond?

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


Re: 3 Voices mess

2017-05-16 Thread Malte Meyn


Am 16.05.2017 um 09:53 schrieb Johannes Roeßler:
> Hi list :)
> 
> I'm setting an 18th century piano fantasy and need advice.
> 
> There is one spot with 3 Voice in one staff. In the manuscript the direction 
> of the stem seems (to me) to indicate the hand that should be used.
> 
> Now I have to decide to keep this information an receive an ugly and hardly 
> readable print or to drop this information and try to work with chords 
> whenever this is possible.
> 
> Or u guys got a helpful hint...

How about this?

rightOne = \relative c''' {
  \global
  \voiceOne
  \once \override Rest.staff-position = 8
  r8  b16 d, d[ (es)] es (f) f[(g)] c
  \once \override NoteColumn.X-offset = 1
  e, e[(f)] f(g)
  \once \override Beam.positions = #'(6.5 . 7.5)
  g[ a c8] c4
}

rightTwo = \relative c'' {
  \global
  \voiceThree
  \once \override Rest.staff-position = 2
  r8 b8
  \once \override Rest.staff-position = 0
  \once \override Rest.X-offset = 1.5
  r8  b8~b c4   c8~c a' a4
}

rightThree = \relative c'' {
  \global
  \voiceTwo r8 as8[ g d] es b' a e f4 r16 d e fis
}

___
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-16 Thread Leszek Wroński
Whoops. I had responded before reading the new digests, apologies;
seems David has discovered the root of the issue, thank you very much!

Cheers,

Leszek.

On 16 May 2017 at 09:47, Leszek Wroński  wrote:
> Hi Robert,
>
> thanks! I tried your file and I get similar messages:
>
> -
> musicxml2ly: Reading MusicXML from Kyrie_copy.xml ...
> musicxml2ly: Converting to LilyPond expressions...
> ()
> musicxml2ly: Output to `Kyrie_copy.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
> --
>
> I'm using Ubuntu 16.04 64 bit Python 2.7.12, and Lilypond 2.19.48.
>
> So is it the case that musicxml2ly is trying to apply the ''utf8'
> codec' to the whole file while parts of it are conded in utf16?
>
> Cheers,
>
> Leszek.
>
> On 15 May 2017 at 16:43, Robert Blackstone  
> wrote:
>> 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)
>> Fil

3 Voices mess

2017-05-16 Thread Johannes Roeßler
Hi list :)

I'm setting an 18th century piano fantasy and need advice.

There is one spot with 3 Voice in one staff. In the manuscript the direction of 
the stem seems (to me) to indicate the hand that should be used.

Now I have to decide to keep this information an receive an ugly and hardly 
readable print or to drop this information and try to work with chords whenever 
this is possible.

Or u guys got a helpful hint...

Cheers, Joei

Here my code - the stemUps and Downs are used to force the original setting...


--8<-
\version "2.19.58"
\language "deutsch"

global = {
  \key f \major
  \time 2/4
}

rightOne = \relative c''' {
  \global
r8  b16 d, d[ (es)] es (f) f[(g)] c e, e[(f)] f(g) g[ a c8] c4
}

rightTwo = \relative c'' {
  \global
 r8 \stemUp b8 r8  \stemDown b8~b  \stemUp c4   c8~c \stemDown a' a4
}

rightThree = \relative c'' {
  \global \stemDown
r8 as8[ g d] es b' a e f4 r16 d e fis
 }

\score {
  \new PianoStaff \with {
instrumentName = "Kl."
  } <<
\new Staff = "right" \with {
  midiInstrument = "acoustic grand"
} << \rightOne \\ \rightTwo \\ \rightThree >>
 >>
  \layout { }
  }



___
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-16 Thread Leszek Wroński
Hi Robert,

thanks! I tried your file and I get similar messages:

-
musicxml2ly: Reading MusicXML from Kyrie_copy.xml ...
musicxml2ly: Converting to LilyPond expressions...
()
musicxml2ly: Output to `Kyrie_copy.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
--

I'm using Ubuntu 16.04 64 bit Python 2.7.12, and Lilypond 2.19.48.

So is it the case that musicxml2ly is trying to apply the ''utf8'
codec' to the whole file while parts of it are conded in utf16?

Cheers,

Leszek.

On 15 May 2017 at 16:43, Robert Blackstone  wrote:
> 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 newl