Re: Detect slurred notes in callback function

2016-02-11 Thread Jakub Pavlík
Hi David,

thank you very much - actually this is just what I was looking for! It
works great.


> It would be interesting to see your code for this.  This randomness was
> the topic of an earlier thread, and I wonder if your observation is
> related:
> http://www.mail-archive.com/lilypond-user%40gnu.org/msg106840.html
>

I will try to reconstruct it (as I scraped it while trying other solutions)
and post it here.

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


Re: warning: already have a volta spanner, ending that one prematurely

2016-02-11 Thread Federico Bruni
Il giorno mer 10 feb 2016 alle 23:50, Thomas Morley 
 ha scritto:

Here you try to end the volta-spanner:

  \set Score.repeatCommands = #'((volta #f))


Here you try to begin a new volta-spanner:

  \set Score.repeatCommands = #'((volta "2"))

Both commands are set at the same musical moment, conflict! So Lily
tries to makes any sense of your input and throws a warning.


Ok, I understand




  f1
  \set Score.repeatCommands = #'((volta #f))
 }


`repeatCommands' expects a list. So put all stuff in _one_ list:

\relative {
 c'1
 \set Score.repeatCommands = #'((volta "1"))
 d'1
 \set Score.repeatCommands = #'((volta #f) (volta "2") end-repeat)
 f1
 \set Score.repeatCommands = #'((volta #f))
}

As shown in the NR ;)
http://www.lilypond.org/doc/v2.19/Documentation/notation/long-repeats#manual-repeat-marks


Yes, I was in a hurry and didn't read carefully all the examples.

Thanks
Federico




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


Re: Aligning upbows and downbows

2016-02-11 Thread Abraham Lee
David,

You are very welcome! Don't forget to reply to the mailing list so others
know you found a solution. BTW, if you haven't read through the Learning
Manual, this will introduce you to many useful topics and concepts like the
one I shared with you. In fact here's the exact section that talks about
this:

http://lilypond.org/doc/v2.18/Documentation/learning/fixing-overlapping-notation#the-staff_002dpadding-property

Best,
Abraham

On Thu, Feb 11, 2016 at 5:19 PM, David Landt 
wrote:

> Abraham, thank you for responding quickly.  Your code works perfectly.
> Why that code works is something I will hopefully learn over time, but, for
> now, I am pleased that I can continue with engraving my sheet music.  Enjoy
> your day.
>
> --
> Date: Thu, 11 Feb 2016 15:46:53 -0700
> From: tisimst.lilyp...@gmail.com
> To: lilypond-user@gnu.org
> Subject: Re: Aligning upbows and downbows
>
> David,
>
> On Thu, Feb 11, 2016 at 3:37 PM, david_landt [via Lilypond] <[hidden
> email] > wrote:
>
> Hello all.  I am a new user seeking assistance with aligning upbows and
> downbows so that the bows are all aligned horizontally at the same height
> for easier readability.  Thank you.
>
> How about this:
>
> %
>
> \version "2.18.2"  % necessary for upgrading to future LilyPond versions.
>
> \header{
>   title = "Here Comes the Sun"
>   subtitle = "Original music and lyrics written by George Harrison 1969."
>
> }
>
> \relative {
>   \set Staff.instrumentName = "Capo VII"
>   \key e \major
>   \override Script.staff-padding = #3 % <--- Adjust to taste
>   a'8^\downbow^"D" \downbow a\upbow b\downbow cis\upbow 
> a' a, |
>   e' cis' b  a' 
> }
>
> %
>
> HTH,
> Abraham
>
> --
> View this message in context: Re: Aligning upbows and downbows
> 
> 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


repeat

2016-02-11 Thread BB

In a repeat usually the "end" of a phrase of a repetition is different.

I have some strange problem with a transcription of an oriental tune, as 
there the first part or special only the first note is different 
followed by a very long music line (I have shortened in the example). 
See the (shortende and simplified example:


\version "2.19.2"
\relative c''
{
{ \time 2/4
 r8 a b c d e f g %
 \bar "||"
 g, a b c d e f g %
 \bar "|."
}}

There the first phrase is beginning with a rest r8 and the repetition 
ist starting with a "g," and the following notes are identical. I 
separated the 1st and 2nd repetition by a double bar.


Is there the use of a repetition (repeat volta) possible to shorten the 
sheet music? I do not have any idea.


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


Re: repeat

2016-02-11 Thread Pierre Perol-Schneider
Hi,

How about:

\version "2.19.2"

\relative c'' {
 \time 2/4
 r8 a b c
 \repeat volta 2 {
   d e f g %
 }
 \alternative {
  { g, a b c }
  {}
 }%
 g g g g %% the rest of the music
 \bar "|."
}

Cheers,
Pierre

2016-02-11 12:57 GMT+01:00 BB :

> In a repeat usually the "end" of a phrase of a repetition is different.
>
> I have some strange problem with a transcription of an oriental tune, as
> there the first part or special only the first note is different followed
> by a very long music line (I have shortened in the example). See the
> (shortende and simplified example:
>
> \version "2.19.2"
> \relative c''
> {
> { \time 2/4
>  r8 a b c d e f g %
>  \bar "||"
>  g, a b c d e f g %
>  \bar "|."
> }}
>
> There the first phrase is beginning with a rest r8 and the repetition ist
> starting with a "g," and the following notes are identical. I separated the
> 1st and 2nd repetition by a double bar.
>
> Is there the use of a repetition (repeat volta) possible to shorten the
> sheet music? I do not have any idea.
>
> ___
> 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: repeat

2016-02-11 Thread BB
That works, but the long note sequence has to be repeated - exactly 
that's what I would like to avoid.


\version "2.19.2"

\relative c'' {
 \time 2/4
 r8 a b c
 \repeat volta 2 {
   \repeat percent 10 { d e f g }
   %d e f g %
 }
 \alternative {
  { g, a b c }
  {}
 }
\repeat percent 10 { d e f g }
  d e f g % %% the rest of the music
 \bar "|."
}

With the repeats I tried to make clear the long repetition I want to avoid.

On 11.02.2016 13:16, Pierre Perol-Schneider wrote:

\version "2.19.2"

\relative c'' {
 \time 2/4
 r8 a b c
 \repeat volta 2 {
   d e f g %
 }
 \alternative {
  { g, a b c }
  {}
 }%
 g g g g %% the rest of the music
 \bar "|."
}



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


Re: Detect slurred notes in callback function

2016-02-11 Thread Paul Morris
> On Feb 7, 2016, at 5:42 PM, David Nalesnik  wrote:
> 
> Slur grobs store a pointer to an array of NoteColumns they encompass.  So, 
> expanding on Paul's solution, you could do something like this:

Very nice solution!  Might be worth an LSR snippet as a good example of this 
kind of grob to grob access.

Cheers,
-Paul___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Aligning upbows and downbows

2016-02-11 Thread david_landt


Hello all.  I am a new user seeking assistance with aligning upbows and 
downbows so that the bows are all aligned horizontally at the same height for 
easier readability.  Thank you. 


David Landt




my.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Aligning upbows and downbows

2016-02-11 Thread tisimst
David,

On Thu, Feb 11, 2016 at 3:37 PM, david_landt [via Lilypond] <
ml-node+s1069038n187101...@n5.nabble.com> wrote:

> Hello all.  I am a new user seeking assistance with aligning upbows and
> downbows so that the bows are all aligned horizontally at the same height
> for easier readability.  Thank you.
>
How about this:

%

\version "2.18.2"  % necessary for upgrading to future LilyPond versions.

\header{
  title = "Here Comes the Sun"
  subtitle = "Original music and lyrics written by George Harrison 1969."

}

\relative {
  \set Staff.instrumentName = "Capo VII"
  \key e \major
  \override Script.staff-padding = #3 % <--- Adjust to taste
  a'8^\downbow^"D" \downbow a\upbow b\downbow cis\upbow 
a' a, |
  e' cis' b  a' 
}

%

HTH,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Aligning-upbows-and-downbows-tp187101p187102.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: repeat

2016-02-11 Thread David Wright
On Thu 11 Feb 2016 at 14:48:18 (+0100), BB wrote:
> That works, but the long note sequence has to be repeated - exactly
> that's what I would like to avoid.

I don't understand your complaint. In the attached (rpt1), the "d e f g"
bar is printed once but played twice, which is what you asked for.

However, your adding an explicit \bar "|." might indicate that the end
of the repeat is also the end of the music. Even in this case, I would
print the last bar twice (rpt2), once in the first-time bar and once
at the end, so that you don't have a \bar "|." at the beginning of your
first-time bar, which looks ugly and confusing (rpt3).

> \version "2.19.2"
> 
> \relative c'' {
>  \time 2/4
>  r8 a b c
>  \repeat volta 2 {
>\repeat percent 10 { d e f g }
>%d e f g %
>  }
>  \alternative {
>   { g, a b c }
>   {}
>  }
> \repeat percent 10 { d e f g }
>   d e f g % %% the rest of the music
>  \bar "|."
> }
> 
> With the repeats I tried to make clear the long repetition I want to avoid.

I think you may have misunderstood the example below.

> On 11.02.2016 13:16, Pierre Perol-Schneider wrote:
> >\version "2.19.2"
> >
> >\relative c'' {
> > \time 2/4
> > r8 a b c
> > \repeat volta 2 {
> >   d e f g %
> > }
> > \alternative {
> >  { g, a b c }
> >  {}
> > }%
> > g g g g %% the rest of the music
> > \bar "|."
> >}

Cheers,
David.
\version "2.18.2"
\header { tagline = ##f }
\paper { #(set-paper-size "a6" 'landscape) }
\relative c'' {
  \time 2/4
  r8 a b c
  \repeat volta 2 {
d e f g %
  }
  \alternative {
{ g f g g g, a b c }
{ g' f g g }
  }%
  g g g g g2 \fermata %% the rest of the music
  \bar "|."
}
\version "2.18.2"
\header { tagline = ##f }
\paper { #(set-paper-size "a6" 'landscape) }
\relative c'' {
  \time 2/4
  r8 a b c
  \repeat volta 2 {
d e f g %
  }
  \alternative {
{ g2 g,8 a b c }
{ g'2 \fermata }
  }%
  \bar "|."
}
\version "2.18.2"
\header { tagline = ##f }
\paper { #(set-paper-size "a6" 'landscape) }
\relative c'' {
  \time 2/4
  r8 a b c
  \repeat volta 2 {
d e f g g2 %
\bar "|."
  }
  \alternative {
{ g,8 a b c }
{ }
  }%
}


rpt1.pdf
Description: Adobe PDF document


rpt2.pdf
Description: Adobe PDF document


rpt3.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user