Re: jump to coda inside repeat with alternative

2024-05-24 Thread Knute Snortum
On Thu, May 23, 2024 at 9:16 PM David Wright 
wrote:

>
> Sometimes the easiest way of using these repeat constructions is to
> copy and paste an example from Notation Reference §1.4 into your
> .ly file, and then insert your music in place of the example's.
>

If you use Frescobaldi as your editor, you can make it a snippet, or
several snippets.

--
Knute Snortum


Re: jump to coda inside repeat with alternative

2024-05-23 Thread David Wright
On Tue 21 May 2024 at 11:43:10 (+1000), Laurie Savage wrote:
> On Tue, 21 May 2024 at 10:35, Paul Scott wrote:
> 
> > Segno repeat structure is like a black box to me.  I have been
> > relatively successful with help and trial and error.
> >
> > I would really appreciate some help with this that I need soon:
> >
> >  From NR 2.25.16 1.4.1, Segno repeat structure/alla coda, how do I add a
> > repeat with alternative so the coda jump is just before the alternative?
> >
> > Here is the manually written MWE:
> >
> > \version "2.25.16"
> >
> > \fixed c' {
> >c1 \segnoMark \default
> >\repeat volta 2 { d \codaMark \default }
> >\alternative{ e f }
> >e_"D.C. al Coda" \bar "||"
> ><>^"Coda" e
> >\bar "|."
> > }
> >
> I have struggled with this one in the past and gave up in the end. There
> are some tweaks I found on the archived threads but I found it easier to
> enter the segnoMark and codaMark manually. Ditto for the"D.S. al Coda"
> (which is what I think you mean in your example. I often edit big band and
> small combo charts so any simple solution would be wonderful.

Sometimes the easiest way of using these repeat constructions is to
copy and paste an example from Notation Reference §1.4 into your
.ly file, and then insert your music in place of the example's.

If you have a repeat structure nested in another, you can cut and
paste a second example at the appropriate point, and then replace
the music (or placeholder text) in the example with your music again.

However, the example given above doesn't have nested repeats, but
overlapping ones. LP has a mechanism for distinguishing which repeat
an \alternative belongs to if two repeats are nested (it chooses
the innermost). But there's no LP mechanism AFAIK that can unpick
two overlapping repeat structures, so a manual solution is required,
as given.

Cheers,
David.



Re: jump to coda inside repeat with alternative

2024-05-22 Thread Paul Scott

Close enough for now. I get a bar line after the clef sign.

Thank you,

Paul


On 5/22/24 11:49, Knute Snortum wrote:


On Wed, May 22, 2024 at 10:50 AM Paul Scott  
wrote:


I sometimes use \stopStaff and \startStaff before the coda. Can
anyone tell me how to get a clef sign after a \startStaff?


Would Staff.forceClef = ##t work in your situation?  If not, can you 
give us a MWE?


%%%
\version "2.24.3"

{
  c''4 4 4 4 \stopStaff
  s1
  \once \set Staff.forceClef = ##t
  \startStaff c''4 4 4 4
}
%%%


--
Knute Snortum



Re: jump to coda inside repeat with alternative

2024-05-22 Thread Knute Snortum
On Wed, May 22, 2024 at 10:50 AM Paul Scott  wrote:

> I sometimes use \stopStaff and \startStaff before the coda. Can anyone
> tell me how to get a clef sign after a \startStaff?
>

Would Staff.forceClef = ##t work in your situation?  If not, can you give
us a MWE?

%%%
\version "2.24.3"

{
  c''4 4 4 4 \stopStaff
  s1
  \once \set Staff.forceClef = ##t
  \startStaff c''4 4 4 4
}
%%%


--
Knute Snortum


Re: jump to coda inside repeat with alternative

2024-05-22 Thread Paul Scott


On 5/20/24 18:43, Laurie Savage wrote:
I have struggled with this one in the past and gave up in the end. 
There are some tweaks I found on the archived threads but I found it 
easier to enter the segnoMark and codaMark manually. Ditto for 
the"D.S. al Coda" (which is what I think you mean in your example. I 
often edit big band and small combo charts so any simple solution 
would be wonderful.


Thank you, Laurie.

That's what I've done for years until segno repeat appeared.

I also often edit big band, concert band and orchestra charts, often 
just to make my parts easier to read,


I sometimes use \stopStaff and \startStaff before the coda. Can anyone 
tell me how to get a clef sign after a \startStaff?


TIA,

Paul



Laurie


On Tue, 21 May 2024 at 10:35, Paul Scott  wrote:

Segno repeat structure is like a black box to me.  I have been
relatively successful with help and trial and error.

I would really appreciate some help with this that I need soon:

 From NR 2.25.16 1.4.1, Segno repeat structure/alla coda, how do I
add a
repeat with alternative so the coda jump is just before the
alternative?

Here is the manually written MWE:

\version "2.25.16"

\fixed c' {
   c1 \segnoMark \default
   \repeat volta 2 { d \codaMark \default }
   \alternative{ e f }
   e_"D.C. al Coda" \bar "||"
   <>^"Coda" e
   \bar "|."
}

TIA,

Paul



Re: jump to coda inside repeat with alternative

2024-05-20 Thread Laurie Savage
I have struggled with this one in the past and gave up in the end. There
are some tweaks I found on the archived threads but I found it easier to
enter the segnoMark and codaMark manually. Ditto for the"D.S. al Coda"
(which is what I think you mean in your example. I often edit big band and
small combo charts so any simple solution would be wonderful.

Laurie


On Tue, 21 May 2024 at 10:35, Paul Scott  wrote:

> Segno repeat structure is like a black box to me.  I have been
> relatively successful with help and trial and error.
>
> I would really appreciate some help with this that I need soon:
>
>  From NR 2.25.16 1.4.1, Segno repeat structure/alla coda, how do I add a
> repeat with alternative so the coda jump is just before the alternative?
>
> Here is the manually written MWE:
>
> \version "2.25.16"
>
> \fixed c' {
>c1 \segnoMark \default
>\repeat volta 2 { d \codaMark \default }
>\alternative{ e f }
>e_"D.C. al Coda" \bar "||"
><>^"Coda" e
>\bar "|."
> }
>
> TIA,
>
> Paul
>
>
>


jump to coda inside repeat with alternative

2024-05-20 Thread Paul Scott
Segno repeat structure is like a black box to me.  I have been 
relatively successful with help and trial and error.


I would really appreciate some help with this that I need soon:

From NR 2.25.16 1.4.1, Segno repeat structure/alla coda, how do I add a 
repeat with alternative so the coda jump is just before the alternative?


Here is the manually written MWE:

\version "2.25.16"

\fixed c' {
  c1 \segnoMark \default
  \repeat volta 2 { d \codaMark \default }
  \alternative{ e f }
  e_"D.C. al Coda" \bar "||"
  <>^"Coda" e
  \bar "|."
}

TIA,

