[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: repeat ottava
From:       Gianmaria Lari <gianmarialari () gmail ! com>
Date:       2017-02-28 21:57:14
Message-ID: CAKhGe3zxHHPTCuZ1Y1VAwHhg40moWgjCB6u7mWCsLdy=Y4cHdA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 28 February 2017 at 18:31, David Kastrup <dak@gnu.org> wrote:
>
> Gianmaria Lari <gianmarialari@gmail.com> writes:
>
> >>> I have a fragment that needs to be repeated twice with alternate
ending
> > and
> >>> the second time one octave higher. The following is an example that
would
> >>> be ok...
> > [....]
> >> Let's just cheat.
> >>
> >> \version "2.19.52"
> >>
> >> \score {
> >>   {
> >>     \mark "2nd time 8va"
> >>     \repeat volta 2 {c' d' e' f'}
> >>     \alternative {{a a a a}{\transposition c'' b b b b \transposition
c'}}
> >>   }
> >>   \layout {}
> >>   \midi {}
> >> }
> >
> > :))))
> >
> > It works with the alternative  - b b b b - that gets correctly
transposed
> > but it doesn't with the repeat body - c' d' e' f'  -. Do I miss
anything?
>
> Well, this was more a sketch of the functionality to use than a sane
> proposal.  If you are going to use \expandRepeats, you'll likely want to
> order this as
>
> \score {
>   {
>     \mark "2nd time 8va"
>     \repeat volta 2 {c' d' e' f'}
>     \alternative {{a a a a \transposition c''}{b b b b \transposition c'}}
>   }
>   \layout {}
>   \midi {}
> }
>
> instead, namely setting up the "transposition" for the next repeat at
> the end of the preceding alternative.

just because you used in both your example the magic "\transposition" I
would not say that your first example was just a "sketch" of what you did
in your last example :)

Anyway, really nice escamotage. I will try to avoid it anytime that's
possible... but not more!

Thanks!!

[Attachment #5 (text/html)]

<div dir="ltr"><br><br>On 28 February 2017 at 18:31, David Kastrup &lt;<a \
href="mailto:dak@gnu.org">dak@gnu.org</a>&gt; wrote:<br>&gt;<br>&gt; Gianmaria Lari \
&lt;<a href="mailto:gianmarialari@gmail.com">gianmarialari@gmail.com</a>&gt; \
writes:<br>&gt;<br>&gt; &gt;&gt;&gt; I have a fragment that needs to be repeated \
twice with alternate ending<br>&gt; &gt; and<br>&gt; &gt;&gt;&gt; the second time one \
octave higher. The following is an example that would<br>&gt; &gt;&gt;&gt; be \
ok...<br>&gt; &gt; [....]<br>&gt; &gt;&gt; Let&#39;s just cheat.<br>&gt; \
&gt;&gt;<br>&gt; &gt;&gt; \version &quot;2.19.52&quot;<br>&gt; &gt;&gt;<br>&gt; \
&gt;&gt; \score {<br>&gt; &gt;&gt;    {<br>&gt; &gt;&gt;       \mark &quot;2nd time \
8va&quot;<br>&gt; &gt;&gt;       \repeat volta 2 {c&#39; d&#39; e&#39; \
f&#39;}<br>&gt; &gt;&gt;       \alternative {{a a a a}{\transposition c&#39;&#39; b b \
b b \transposition c&#39;}}<br>&gt; &gt;&gt;    }<br>&gt; &gt;&gt;    \layout \
{}<br>&gt; &gt;&gt;    \midi {}<br>&gt; &gt;&gt; }<br>&gt; &gt;<br>&gt; &gt; \
:))))<br>&gt; &gt;<br>&gt; &gt; It works with the alternative   - b b b b - that gets \
correctly transposed<br>&gt; &gt; but it doesn&#39;t with the repeat body - c&#39; \
d&#39; e&#39; f&#39;   -. Do I miss anything?<br>&gt;<br>&gt; Well, this was more a \
sketch of the functionality to use than a sane<br>&gt; proposal.   If you are going \
to use \expandRepeats, you&#39;ll likely want to<br>&gt; order this \
as<br>&gt;<br>&gt; \score {<br>&gt;    {<br>&gt;       \mark &quot;2nd time \
8va&quot;<br>&gt;       \repeat volta 2 {c&#39; d&#39; e&#39; f&#39;}<br>&gt;       \
\alternative {{a a a a \transposition c&#39;&#39;}{b b b b \transposition \
c&#39;}}<br>&gt;    }<br>&gt;    \layout {}<br>&gt;    \midi {}<br>&gt; \
}<br>&gt;<br>&gt; instead, namely setting up the &quot;transposition&quot; for the \
next repeat at<br>&gt; the end of the preceding alternative.<br><br><div>just because \
you used in both your example the magic &quot;\transposition&quot; I would not say \
that your first example was just a &quot;sketch&quot; of what you did in your last \
example :)</div><div><br></div><div>Anyway, really nice escamotage. I will try to \
avoid it anytime that&#39;s possible... but not \
more!</div><div><br></div><div>Thanks!!</div></div>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic