Re: Problem with Percent repeats

2015-07-23 Thread Joshua Nichols
Thanks! This is quite helpful!


IX,

Josh

On Wed, Jul 15, 2015 at 6:16 PM, David Kastrup d...@gnu.org wrote:

 Joshua Nichols josh.d.nich...@gmail.com writes:

  On Sun, Jul 5, 2015 at 5:26 PM, David Kastrup d...@gnu.org wrote:
 
  David Kastrup d...@gnu.org writes:
 
   Joshua Nichols josh.d.nich...@gmail.com writes:
  
   I absolutely sent the wrong example. This is my work around for
 right now,
   here below, and re-attached, is the example I'm having trouble with.
  
   Ok, here's the deal: percent repeats don't work with changed time
   signatures.  The problem is that a change in time signature is
 effected
   by a context property change while typesetting, and the percent
 repeat
   _iterator_ starts making decisions at the time it encounters the
 \repeat
   percent which is earlier.
  
   That's stupid.  It's also the same problem as issue 3693
   URL:https://code.google.com/p/lilypond/issues/detail?id=3693.
 
  It turns out that emulating the broken part is somewhat feasible.
 
 
{
  \time 5/16  a16\[ r c- r a]
  \time 4/16  c16-\! r r8 \mark \markup { \box 191 }
}
\omit\time 9/32
#(make-music 'DoublePercentEvent
  'length (ly:make-moment 9/16))
#(make-music 'DoublePercentEvent
  'length (ly:make-moment 9/16))
 
  There is a whole bunch wrong with that.  But the graphical output in
  _this_ staff (others will likely need to have the time signature made
  invisible as well) seems to be more or less what you want.  Maybe one
  can play around in order to make the input correspond a bit better with
  the logic.
 
  Thank you for your speedy reply and candor. I appreciate this, as now I
 can
  look forward to seeing improvements with an already stellar program and
  tinker with the moment at the same time! Thanks again!

 I've uploaded a patch for issue 3693.  I consider it likely that it will
 have made it through our review process before version 2.19.24 gets
 released (10 days or so).

 This will still not make your particular example work: the meter change
 inside of the percent repeat cannot reasonably reliably be extracted and
 repeated.  However, if you just put the meter changes in a parallel
 passage outside of the percent repeat, stuff will then work fine.

 So your particular code will still require a workaround (unless you
 already have a parallel timing track), but the workaround is much more
 straightforward than currently.

 --
 David Kastrup

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


Re: Problem with Percent repeats

2015-07-15 Thread David Kastrup
Joshua Nichols josh.d.nich...@gmail.com writes:

 On Sun, Jul 5, 2015 at 5:26 PM, David Kastrup d...@gnu.org wrote:

 David Kastrup d...@gnu.org writes:

  Joshua Nichols josh.d.nich...@gmail.com writes:
 
  I absolutely sent the wrong example. This is my work around for right 
  now,
  here below, and re-attached, is the example I'm having trouble with.
 
  Ok, here's the deal: percent repeats don't work with changed time
  signatures.  The problem is that a change in time signature is effected
  by a context property change while typesetting, and the percent repeat
  _iterator_ starts making decisions at the time it encounters the \repeat
  percent which is earlier.
 
  That's stupid.  It's also the same problem as issue 3693
  URL:https://code.google.com/p/lilypond/issues/detail?id=3693.

 It turns out that emulating the broken part is somewhat feasible.


   {
 \time 5/16  a16\[ r c- r a]
 \time 4/16  c16-\! r r8 \mark \markup { \box 191 }
   }
   \omit\time 9/32
   #(make-music 'DoublePercentEvent
 'length (ly:make-moment 9/16))
   #(make-music 'DoublePercentEvent
 'length (ly:make-moment 9/16))

 There is a whole bunch wrong with that.  But the graphical output in
 _this_ staff (others will likely need to have the time signature made
 invisible as well) seems to be more or less what you want.  Maybe one
 can play around in order to make the input correspond a bit better with
 the logic.

 Thank you for your speedy reply and candor. I appreciate this, as now I can
 look forward to seeing improvements with an already stellar program and
 tinker with the moment at the same time! Thanks again!

I've uploaded a patch for issue 3693.  I consider it likely that it will
have made it through our review process before version 2.19.24 gets
released (10 days or so).

