Re: New repeat type

2017-08-31 Thread Knut Petersen

Hi Dan!

The disease is that Lilypond needs to see lyrics for multiple stanzas encoded as simultaneous music in order to set them one below another, and the right action is to cure that, not to infect \repeat. 


Well, at least it is possible to define lyrics within a stanza in a way to 
produce the correct results with bold unfold and not unfolded repeats.

\version "2.21.0"

melody = { \relative { \repeat volta 2 { c''4 4 4 4 } \alternative { { d2 2 } { 
e2 2 } } c1 } }
lyricA = \lyricmode { \repeat volta 2 { a a a a } \alternative { { b b } { c c 
} } d }
lyricB = \lyricmode { \repeat volta 2 { e e e e } \alternative { { f f } { g g 
} } h }


{
    { \melody \bar "|." }
    \addlyrics { \set stanza = #"1. " \lyricA }
    \addlyrics { \set stanza = #"2. " \lyricB }
}


\unfoldRepeats {
    { \melody \bar "|." }
    \addlyrics { \set stanza = #"1. " \lyricA }
    \addlyrics { \set stanza = #"2. " \lyricB }
}

%
% Do you look for a function named e.g \unfoldStanzas to be used like e.g.
%
%   \unfoldStanzas \unfoldRepeats {
%   { \melody \bar "|." }
%   \addlyrics { \set stanza = #"1. " \lyricA }
%   \addlyrics { \set stanza = #"2. " \lyricB }
%   }
%
% that should produce something like
%

\unfoldRepeats {
    { \melody \bar "||" \melody \bar "|." }
    \addlyrics { \lyricA \lyricB }
}

I don't think that such a function would be very useful, think about dynamics 
etc.

Knut

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


Re: New repeat type

2017-08-30 Thread Simon Albrecht

On 30.08.2017 23:42, Dan Eble wrote:

The disease is that Lilypond needs to see lyrics for multiple stanzas encoded 
as simultaneous music in order to set them one below another, and the right 
action is to cure that


I find the metaphor slightly too strong, since I think the ‘cure’ is 
merely in devising an intuitive input method. IMO it should take the 
text in order as input and rearrange it into one \markup \column {} per 
(syllable*repeat number), _and_ place brackets at the beginning and end 
of repeats as required. I’d love to have time for writing such a music 
function[1]…


Best, Simon

[1] the bracket part is more complicated, since the closing brackets 
would actually require something like ‘afterStanza’, if you get what I mean…


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


Re: New repeat type

2017-08-30 Thread Dan Eble
On Aug 30, 2017, at 16:00, Christopher Heckman  
wrote:
> 
> As several people have pointed out, this is not a repeat
…
> Perhaps Dan meant the following?

I meant what I wrote, but I take your point and Carl's.  The disease is that 
Lilypond needs to see lyrics for multiple stanzas encoded as simultaneous music 
in order to set them one below another, and the right action is to cure that, 
not to infect \repeat.

Regards,
— 
Dan


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


Re: New repeat type

2017-08-30 Thread Christopher Heckman
> Date: Tue, 29 Aug 2017 19:01:29 -0400
> From: Dan Eble <d...@faithful.be>
> To: LilyPond Development Team <lilypond-devel@gnu.org>
> Subject: New repeat type
> Message-ID: <419ed35f-7bd2-422a-b52d-e97e77c3c...@faithful.be>
> Content-Type: text/plain; charset=utf-8
>
> Consider: \repeat XX \A \alternative { \B \C }
>
> If ?unfold? is effectively
>
>   {
> { \A \B }
> { \A \C }
>   }
>
> what type would you call this, if it existed?
>
>   <<
> { \A \B }
> { \A \C }
>   >>
> ?
> Dan

As several people have pointed out, this is not a repeat. It is the
notes in \A doubled in unison followed by \B played at the same time
as \C.

Perhaps Dan meant the following?

<<
{ \A \A }
{ \B \C }
>>

Here, \A is repeated (so there is repetiton) but played against \B the
first time and against \C the second time (provided, of course, that
\A and \B have the same duration).

If so, it would be the same as

<<
{ \repeat volta 2 { \A } }
{ \B \C }
>>

--- Christopher Heckman

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


Re: New repeat type

2017-08-29 Thread Carl Sorensen

 Original message 
From: Dan Eble <d...@faithful.be>
Date: 8/29/17 5:33 PM (GMT-07:00)
To: Carl Sorensen <c_soren...@byu.edu>
Cc: LilyPond Development Team <lilypond-devel@gnu.org>
Subject: Re: New repeat type


> On Aug 29, 2017, at 19:14, Carl Sorensen <c_soren...@byu.edu> wrote:
>
> I wouldnt, because it is not a repeat.

Not even as

  \alternative {
\new Lyrics { \stanzaI }
\new Lyrics { \stanzaII }
  }

to be treated as simultaneous during engraving but unfolded before performing?
—
Dan

Repeats result in sequential music, regardless of whether they are volta, 
unfold, or tremolo, right?

There are no repeats named by that structure that I am aware of in the music 
literature that create simultaneous music.

If we want to do something like this I think we should call it a lyricrepeat, 
or a stanzarepeat.

But the most common stanza repeat stuctire in my experience is a verse-chorus 
structure:

\stanzarepeat \stanzas { \new lyrics {\stanza1}{\stanza2}{\stanza3}} {\chorus}
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: New repeat type

2017-08-29 Thread Dan Eble

> On Aug 29, 2017, at 19:14, Carl Sorensen  wrote:
> 
> I wouldnt, because it is not a repeat.

Not even as

  \alternative {
\new Lyrics { \stanzaI }
\new Lyrics { \stanzaII }
  }

to be treated as simultaneous during engraving but unfolded before performing?
— 
Dan


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


Re: New repeat type

2017-08-29 Thread Carl Sorensen
I wouldnt, because it is not a repeat.



Sent via the Samsung Galaxy S®6 active, an AT 4G LTE smartphone


 Original message 
From: Dan Eble <d...@faithful.be>
Date: 8/29/17 5:01 PM (GMT-07:00)
To: LilyPond Development Team <lilypond-devel@gnu.org>
Subject: New repeat type

Consider: \repeat XX \A \alternative { \B \C }

If “unfold” is effectively

   {
 { \A \B }
 { \A \C }
   }

what type would you call this, if it existed?

   <<
 { \A \B }
 { \A \C }
   >>
—
Dan


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


New repeat type

2017-08-29 Thread Dan Eble
Consider: \repeat XX \A \alternative { \B \C }

If “unfold” is effectively

   {
 { \A \B }
 { \A \C }
   }

what type would you call this, if it existed?

   <<
 { \A \B }
 { \A \C }
   >>
— 
Dan


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