Paul




jump to coda inside repeat with alternative

2024-05-18 Thread Paul Scott
From NR 2.25.16 1.4.1, Segno repeat structure/alla coda, how do I add a 
repeat with alternative so the coda jump is just before the alternative?


Here is the manually written MWE:

\version "2.25.16"

\fixed c' {
  c1 \segnoMark \default
  \repeat volta 2 { d \codaMark \default }
  \alternative{ e f }
  e_"D.C. al Coda" \bar "||"
  <>^"Coda" e
  \bar "|."
}

TIA,

Paul





Re: dal 턋 al 턌 et poi la Coda for the 2nd ending with segno- and coda-marks in the middle of a volta repeat with alternative endings

2023-11-03 Thread Jean Abou Samra
Le vendredi 03 novembre 2023 à 21:48 +0100, Hans Aikema a écrit :
> Looking at the various documentation snippets on repeats it looks like there
> is no way to use the \repeat instruction to encode what I’m trying to
> transcribe into Lilypond. 
> 
> Nevertheless want to check with the collective knowledge on this list to
> prevent that I’m somehow overlooking the obvious solution to my problem.


You are correct. There is no built-in way to encode this.

If you want correct MIDI output, the only way (unfortunately) is to make
separate \score blocks for \layout and \midi, assembling the pieces as needed.

Best,
Jean



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


dal 턋 al 턌 et poi la Coda for the 2nd ending with segno- and coda-marks in the middle of a volta repeat with alternative endings

2023-11-03 Thread Hans Aikema
Looking at the various documentation snippets on repeats it looks like there is 
no way to use the \repeat instruction to encode what I’m trying to transcribe 
into Lilypond. 

Nevertheless want to check with the collective knowledge on this list to 
prevent that I’m somehow overlooking the obvious solution to my problem.

A minimal example of what I’m trying to achieve that renders fine for the 
printed sheet, but does not have the "from segno mark to codamark and then the 
coda” semantics embedded so that unfolding repeats would omit the segno-to-coda 
part:

\version “2.24.0”
{
b1
\repeat volta 2 {
c’ \segnoMark 1
d' 
e' \codaMark 1
\alternative {
\volta 1 {
f'
}
\volta 2 {
f' g' \break % from segno mark to coda mark and then the coda here
}
}
}
\section \sectionLabel "Coda” 
a’
}

Visually working for a printed sheet, but as the ‘from segno mark to coda mark’ 
is not actually embedded in code it will not properly unfold.

What I’m trying to encode semantically is:



So the expected repeat-unfolded rendering I’m looking to achieve (without 
manually repeating the segnoMark to codaMark phrase before the actual coda ) 
would be
b (before the repeat)
c’ d’ e’ f’  (first repeat)
c’ d’ e’ f’ g’ (second repeat)
d’ e’ a’ (from segnoMark to codaMark followed by the coda)



Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-20 Thread Jean Abou Samra

Le 20/09/2022 à 04:27, David Wright a écrit :

On Mon 19 Sep 2022 at 17:45:24 (-0700), Kenneth Wolcott wrote:


   What is "\rightjust"? Is it a variable (macro) that you have
defined?  I can't find that command in the NR.  How does that differ
from right-align, which I tried and it didn't work for me.

Oops, I'm sorry. I forgot that I'm relying on my main library for
its definition:

rightjust = {
   \override Score.RehearsalMark.self-alignment-X = #right
   \override Score.RehearsalMark.break-visibility = #begin-of-line-invisible
}

Of course, now I shall read Jean's contribution to see whether
I'm up-to-date. My libraries can otherwise fall behind the latest
ways of doing things.




This is the latest way of doing it as of LilyPond 2.23.13. However,
with a patch that has been merged just last night, the next version
will have a \textEndMark command making \textEndMark  somewhat
similar to \rightjust \mark  with your definition, but
creating a TextMark grob and not a RehearsalMark grob. The counterpart
is \textMark , which is sort of an equivalent of
\tweak self-alignment-X #LEFT \mark . We're adding these
to disentangle arbitrary text marks from "rehearsal" marks
(and there are some more differences: there can be several
text marks at the same moment, and the default font size is not
the same).

Jean




Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-19 Thread David Wright
On Mon 19 Sep 2022 at 17:45:24 (-0700), Kenneth Wolcott wrote:

>   What is "\rightjust"? Is it a variable (macro) that you have
> defined?  I can't find that command in the NR.  How does that differ
> from right-align, which I tried and it didn't work for me.

Oops, I'm sorry. I forgot that I'm relying on my main library for
its definition:

rightjust = {
  \override Score.RehearsalMark.self-alignment-X = #right
  \override Score.RehearsalMark.break-visibility = #begin-of-line-invisible
}

Of course, now I shall read Jean's contribution to see whether
I'm up-to-date. My libraries can otherwise fall behind the latest
ways of doing things.

Cheers,
David.



Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-19 Thread Kenneth Wolcott
HI Jean;

  Now it finally starts to make sense!

Thanks,
Ken