This will still not make your particular example work: the meter change
inside of the percent repeat cannot reasonably reliably be extracted and
repeated.  However, if you just put the meter changes in a parallel
passage outside of the percent repeat, stuff will then work fine.

So your particular code will still require a workaround (unless you
already have a parallel timing track), but the workaround is much more
straightforward than currently.

-- 
David Kastrup

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


Re: Problem with Percent repeats

2015-07-05 Thread Joshua Nichols
See attached and also below.

\version 2.18.2

#(set-global-staff-size 17)

\paper {
  paper-height = 3.5\in
  paper-width = 6\in
  indent = 0\in
  right-margin = 0.5\in
  bottom-margin = 0.5\in
  top-margin = 0.5\in
  left-margin = 0.5\in
  ragged-bottom = ##f
  ragged-last = ##f

}

\header {
  tagline = ##f
}


cOn = {  }
cOff = {  }

timp = \relative a, {

\mark \markup { \box 189 }

  \time 5/16 a16\mf\[ r c r a]
  \time 4/16 c\! r r8
  \time 5/16 r8 r8.
  a16[ r c r a]
  r8 r8. \mark \markup { \box 190 }


 \repeat unfold 2  {
  \time 5/16  a16\[ r c r a]
  }
  \alternative {
{\time 4/16  c16\! r r8 }
{\time 4/16  c16\! r r8 \mark \markup { \box 191 } }
  }



  \time 5/16 a16\[ r c r a]
  \time 4/16 c\! r r8
  \time 3/8 a8 c4 \mark \markup { \box 192 }
  \time 5/16 a8. c8
  a8. c8
  \time 3/8 a4 c8 \mark \markup { \box 194 }
  \time 5/16 a8. c8
  \time 2/4 a c a[ c] \mark \markup { \box 195 }
  \time 5/16 a8. c8
  \time 3/8 a4 c8 \mark \markup { \box 196 }
  \time 5/16 a8. c8
  \time 3/8 a4 c8 \mark \markup { \box 197 }
  \time 7/16 a8. r8 c
  \time 2/4 a8 c a c \mark \markup { \box 198 }
  \time 5/16 a8. c8
  \time 2/4 a c a c \mark \markup { \box 199 }
  \repeat percent 3 {
a c a[ c]
  }
  a[ c] a r   \bar ||
}

\score {
  \new Staff \with { \clef F } {
\timp
  }
  \layout {
\context {
  \Score
  \omit BarNumber
  \omit TimeSignature
}
  }
}


IC,

Josh

On Sun, Jul 5, 2015 at 4:00 PM, David Kastrup d...@gnu.org wrote:

 Joshua Nichols josh.d.nich...@gmail.com writes:

  I've got this snippet:
 
  \repeat percent 2  {
\time 5/16  a16\[ r c r a] |
\time 4/16  c\! r r8
}
 
  and I'm having trouble getting it to show up with the percent correctly
  placed between the barlines.
 
  It also needs to be noted that I have \omit \TimeSignature in my
 \score{}.
 
  Any help would be appreciated! Thanks!

 How about putting together a working complete example with all the
 pertinent details?  That way you would be reasonably sure that any
 answer will actually apply to your use case.

 --
 David Kastrup



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


Re: Problem with Percent repeats

2015-07-05 Thread David Kastrup
Joshua Nichols josh.d.nich...@gmail.com writes:

 I absolutely sent the wrong example. This is my work around for right now,
 here below, and re-attached, is the example I'm having trouble with.

Ok, here's the deal: percent repeats don't work with changed time
signatures.  The problem is that a change in time signature is effected
by a context property change while typesetting, and the percent repeat
_iterator_ starts making decisions at the time it encounters the \repeat
percent which is earlier.

That's stupid.  It's also the same problem as issue 3693
URL:https://code.google.com/p/lilypond/issues/detail?id=3693.

-- 
David Kastrup

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


Re: Problem with Percent repeats

2015-07-05 Thread David Kastrup
David Kastrup d...@gnu.org writes:

 Joshua Nichols josh.d.nich...@gmail.com writes:

 I absolutely sent the wrong example. This is my work around for right now,
 here below, and re-attached, is the example I'm having trouble with.

 Ok, here's the deal: percent repeats don't work with changed time
 signatures.  The problem is that a change in time signature is effected
 by a context property change while typesetting, and the percent repeat
 _iterator_ starts making decisions at the time it encounters the \repeat
 percent which is earlier.

 That's stupid.  It's also the same problem as issue 3693
 URL:https://code.google.com/p/lilypond/issues/detail?id=3693.

It turns out that emulating the broken part is somewhat feasible.

 
  {
\time 5/16  a16\[ r c- r a]
\time 4/16  c16-\! r r8 \mark \markup { \box 191 }
  }
  \omit\time 9/32
  #(make-music 'DoublePercentEvent
'length (ly:make-moment 9/16))
  #(make-music 'DoublePercentEvent
'length (ly:make-moment 9/16))

There is a whole bunch wrong with that.  But the graphical output in
_this_ staff (others will likely need to have the time signature made
invisible as well) seems to be more or less what you want.  Maybe one
can play around in order to make the input correspond a bit better with
the logic.

-- 
David Kastrup

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


Problem with Percent repeats

2015-07-05 Thread Joshua Nichols
I've got this snippet:

\repeat percent 2  {
  \time 5/16  a16\[ r c r a] |
  \time 4/16  c\! r r8
  }

and I'm having trouble getting it to show up with the percent correctly
placed between the barlines.

It also needs to be noted that I have \omit \TimeSignature in my \score{}.

Any help would be appreciated! Thanks!

Sincerely,

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


Re: Problem with Percent repeats

2015-07-05 Thread David Kastrup
Joshua Nichols josh.d.nich...@gmail.com writes:

 I've got this snippet:

 \repeat percent 2  {
   \time 5/16  a16\[ r c r a] |
   \time 4/16  c\! r r8
   }

 and I'm having trouble getting it to show up with the percent correctly
 placed between the barlines.

 It also needs to be noted that I have \omit \TimeSignature in my \score{}.

 Any help would be appreciated! Thanks!

How about putting together a working complete example with all the
pertinent details?  That way you would be reasonably sure that any
answer will actually apply to your use case.

-- 
David Kastrup

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


Re: Problem with Percent repeats

2015-07-05 Thread Joshua Nichols
I absolutely sent the wrong example. This is my work around for right now,
here below, and re-attached, is the example I'm having trouble with.

\version 2.18.2

#(set-global-staff-size 17)

\paper {
  paper-height = 3.5\in
  paper-width = 6\in
  indent = 0\in
  right-margin = 0.5\in
  bottom-margin = 0.5\in
  top-margin = 0.5\in
  left-margin = 0.5\in
  ragged-bottom = ##f
  ragged-last = ##f

}

\header {
  tagline = ##f
}


cOn = {  }
cOff = {  }

timp = \relative a, {
  \override Script.direction = #UP

\mark \markup { \box 189 }

  \time 5/16 a16\mf\[ r c- r a-]
  \time 4/16 c-\! r r8
  \time 5/16 r8 r8.
  a16[ r c- r a]
  r8 r8. \mark \markup { \box 190 }


 \repeat percent 2  {
  \time 5/16  a16\[ r c- r a]
  \time 4/16  c16-\! r r8 \mark \markup { \box 191 }
  }



  \time 5/16 a16\[ r c- r a]
  \time 4/16 c-\! r r8
  \time 3/8 a8 c4 \mark \markup { \box 192 }
  \time 5/16 a8. c8
  a8. c8
  \time 3/8 a4 c8 \mark \markup { \box 194 }
  \time 5/16 a8. c8
  \time 2/4 a c a[ c] \mark \markup { \box 195 }
  \time 5/16 a8. c8
  \time 3/8 a4 c8 \mark \markup { \box 196 }
  \time 5/16 a8. c8
  \time 3/8 a4 c8 \mark \markup { \box 197 }
  \time 7/16 a8. r8 c
  \time 2/4 a8 c a c \mark \markup { \box 198 }
  \time 5/16 a8. c8
  \time 2/4 a c a c \mark \markup { \box 199 }
  \repeat percent 3 {
a c a[ c]
  }
  a[ c] a r   \bar ||
}

\score {
  \new Staff \with { \clef F } {
\timp
  }
  \layout {
\context {
  \Score
  \omit BarNumber
  \omit TimeSignature
}
  }
}


IC,

Josh