On Mon, Sep 19, 2022 at 6:30 PM Jean Abou Samra  wrote:
>
> Le 20/09/2022 à 02:45, Kenneth Wolcott a écrit :
> > HI David;
> >
> >Thank you.
> >
> >What is "\rightjust"? Is it a variable (macro) that you have
> > defined? I can't find that command in the NR.
>
>
>
> I suppose David defined it as something like
>
> rightjust = \tweak self-alignment-X #RIGHT \etc
>
>
> The alignment of a mark is defined by self-alignment-X. #RIGHT
> specifies to align on the right side.
>
>
> > How does that differ
> > from right-align, which I tried and it didn't work for me.
>
>
>
> Trying to use alignment markup commands like \left-align, \center-align,
> \right-align, \general-align, \halign, etc. for aligning marks, text
> scripts or other textual objects is a mistake I have seen quite a number
> of people doing. I wonder if the manual should be explicitly warning against
> it, but it's difficult to know in which section to put it, since it can
> occur in many different contexts.
>
> The problem with `\mark \markup \right-align Fine` is that \right-align
> acts on the text that \mark prints as a RehearsalMark grob, but the
> RehearsalMark
> grob also realigns itself. For simplicity, let's assume rehearsal marks are
> always centered by default (it's more complex but this is illustrative).
> When you write "Fine", this makes a markup, and when this markup is
> interpreted,
> it has a certain width, say, '(0 . 4), which means from point 0 horizontally
> to point 4 (in a certain unit defined by LilyPond). To ensure the centering,
> the RehearsalMark grob will move itself by 2 units on the left so that
> this extent becomes '(-2 . 2). By using \right-align, you translate the
> Fine text in the initial step so its extent is '(-4 . 0), but the centering
> step still happens, and recenters at '(-2 . 2).
>
> Here is a little visualization. The red X indicates the X coordinate 0
> in the Fine markup. As you can see, \right-align does move the Fine text
> relative to this X, but the X also gets moved relative to the bar line,
> which cancels the effect.
>
>
> {
>c'1
>\mark \markup \combine
>  Fine % also try \right-align Fine
>  \with-outline \stencil #empty-stencil \fontsize #-5 \with-color
> "red" ×
> }
>
>
> So, instead of \right-align, you need to tweak self-alignment-X, which
> modifies the realignment step to suit your desired alignment. I hope
> that was clear.
>
>



Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-19 Thread Jean Abou Samra

Le 20/09/2022 à 02:45, Kenneth Wolcott a écrit :

HI David;

   Thank you.

   What is "\rightjust"? Is it a variable (macro) that you have
defined? I can't find that command in the NR.




I suppose David defined it as something like

rightjust = \tweak self-alignment-X #RIGHT \etc


The alignment of a mark is defined by self-alignment-X. #RIGHT
specifies to align on the right side.



How does that differ
from right-align, which I tried and it didn't work for me.




Trying to use alignment markup commands like \left-align, \center-align,
\right-align, \general-align, \halign, etc. for aligning marks, text
scripts or other textual objects is a mistake I have seen quite a number
of people doing. I wonder if the manual should be explicitly warning against
it, but it's difficult to know in which section to put it, since it can
occur in many different contexts.

The problem with `\mark \markup \right-align Fine` is that \right-align
acts on the text that \mark prints as a RehearsalMark grob, but the 
RehearsalMark

grob also realigns itself. For simplicity, let's assume rehearsal marks are
always centered by default (it's more complex but this is illustrative).
When you write "Fine", this makes a markup, and when this markup is 
interpreted,

it has a certain width, say, '(0 . 4), which means from point 0 horizontally
to point 4 (in a certain unit defined by LilyPond). To ensure the centering,
the RehearsalMark grob will move itself by 2 units on the left so that
this extent becomes '(-2 . 2). By using \right-align, you translate the
Fine text in the initial step so its extent is '(-4 . 0), but the centering
step still happens, and recenters at '(-2 . 2).

Here is a little visualization. The red X indicates the X coordinate 0
in the Fine markup. As you can see, \right-align does move the Fine text
relative to this X, but the X also gets moved relative to the bar line,
which cancels the effect.


{
  c'1
  \mark \markup \combine
    Fine % also try \right-align Fine
    \with-outline \stencil #empty-stencil \fontsize #-5 \with-color 
"red" ×

}


So, instead of \right-align, you need to tweak self-alignment-X, which
modifies the realignment step to suit your desired alignment. I hope
that was clear.





Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-19 Thread Kenneth Wolcott
HI David;

  Thank you.

  What is "\rightjust"? Is it a variable (macro) that you have
defined?  I can't find that command in the NR.  How does that differ
from right-align, which I tried and it didn't work for me.

Thanks,
Ken

On Mon, Sep 19, 2022 at 5:23 PM David Wright  wrote:
>
> On Mon 19 Sep 2022 at 16:28:35 (-0700), Kenneth Wolcott wrote:
>
> >   I have implemented the "Fine" and "D.C. al Fine" as rehearsal mark 
> > markups.
> >
> >   Now I have a problem where the "D.C. al Fine" consumes much more
> > space than the bar containing the dotted-half note, it even falls off
> > the right side of the page.
> >
> >   How does one expand the bar enough to contain the markup instead of
> > modifying the markup to fit the bar?
>
> Right justification is usual:
>
> global = {
>   \key c \major
>   \time 4/4
>   s1 * 4
>   \rightjust \mark \markup{ \smallCaps "Fine"}
>   \bar "|."
>   s1 * 10
>   \bar "||"
>   s1 * 10
>   \bar "||"
>   s1 * 9
>   \bar "||"
>   \rightjust \mark \markup{ "D.C. al Fine"}
> }
>
> Cheers,
> David.



Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-19 Thread David Wright
On Mon 19 Sep 2022 at 16:28:35 (-0700), Kenneth Wolcott wrote:

>   I have implemented the "Fine" and "D.C. al Fine" as rehearsal mark markups.
> 
>   Now I have a problem where the "D.C. al Fine" consumes much more
> space than the bar containing the dotted-half note, it even falls off
> the right side of the page.
> 
>   How does one expand the bar enough to contain the markup instead of
> modifying the markup to fit the bar?

Right justification is usual:

global = {
  \key c \major
  \time 4/4
  s1 * 4
  \rightjust \mark \markup{ \smallCaps "Fine"}
  \bar "|."
  s1 * 10
  \bar "||"
  s1 * 10
  \bar "||"
  s1 * 9
  \bar "||"
  \rightjust \mark \markup{ "D.C. al Fine"}
}

Cheers,
David.


Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-19 Thread Kenneth Wolcott
HI Valentin;

  Thank you for elaboration.

  I have implemented the "Fine" and "D.C. al Fine" as rehearsal mark markups.

  Now I have a problem where the "D.C. al Fine" consumes much more
space than the bar containing the dotted-half note, it even falls off
the right side of the page.

  How does one expand the bar enough to contain the markup instead of
modifying the markup to fit the bar?

Thanks,
Ken

On Mon, Sep 19, 2022 at 9:07 AM Valentin Petzel  wrote:
>
> Hi Ken,
>
> Lilypond has so called engravers at various levels that handle placement of
> stuff. If you do ^"some text" a so called TextScript event is created, which 
> is
> handled by an engraver at Staff level. The voltas on the other hand are 
> created
> by an engraver at Score level. Other events that are handled on score level
> are marks, so prior to Lilypond 23.6 (? I think this is where the new repeat
> segno stuff came) I’d use a RehearsalMark for these kinds of things (this also
> allows us to align the text to the end of the measure instead of a note).
>
> The new repeat segno stuff does create Marks and Stuff on Score level.
>
> Cheers,
> Valentin
>
> Am Sonntag, 18. September 2022, 21:59:04 CEST schrieb Kenneth Wolcott:
> > Hi Valentin;
> >
> >   Thank you.
> >
> >   Regarding point #1, I don't understand what (how to) to change it so
> > that it is Score level.  Would I place the same command inside the
> > \layout {} block inside the \score section?  Do I invoke it in the
> > same way?
> >
> >   Regarding point #2, I'm still trying to understand the new repeat
> > features, so I'm putting that off for now.
> >
> > Thanks,
> > Ken
> >
> > On Sun, Sep 18, 2022 at 11:04 AM Valentin Petzel  wrote:
> > > Hi Ken,
> > >
> > > note that it would be reasonable to create these Marks on a Score level,
> > > not on a Staff level.
> > >
> > > If you are using a sufficiently recent development version you can also
> > > make use of the \repeat segno function, somewhat like this:
> > >
> > > \version "2.23.12"
> > >
> > > \layout {
> > >
> > >   \context {
> > >
> > > \Score
> > > \override JumpScript.direction = #UP
> > >
> > >   }
> > >
> > > }
> > >
> > > \new PianoStaff <<
> > >
> > >   \new Staff s1*6
> > >   \new Staff {
> > >
> > > \repeat segno 2 {
> > >
> > >   \repeat volta 2 {
> > >
> > > c'4 d' e' f'
> > > \alternative {
> > >
> > >   { g'2 f' } { g'1 \fine }
> > >
> > > }
> > >
> > >   }
> > >   \repeat volta 2 {
> > >
> > > c'4 d' e' f'
> > > \alternative {
> > >
> > >   { g'2 f' } { g'1 }
> > >
> > > }
> > >
> > >   }
> > >
> > > }
> > >
> > >   }
> > >
> > > (note how although the marks are defined in the lower Staff they are
> > > displayed above the upper one, since they are created on a Score level).
> > >
> > > Cheers,
> > > Valentin
> > >
> > > Am Sonntag, 18. September 2022, 19:00:23 CEST schrieb Kenneth Wolcott:
> > > > Hi Knute;
> > > >
> > > >   Thank you for reminding me to share :-)
> > > >
> > > >   I did not find a precise search phrase that I should have used but
> > > >
> > > > "Controlling the vertical ordering of scripts" in the Notation
> > > > Reference comes close; reading the entire section helped.
> > > >
> > > >   What I saw there reminded me of what I had been shown before, so I
> > > >
> > > > looked in my previous engravings and I found what I needed.
> > > >
> > > >   Here is my markup command that I had used previously but could not
> > > >
> > > > remember how to search for it:
> > > >
> > > > fine = -\tweak outside-staff-priority #605 ^\markup { \fontsize #3
> > > > "Fine" }
> > > >
> > > >   So I was able to solve my problem, but I still don't have a precise
> > > >
> > > > search phrase that results in information that more closely matches
> > > > that which I had been shown to me on this mailing list previously.
> > > >
> > > >
> > > > Thanks,
> > > > Ken
> > > >
> > > > On Sun, Sep 18, 2022 at 6:29 AM Knute Snortum 
> wrote:
> > > > > On Sat, Sep 17, 2022 at 9:36 PM Kenneth Wolcott
> > > > >
> > > > >  wrote:
> > > > > > HI;
> > > > > >
> > > > > >   I found what I was looking for; sorry to waste your time...
> > > > >
> > > > > Why not share what you found so others can learn from it?
> > > > >
> > > > >
> > > > > --
> > > > > Knute Snortum
>



Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-19 Thread Valentin Petzel
Hi Ken,

Lilypond has so called engravers at various levels that handle placement of 
stuff. If you do ^"some text" a so called TextScript event is created, which is 
handled by an engraver at Staff level. The voltas on the other hand are created 
by an engraver at Score level. Other events that are handled on score level 
are marks, so prior to Lilypond 23.6 (? I think this is where the new repeat 
segno stuff came) I’d use a RehearsalMark for these kinds of things (this also 
allows us to align the text to the end of the measure instead of a note).

The new repeat segno stuff does create Marks and Stuff on Score level.

Cheers,
Valentin

Am Sonntag, 18. September 2022, 21:59:04 CEST schrieb Kenneth Wolcott:
> Hi Valentin;
> 
>   Thank you.
> 
>   Regarding point #1, I don't understand what (how to) to change it so
> that it is Score level.  Would I place the same command inside the
> \layout {} block inside the \score section?  Do I invoke it in the
> same way?
> 
>   Regarding point #2, I'm still trying to understand the new repeat
> features, so I'm putting that off for now.
> 
> Thanks,
> Ken
> 
> On Sun, Sep 18, 2022 at 11:04 AM Valentin Petzel  wrote:
> > Hi Ken,
> > 
> > note that it would be reasonable to create these Marks on a Score level,
> > not on a Staff level.
> > 
> > If you are using a sufficiently recent development version you can also
> > make use of the \repeat segno function, somewhat like this:
> > 
> > \version "2.23.12"
> > 
> > \layout {
> > 
> >   \context {
> >   
> > \Score
> > \override JumpScript.direction = #UP
> >   
> >   }
> > 
> > }
> > 
> > \new PianoStaff <<
> > 
> >   \new Staff s1*6
> >   \new Staff {
> >   
> > \repeat segno 2 {
> > 
> >   \repeat volta 2 {
> >   
> > c'4 d' e' f'
> > \alternative {
> > 
> >   { g'2 f' } { g'1 \fine }
> > 
> > }
> >   
> >   }
> >   \repeat volta 2 {
> >   
> > c'4 d' e' f'
> > \alternative {
> > 
> >   { g'2 f' } { g'1 }
> > 
> > }
> >   
> >   }
> > 
> > }
> >   
> >   }
> > 
> > (note how although the marks are defined in the lower Staff they are
> > displayed above the upper one, since they are created on a Score level).
> > 
> > Cheers,
> > Valentin
> > 
> > Am Sonntag, 18. September 2022, 19:00:23 CEST schrieb Kenneth Wolcott:
> > > Hi Knute;
> > > 
> > >   Thank you for reminding me to share :-)
> > >   
> > >   I did not find a precise search phrase that I should have used but
> > > 
> > > "Controlling the vertical ordering of scripts" in the Notation
> > > Reference comes close; reading the entire section helped.
> > > 
> > >   What I saw there reminded me of what I had been shown before, so I
> > > 
> > > looked in my previous engravings and I found what I needed.
> > > 
> > >   Here is my markup command that I had used previously but could not
> > > 
> > > remember how to search for it:
> > > 
> > > fine = -\tweak outside-staff-priority #605 ^\markup { \fontsize #3
> > > "Fine" }
> > > 
> > >   So I was able to solve my problem, but I still don't have a precise
> > > 
> > > search phrase that results in information that more closely matches
> > > that which I had been shown to me on this mailing list previously.
> > > 
> > > 
> > > Thanks,
> > > Ken
> > > 
> > > On Sun, Sep 18, 2022 at 6:29 AM Knute Snortum  
wrote:
> > > > On Sat, Sep 17, 2022 at 9:36 PM Kenneth Wolcott
> > > > 
> > > >  wrote:
> > > > > HI;
> > > > > 
> > > > >   I found what I was looking for; sorry to waste your time...
> > > > 
> > > > Why not share what you found so others can learn from it?
> > > > 
> > > > 
> > > > --
> > > > Knute Snortum



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


Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-18 Thread Kenneth Wolcott
Hi Valentin;

  Thank you.

  Regarding point #1, I don't understand what (how to) to change it so
that it is Score level.  Would I place the same command inside the
\layout {} block inside the \score section?  Do I invoke it in the
same way?

  Regarding point #2, I'm still trying to understand the new repeat
features, so I'm putting that off for now.

Thanks,
Ken


On Sun, Sep 18, 2022 at 11:04 AM Valentin Petzel  wrote:
>
> Hi Ken,
>
> note that it would be reasonable to create these Marks on a Score level, not
> on a Staff level.
>
> If you are using a sufficiently recent development version you can also make 
> use
> of the \repeat segno function, somewhat like this:
>
> \version "2.23.12"
>
> \layout {
>   \context {
> \Score
> \override JumpScript.direction = #UP
>   }
> }
>
> \new PianoStaff <<
>   \new Staff s1*6
>   \new Staff {
> \repeat segno 2 {
>   \repeat volta 2 {
> c'4 d' e' f'
> \alternative {
>   { g'2 f' } { g'1 \fine }
> }
>   }
>   \repeat volta 2 {
> c'4 d' e' f'
> \alternative {
>   { g'2 f' } { g'1 }
> }
>   }
> }
>   }
> >>
>
> (note how although the marks are defined in the lower Staff they are displayed
> above the upper one, since they are created on a Score level).
>
> Cheers,
> Valentin
>
> Am Sonntag, 18. September 2022, 19:00:23 CEST schrieb Kenneth Wolcott:
> > Hi Knute;
> >
> >   Thank you for reminding me to share :-)
> >
> >   I did not find a precise search phrase that I should have used but
> > "Controlling the vertical ordering of scripts" in the Notation
> > Reference comes close; reading the entire section helped.
> >
> >   What I saw there reminded me of what I had been shown before, so I
> > looked in my previous engravings and I found what I needed.
> >
> >   Here is my markup command that I had used previously but could not
> > remember how to search for it:
> >
> > fine = -\tweak outside-staff-priority #605 ^\markup { \fontsize #3 "Fine" }
> >
> >   So I was able to solve my problem, but I still don't have a precise
> > search phrase that results in information that more closely matches
> > that which I had been shown to me on this mailing list previously.
> >
> >
> > Thanks,
> > Ken
> >
> > On Sun, Sep 18, 2022 at 6:29 AM Knute Snortum  wrote:
> > > On Sat, Sep 17, 2022 at 9:36 PM Kenneth Wolcott
> > >
> > >  wrote:
> > > > HI;
> > > >
> > > >   I found what I was looking for; sorry to waste your time...
> > >
> > > Why not share what you found so others can learn from it?
> > >
> > >
> > > --
> > > Knute Snortum
>



Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-18 Thread Valentin Petzel
Hi Ken,

note that it would be reasonable to create these Marks on a Score level, not 
on a Staff level.

If you are using a sufficiently recent development version you can also make 
use 
of the \repeat segno function, somewhat like this:

\version "2.23.12"

\layout {
  \context {
\Score
\override JumpScript.direction = #UP
  }
}

\new PianoStaff <<
  \new Staff s1*6
  \new Staff {
\repeat segno 2 {
  \repeat volta 2 {
c'4 d' e' f'
\alternative {
  { g'2 f' } { g'1 \fine }
}
  }
  \repeat volta 2 {
c'4 d' e' f'
\alternative {
  { g'2 f' } { g'1 }
}
  }
}
  }
>>

(note how although the marks are defined in the lower Staff they are displayed 
above the upper one, since they are created on a Score level).

Cheers,
Valentin

Am Sonntag, 18. September 2022, 19:00:23 CEST schrieb Kenneth Wolcott:
> Hi Knute;
> 
>   Thank you for reminding me to share :-)
> 
>   I did not find a precise search phrase that I should have used but
> "Controlling the vertical ordering of scripts" in the Notation
> Reference comes close; reading the entire section helped.
> 
>   What I saw there reminded me of what I had been shown before, so I
> looked in my previous engravings and I found what I needed.
> 
>   Here is my markup command that I had used previously but could not
> remember how to search for it:
> 
> fine = -\tweak outside-staff-priority #605 ^\markup { \fontsize #3 "Fine" }
> 
>   So I was able to solve my problem, but I still don't have a precise
> search phrase that results in information that more closely matches
> that which I had been shown to me on this mailing list previously.
> 
> 
> Thanks,
> Ken
> 
> On Sun, Sep 18, 2022 at 6:29 AM Knute Snortum  wrote:
> > On Sat, Sep 17, 2022 at 9:36 PM Kenneth Wolcott
> > 
> >  wrote:
> > > HI;
> > > 
> > >   I found what I was looking for; sorry to waste your time...
> > 
> > Why not share what you found so others can learn from it?
> > 
> > 
> > --
> > Knute Snortum



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


Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-18 Thread Kenneth Wolcott
Hi Knute;

  Thank you for reminding me to share :-)

  I did not find a precise search phrase that I should have used but
"Controlling the vertical ordering of scripts" in the Notation
Reference comes close; reading the entire section helped.

  What I saw there reminded me of what I had been shown before, so I
looked in my previous engravings and I found what I needed.

  Here is my markup command that I had used previously but could not
remember how to search for it:

fine = -\tweak outside-staff-priority #605 ^\markup { \fontsize #3 "Fine" }

  So I was able to solve my problem, but I still don't have a precise
search phrase that results in information that more closely matches
that which I had been shown to me on this mailing list previously.


Thanks,
Ken



On Sun, Sep 18, 2022 at 6:29 AM Knute Snortum  wrote:
>
> On Sat, Sep 17, 2022 at 9:36 PM Kenneth Wolcott
>  wrote:
> >
> > HI;
> >
> >   I found what I was looking for; sorry to waste your time...
>
> Why not share what you found so others can learn from it?
>
>
> --
> Knute Snortum



Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-18 Thread Knute Snortum
On Sat, Sep 17, 2022 at 9:36 PM Kenneth Wolcott
 wrote:
>
> HI;
>
>   I found what I was looking for; sorry to waste your time...

Why not share what you found so others can learn from it?


--
Knute Snortum



Re: Raise the "Fine" and "D.C. Fine" above the repeat volta alternative brackets, how?

2022-09-17 Thread Kenneth Wolcott
HI;

  I found what I was looking for; sorry to waste your time...

Ken

On Sat, Sep 17, 2022 at 9:06 PM Kenneth Wolcott
 wrote:
>
> Hi;
>
>   Raise the "Fine" and "D.C. Fine" above the repeat volta alternative
> brackets, how?
>
>   Please give me good search words so that I can find how to do this
> in the Lilypond documentation.
>
>   Please see attached files.
>
> Thanks,
> Ken Wolcott



Re: repeat in alternative

2019-11-15 Thread Aaron Hill

On 2019-11-15 8:24 am, Aaron Hill wrote:

On 2019-11-15 8:02 am, Sandro Santilli wrote:

Is there a way to obtain what I'm finding in this paper sheet ?
http://strk.kbt.io/tmp/repeat-in-alternative.png

It's basically a repating section starting within an alternative
section...


Two options here:


Nope, I tell a lie.  Here's a third:


{
  \time 3/4
  \repeat volta 2 { a'4 b'2 }
  \alternative {
{ g'2 r4 }
{ \repeat volta 2 { c''2. b'8 a' g'2 } }
  }
  g'2. \bar "|."
}


This one has the volta bracket extending further.

-- Aaron Hill



Re: repeat in alternative

2019-11-15 Thread Jacques Menu
Hello Sandro,

> On 2019-11-15 8:02 am, Sandro Santilli wrote:
>> Is there a way to obtain what I'm finding in this paper sheet ?
>> http://strk.kbt.io/tmp/repeat-in-alternative.png
>> It's basically a repating section starting within an alternative
>> section…

It’s in fact a second alternative (second volta) in a single repeat.

JM




Re: repeat in alternative

2019-11-15 Thread Aaron Hill

On 2019-11-15 8:02 am, Sandro Santilli wrote:

Is there a way to obtain what I'm finding in this paper sheet ?
http://strk.kbt.io/tmp/repeat-in-alternative.png

It's basically a repating section starting within an alternative
section...


Two options here:


\version "2.19.83"

{
  \time 3/4
  \repeat volta 2 { a'4 b'2 }
  \alternative {
{ g'2 r4 \bar ":|.|:" }
{ c''2. }
  }
  { b'8 a' g'2 \bar ":|." f'2. \bar "|." }
}

{
  \time 3/4
  \set Score.repeatCommands = #'(start-repeat)
  a'4 b'2
  \set Score.repeatCommands = #'((volta "1."))
  g'2 r4
  \set Score.repeatCommands = #'((volta #f) end-repeat start-repeat 
(volta "2."))

  c''2.
  \set Score.repeatCommands = #'((volta #f))
  b'8 a' g'2
  \set Score.repeatCommands = #'(end-repeat)
  f'2. \bar "|."
}


Note that using repeatCommands handles the bar line types for you, 
although it opts for ":..:" as the double-sided repeat.


-- Aaron Hill



repeat in alternative

2019-11-15 Thread Sandro Santilli
Is there a way to obtain what I'm finding in this paper sheet ?
http://strk.kbt.io/tmp/repeat-in-alternative.png

It's basically a repating section starting within an alternative
section...

--strk; 



Repeat with Alternative on First Time

2015-11-25 Thread Michael Hartl

Dear Lilypond Experts,

this is my first time posting to this list. I am trying my hand at 
engraving a song with a perhaps unusual, but very simple repeat pattern

and I couldn't find out how to come to the correct result from the manuel.

The melody goes like this:


  
  

It should be set like:

 [1.  ] [2.-3. second-third-time>] 


Right now, I do:
\repeat volta 3 {} \alternative {{time>} {}} 


But, this gives me "1.-2." and "3." instead of "1." and "2.-3." for the 
alternative endings. This looks like it ought to be easy to correct, but 
I can't figure it out.


How can it be done?

Also, \repeat itself is actually wrong, because the verse is not 
repeated before the chorus. Is there any way to use \alternative
without \repeat? A \repeat over the entire song would be acceptable, but 
then again I can't use \alternative in the middle of

\repeat, but only at the end.

Thank you
Mike

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


Re: Repeat with Alternative on First Time

2015-11-25 Thread David Wright
On Wed 25 Nov 2015 at 13:57:40 (+0100), Michael Hartl wrote:
> Dear Lilypond Experts,

Not me, then.

> this is my first time posting to this list. I am trying my hand at
> engraving a song with a perhaps unusual, but very simple repeat
> pattern
> and I couldn't find out how to come to the correct result from the manuel.
> 
> The melody goes like this:
> 
> 
>   
>   
> 
> It should be set like:
> 
>  [1.  ] [2.-3.  ending second-third-time>] 
> 
> Right now, I do:
> \repeat volta 3 {} \alternative {{ first time>} {}} 
> 
> But, this gives me "1.-2." and "3." instead of "1." and "2.-3." for
> the alternative endings. This looks like it ought to be easy to
> correct, but I can't figure it out.
> 
> How can it be done?

You could look at
http://lists.gnu.org/archive/html/lilypond-user/2015-10/msg00404.html
for hints. You can probably ignore the lines that are concerned with
placing the volta brackets mid-bar which is ill-advised (but was
part of that challenge).

> Also, \repeat itself is actually wrong, because the verse is not
> repeated before the chorus. Is there any way to use \alternative
> without \repeat? A \repeat over the entire song would be acceptable,
> but then again I can't use \alternative in the middle of
> \repeat, but only at the end.

Because it doesn't fit the normal repeat structure, you lose the
ability to unfold the repeat automatically; eg in an associated
midi file, the alternatives will just be played consecutively.

Cheers,
David.

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


Re: Repeat with Alternative on First Time

2015-11-25 Thread Robert Schmaus

Hi Mike,

this is actually covered in the Notation Reference, more precisely, 
right there:


http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats#manual-repeat-marks

Best,
Robert



Am 25/11/15 um 13:57 schrieb Michael Hartl:

Dear Lilypond Experts,

this is my first time posting to this list. I am trying my hand at
engraving a song with a perhaps unusual, but very simple repeat pattern
and I couldn't find out how to come to the correct result from the manuel.

The melody goes like this:


  
  

It should be set like:

 [1.  ] [2.-3. ] 

Right now, I do:
\repeat volta 3 {} \alternative {{} {}} 

But, this gives me "1.-2." and "3." instead of "1." and "2.-3." for the
alternative endings. This looks like it ought to be easy to correct, but
I can't figure it out.

How can it be done?

Also, \repeat itself is actually wrong, because the verse is not
repeated before the chorus. Is there any way to use \alternative
without \repeat? A \repeat over the entire song would be acceptable, but
then again I can't use \alternative in the middle of
\repeat, but only at the end.

Thank you
Mike

___
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 with Alternative on First Time

2015-11-25 Thread Robert Schmaus
Actually, what seems to work (although I'm not positive that this is all 
correct, so check if this causes problems down the road, i.e. in th 
chorus part) is this:


\repeat volta 2 {
  c4 d e f
}
\alternative{
{
	\set Score.repeatCommands = #'((volta #f) (volta "1.") 
begin-repeat)	

g a b c
}
{
\set Score.repeatCommands = #'((volta #f) (volta "2.-3.") end-repeat)
g f e d
}
}

Best, Robert



Am 25/11/15 um 14:41 schrieb Robert Schmaus:

Hi Mike,

this is actually covered in the Notation Reference, more precisely,
right there:

http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats#manual-repeat-marks


Best,
Robert



Am 25/11/15 um 13:57 schrieb Michael Hartl:

Dear Lilypond Experts,

this is my first time posting to this list. I am trying my hand at
engraving a song with a perhaps unusual, but very simple repeat pattern
and I couldn't find out how to come to the correct result from the
manuel.

The melody goes like this:


  
  

It should be set like:

 [1.  ] [2.-3. ] 

Right now, I do:
\repeat volta 3 {} \alternative {{} {}} 

But, this gives me "1.-2." and "3." instead of "1." and "2.-3." for the
alternative endings. This looks like it ought to be easy to correct, but
I can't figure it out.

How can it be done?

Also, \repeat itself is actually wrong, because the verse is not
repeated before the chorus. Is there any way to use \alternative
without \repeat? A \repeat over the entire song would be acceptable, but
then again I can't use \alternative in the middle of
\repeat, but only at the end.

Thank you
Mike

___
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: Repeat with Alternative on First Time

2015-11-25 Thread David Wright
On Wed 25 Nov 2015 at 14:41:57 (+0100), Robert Schmaus wrote:
> Hi Mike,
> 
> this is actually covered in the Notation Reference, more precisely,
> right there:
> 
> http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats#manual-repeat-marks

I disagree. What's missing is the notation to cover this bit of the
OP's structure:

 [1. <1st alt> ] [2.-3. <2nd/3rd alts>] 
  

ie indicating where the chorus starts. Unfortunately the solution is a
bit of a hack. IIRC the most flexible way of ameliorating the hack is:

http://lists.gnu.org/archive/html/lilypond-user/2015-10/msg00460.html

Cheers,
David.

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


Re: Repeat with Alternative on First Time

2015-11-25 Thread Pierre Perol-Schneider
Hi Mike,

See: http://lsr.di.unimi.it/LSR/Item?id=915

Cheers,
~Pierre

2015-11-25 15:25 GMT+01:00 Michael Hartl <mikehart...@gmail.com>:

> Hi Robert,
>
> thank you for pointing me to this bit of the manual. Somehow I overlooked
> it even though I scanned
> the page at least twice.
>
> I did it like this now and the result is satisfactory (apart from midi):
> \set Score.repeatCommands = #'((volta "1."))
> ...
> \bar "||"
> \set Score.repeatCommands = #'((volta "2.-3."))
> ...
> \bar "||"
> \set Score.repeatCommands = #'((volta #f))
> \break
> ...chorus...
>
> Yes, it's a bit hackish, but it looks alright.
>
> Thanks to all the others for the suggestions, too!
>
> Best Wishes
> Mike
>
>
> On 2015-11-25 14:41, Robert Schmaus wrote:
>
>> Hi Mike,
>>
>> this is actually covered in the Notation Reference, more precisely, right
>> there:
>>
>>
>> http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats#manual-repeat-marks
>>
>> Best,
>> Robert
>>
>>
>>
>> Am 25/11/15 um 13:57 schrieb Michael Hartl:
>>
>>> Dear Lilypond Experts,
>>>
>>> this is my first time posting to this list. I am trying my hand at
>>> engraving a song with a perhaps unusual, but very simple repeat pattern
>>> and I couldn't find out how to come to the correct result from the
>>> manuel.
>>>
>>> The melody goes like this:
>>>
>>> 
>>>   
>>>   
>>>
>>> It should be set like:
>>>
>>>  [1.  ] [2.-3. >> second-third-time>] 
>>>
>>> Right now, I do:
>>> \repeat volta 3 {} \alternative {{>> time>} {}} 
>>>
>>> But, this gives me "1.-2." and "3." instead of "1." and "2.-3." for the
>>> alternative endings. This looks like it ought to be easy to correct, but
>>> I can't figure it out.
>>>
>>> How can it be done?
>>>
>>> Also, \repeat itself is actually wrong, because the verse is not
>>> repeated before the chorus. Is there any way to use \alternative
>>> without \repeat? A \repeat over the entire song would be acceptable, but
>>> then again I can't use \alternative in the middle of
>>> \repeat, but only at the end.
>>>
>>> Thank you
>>> Mike
>>>
>>> ___
>>> 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
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat with Alternative on First Time

2015-11-25 Thread Michael Hartl

Hi Robert,

thank you for pointing me to this bit of the manual. Somehow I 
overlooked it even though I scanned

the page at least twice.

I did it like this now and the result is satisfactory (apart from midi):
\set Score.repeatCommands = #'((volta "1."))
...
\bar "||"
\set Score.repeatCommands = #'((volta "2.-3."))
...
\bar "||"
\set Score.repeatCommands = #'((volta #f))
\break
...chorus...

Yes, it's a bit hackish, but it looks alright.

Thanks to all the others for the suggestions, too!

Best Wishes
Mike

On 2015-11-25 14:41, Robert Schmaus wrote:

Hi Mike,

this is actually covered in the Notation Reference, more precisely, 
right there:


http://lilypond.org/doc/v2.18/Documentation/notation/long-repeats#manual-repeat-marks 



Best,
Robert



Am 25/11/15 um 13:57 schrieb Michael Hartl:

Dear Lilypond Experts,

this is my first time posting to this list. I am trying my hand at
engraving a song with a perhaps unusual, but very simple repeat pattern
and I couldn't find out how to come to the correct result from the 
manuel.


The melody goes like this:


  
  

It should be set like:

 [1.  ] [2.-3. ] 

Right now, I do:
\repeat volta 3 {} \alternative {{} {}} 

But, this gives me "1.-2." and "3." instead of "1." and "2.-3." for the
alternative endings. This looks like it ought to be easy to correct, but
I can't figure it out.

How can it be done?

Also, \repeat itself is actually wrong, because the verse is not
repeated before the chorus. Is there any way to use \alternative
without \repeat? A \repeat over the entire song would be acceptable, but
then again I can't use \alternative in the middle of
\repeat, but only at the end.

Thank you
Mike

___
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


Repeat volta/alternative with voices

2012-08-20 Thread Zbyszek Loska

Hi,
I am not an experienced user of lilypond, but this seems to me
as bug in parser, or, I do not understand something...
==
\version 2.15.43

Upper = \relative c' {
  e2 g |
  \repeat volta 2 {
  c2 e |
  }
  \alternative {
{ g, b r } |
{ g b g } |
  }
}

Lower = \relative c {
  c'2 g |
  \repeat volta 2 {
  c2 e |
  }
  \alternative {
{ g, f } |
{ g g } |
  }
\bar |.
}

\score {
  \new Staff {  \Upper \\ \Lower  }
  \layout { }
}
===

... produces 2 warnings:

warning: More alternatives than repeats.  Junking excess alternatives

and output: test_repeat_2_voices.png.
If I change all \repeat volta 2 into \repeat volta 3,

lilypond produces these same 2 warnings, but output is as expected:
test_repeat_3_voices.png.

This happens in Lilypond ver. 2.12 and 2.14 as well.

Thanks,
Zbyszek Loska
attachment: test_repeat_2_voices.pngattachment: test_repeat_3_voices.png___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat volta/alternative with voices

2012-08-20 Thread Mark Knoop
At 13:20 on 20 Aug 2012, Zbyszek Loska wrote:
I am not an experienced user of lilypond, but this seems to me
as bug in parser, or, I do not understand something...

Move your bar checks inside the parentheses, viz:

==
\version 2.15.43

Upper = \relative c' {
   e2 g |
   \repeat volta 2 {
   c2 e |
   }
   \alternative {
 { g, b r | }
 { g b g | }
   }
}

Lower = \relative c {
   c'2 g |
   \repeat volta 2 {
   c2 e |
   }
   \alternative {
 { g, f | }
 { g g | }
   }
 \bar |.
}

\score {
   \new Staff {  \Upper \\ \Lower  }
   \layout { }
}
===

and all will be well.


-- 
Mark Knoop

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


Re: Repeat volta/alternative with voices

2012-08-20 Thread Zbyszek Loska

On 08/20/2012 01:27 PM, Mark Knoop wrote:


Move your bar checks inside the parentheses, viz:


==
\version 2.15.43

Upper = \relative c' {
   e2 g |
   \repeat volta 2 {
   c2 e |
   }
   \alternative {

  { g, b r | }
  { g b g | }

   }
}

Lower = \relative c {
   c'2 g |
   \repeat volta 2 {
   c2 e |
   }
   \alternative {

  { g, f | }
  { g g | }

   }
 \bar |.
}

\score {
   \new Staff {  \Upper \\ \Lower  }
   \layout { }
}
===


and all will be well.



Indeed. Thanks a lot.

Zbyszek.

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


Re: Repeat volta/alternative with voices

2012-08-20 Thread Ralph Palmer
On Mon, Aug 20, 2012 at 7:20 AM, Zbyszek Loska zb...@camk.edu.pl wrote:

 Hi,
 I am not an experienced user of lilypond, but this seems to me
 as bug in parser, or, I do not understand something...
 ==**
 \version 2.15.43

 Upper = \relative c' {
   e2 g |
   \repeat volta 2 {
   c2 e |
   }
   \alternative {
 { g, b r } |
 { g b g } |
   }
 }

 Lower = \relative c {
   c'2 g |
   \repeat volta 2 {
   c2 e |
   }
   \alternative {
 { g, f } |
 { g g } |
   }
 \bar |.
 }

 \score {
   \new Staff {  \Upper \\ \Lower  }
   \layout { }
 }
 ==**=


Greetings, Zbyszek -

I believe that, if you move
\bar |. inside the second alternative, the warnings will disappear :

  \alternative {
{ g, f } |
{ g g } |
\bar |.
  }

Ralph

-- 
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tie between repeat and alternative

2010-03-20 Thread Eby Mani
remove e4 ~ and use

\repeatTie

in alternative after the note.

\repeat volta 2 { r4 e4 } \alternative { e4 \repeatTie f4 } { e4 \repeatTie g4 }


--- On Fri, 3/19/10, Alberto Simões al...@alfarrabio.di.uminho.pt wrote:

 From: Alberto Simões al...@alfarrabio.di.uminho.pt
 Subject: Tie between repeat and alternative
 To: lilypond lilypond-user@gnu.org
 Date: Friday, March 19, 2010, 7:08 PM
 Hello
 
 When the last note from a repeat includes a tie, the first
 note from the
 alternative gets rendered correctly. But the second
 alternative don't.
 Any way to make it work?
 
 \repeat volta 2 {
r4 e4 ~
 }
 \alternative {
   { e4 f4 }
   { e4 r  }
 }
 
 Thanks.
 -- 
 Alberto Simões
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user
 





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


Tie between repeat and alternative

2010-03-19 Thread Alberto Simões
Hello

When the last note from a repeat includes a tie, the first note from the
alternative gets rendered correctly. But the second alternative don't.
Any way to make it work?

\repeat volta 2 {
   r4 e4 ~
}
\alternative {
  { e4 f4 }
  { e4 r  }
}

Thanks.
-- 
Alberto Simões


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


Re: Tie between repeat and alternative

2010-03-19 Thread Wilbert Berendsen
Op vrijdag 19 maart 2010 schreef Alberto:

 Hello
 
 When the last note from a repeat includes a tie, the first note from the
 alternative gets rendered correctly. But the second alternative don't.
 Any way to make it work?

\repeat volta 2 {
   r4 e4 ~
}
\alternative {
  { e4 f4 }
  { e4\repeatTie r  }
}

best regards,
Wilbert Berendsen

-- 
Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/
Nederlands LilyPond forum: http://www.lilypondforum.nl/


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


problem with \repeat and \alternative

2007-02-15 Thread Dominic Neumann

Hi,

I have a song with repeats and different endings. There´s a first
ending and one for the 2nd and 3rd time, but if I do it like that:

 BEGIN 

\version 2.10.16

\relative c'' {
   c1
   \repeat volta 3 {
   c4 c c c
   }

   \alternative {
   {
   % first ending
   d d d e
   }
   {
   % 2nd and 3rd ending
   d c b a
   }
   }
}


 END 

I get a box named 1.-2. and one named 3.. Thats how it´s described
in the docs. But how to change this behavior? If I double the part for
2nd and 3rd ending I get three boxes - one for 1., one for 2. and one
for 3. - thats noch what I want, b/c 2 and 3 are the same.


Dominic


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


slur repeat and alternative

2004-07-06 Thread Jose
Excuse my poor english (I'm french).

With lilypond 2.0 on Linux RH 7.3 , i can't obtain
what i want with the following : 
\score {
\notes {
\time 4/4
\clef bass
\repeat volta2 { c4 d e f( }
\alternative { { d2) d} { f) f,} }
}
\paper { }
}

I get the warning :
/home/jose/lilyfiles/gamme.ly:6:29: AVERTISSEMENT: ne peut repérer le début d'une 
liaison:
\alternative { { d2) d} { f
   ) f,}
What I need is a slur between the f and d2 in the first volta box
(that's OK) and a slur end on the first f in the second volta box.

Thanks.


___
lilypond-user mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: slur repeat and alternative

2004-07-06 Thread Mats Bengtsson
This question has been answered many times on the mailing list
(see the archives).
There is no direct support for this in LilyPond at the moment, so
you have to fake it by drawing the slur in secunda volta from an
invisible note. For example:
\score {
\notes {
\time 4/4
\clef bass
\repeat volta2 { c4 d e f( }
\alternative { { d2) d} { \hideNotes g4( \unHideNotes f2*1/2) f,} }
}
\paper { }
}
   /Mats
Jose wrote:
Excuse my poor english (I'm french).
With lilypond 2.0 on Linux RH 7.3 , i can't obtain
what i want with the following : 
\score {
\notes {
\time 4/4
\clef bass
\repeat volta2 { c4 d e f( }
		\alternative { { d2) d} { f) f,} }
}
\paper { }
}

I get the warning :
/home/jose/lilyfiles/gamme.ly:6:29: AVERTISSEMENT: ne peut repérer le début d'une 
liaison:
\alternative { { d2) d} { f
   ) f,}
What I need is a slur between the f and d2 in the first volta box
(that's OK) and a slur end on the first f in the second volta box.
Thanks.
___
lilypond-user mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=
___
lilypond-user mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-user