On Sun, Jul 5, 2015 at 4:11 PM, Joshua Nichols josh.d.nich...@gmail.com
wrote:

 See attached and also below.

 \version 2.18.2

 #(set-global-staff-size 17)

 \paper {
   paper-height = 3.5\in
   paper-width = 6\in
   indent = 0\in
   right-margin = 0.5\in
   bottom-margin = 0.5\in
   top-margin = 0.5\in
   left-margin = 0.5\in
   ragged-bottom = ##f
   ragged-last = ##f

 }

 \header {
   tagline = ##f
 }


 cOn = {  }
 cOff = {  }

 timp = \relative a, {

 \mark \markup { \box 189 }

   \time 5/16 a16\mf\[ r c r a]
   \time 4/16 c\! r r8
   \time 5/16 r8 r8.
   a16[ r c r a]
   r8 r8. \mark \markup { \box 190 }


  \repeat unfold 2  {
   \time 5/16  a16\[ r c r a]
   }
   \alternative {
 {\time 4/16  c16\! r r8 }
 {\time 4/16  c16\! r r8 \mark \markup { \box 191 } }
   }



   \time 5/16 a16\[ r c r a]
   \time 4/16 c\! r r8
   \time 3/8 a8 c4 \mark \markup { \box 192 }
   \time 5/16 a8. c8
   a8. c8
   \time 3/8 a4 c8 \mark \markup { \box 194 }
   \time 5/16 a8. c8
   \time 2/4 a c a[ c] \mark \markup { \box 195 }
   \time 5/16 a8. c8
   \time 3/8 a4 c8 \mark \markup { \box 196 }
   \time 5/16 a8. c8
   \time 3/8 a4 c8 \mark \markup { \box 197 }
   \time 7/16 a8. r8 c
   \time 2/4 a8 c a c \mark \markup { \box 198 }
   \time 5/16 a8. c8
   \time 2/4 a c a c \mark \markup { \box 199 }
   \repeat percent 3 {
 a c a[ c]
   }
   a[ c] a r   \bar ||
 }

 \score {
   \new Staff \with { \clef F } {
 \timp
   }
   \layout {
 \context {
   \Score
   \omit BarNumber
   \omit TimeSignature
 }
   }
 }


 IC,

 Josh

 On Sun, Jul 5, 2015 at 4:00 PM, David Kastrup d...@gnu.org wrote:

 Joshua Nichols josh.d.nich...@gmail.com writes:

  I've got this snippet:
 
  \repeat percent 2  {
\time 5/16  a16\[ r c r a] |
\time 4/16  c\! r r8
}
 
  and I'm having trouble getting it to show up with the percent correctly
  placed between the barlines.
 
  It also needs to be noted that I have \omit \TimeSignature in my
 \score{}.
 
  Any help would be appreciated! Thanks!

 How about putting together a working complete example with all the
 pertinent details?  That way you would be reasonably sure that any
 answer will actually apply to your use case.

 --
 David Kastrup





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


Re: Problem with Percent repeats

2015-07-05 Thread Joshua Nichols
Thank you for your speedy reply and candor. I appreciate this, as now I can
look forward to seeing improvements with an already stellar program and
tinker with the moment at the same time! Thanks again!

IC,

Josh

On Sun, Jul 5, 2015 at 5:26 PM, David Kastrup d...@gnu.org wrote:

 David Kastrup d...@gnu.org writes:

  Joshua Nichols josh.d.nich...@gmail.com writes:
 
  I absolutely sent the wrong example. This is my work around for right
 now,
  here below, and re-attached, is the example I'm having trouble with.
 
  Ok, here's the deal: percent repeats don't work with changed time
  signatures.  The problem is that a change in time signature is effected
  by a context property change while typesetting, and the percent repeat
  _iterator_ starts making decisions at the time it encounters the \repeat
  percent which is earlier.
 
  That's stupid.  It's also the same problem as issue 3693
  URL:https://code.google.com/p/lilypond/issues/detail?id=3693.

 It turns out that emulating the broken part is somewhat feasible.


   {
 \time 5/16  a16\[ r c- r a]
 \time 4/16  c16-\! r r8 \mark \markup { \box 191 }
   }
   \omit\time 9/32
   #(make-music 'DoublePercentEvent
 'length (ly:make-moment 9/16))
   #(make-music 'DoublePercentEvent
 'length (ly:make-moment 9/16))

 There is a whole bunch wrong with that.  But the graphical output in
 _this_ staff (others will likely need to have the time signature made
 invisible as well) seems to be more or less what you want.  Maybe one
 can play around in order to make the input correspond a bit better with
 the logic.

 --
 David Kastrup

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