Re: Simile/Percent Repeat + Volta with Alternative

2024-08-08 Thread Valentin Petzel
Hello Lukas,

the reason is that you are removing the time signature, but not the \after 4*5 
before that. \after is a function that takes 3 arguments: The last one is the 
actual music, the middle one is what you want to put there delayed and the 
first one is by how much you want to delay it.

So by removing the \time 5/4 this function will see only two possible 
arguments, but it needs 3.

The solution is of course to remove not only \time 5/4, but also the \after 
... part before.

Cheers,
Valentin

Am Mittwoch, 7. August 2024, 19:50:37 MESZ schrieb Lucas Cavalcanti:
> Valentin, my friend, thank you so much.
> If I may trouble you again, I've encountered a problem while trying to use
> your method. I've applied it to a 5/4 two bar theme (similar to the case I
> presented before); however, by removing the "superfluous" time signatures
> the engraving breaks. I'm trying to remove those unnecessary time
> signatures because they stand out.



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


Re: Simile/Percent Repeat + Volta with Alternative

2024-08-07 Thread Lucas Cavalcanti
Valentin, my friend, thank you so much.
If I may trouble you again, I've encountered a problem while trying to use
your method. I've applied it to a 5/4 two bar theme (similar to the case I
presented before); however, by removing the "superfluous" time signatures
the engraving breaks. I'm trying to remove those unnecessary time
signatures because they stand out.
[image: image.png]
\version "2.24.4"

makeDPercent =
#(define-music-function (duration) (ly:duration?)
   "Make a double percent repeat of given duration."
   (make-music 'DoublePercentEvent
   'length (ly:duration-length duration)))

music = {
\new TabStaff \with {
  \tabFullNotation}
  \relative { \time 5/4
  \repeat volta 4 {
  \repeat unfold 2 {c16 c d8\5 d\5} \repeat unfold 2 {c16 c d8\5}
  \repeat unfold 2 {c16 c d8\5 d\5} c16 c d8\5 4
  \alternative {
{\after 4*5
 \time 5/4 % if I remove this time signature the project won't
engrave.
 \makeDPercent 4*10 }
{\repeat unfold 2 {c16 c d8\5 d\5} \repeat unfold 2 {c16 c d8\5}
 2.~ 2}
  } % end alternative
  } % end ritornelo\volta
} % end relative
} % end variable

\score { \music }
%\score { \unfoldRepeats \music }

Best regards,
Lucas


Em qua., 7 de ago. de 2024 às 07:05, Valentin Petzel 
escreveu:

> Am Mittwoch, 7. August 2024, 06:53:02 MESZ schrieb Lucas Cavalcanti:
> > Hello. I'm migrating from Guitar Pro to Lilypond and I'm trying to
> > replicate something that I've always done in my scores and lead sheets:
> > [image: image.png]
> > I'm having a bit of a pickle while trying to recreate this score,
> > especially because of two factors:
> > 1. Lilypond's way of writing percent repeats.
> > 2. The frequent/periodical time signature changes (6/4 to 5/4).
> >
> > Is there a way to make a score that looks like this?
> >
> > Best regards,
> > Lucas
>
> Hello Lucas,
>
> first let’s write out your score:
>
> \new TabStaff \with {
>   \tabFullNotation
> } \relative {
>   \time 6/4
>   e,8 e e d'\5 e, e c' d\5 f d c d\5
>   \time 5/4
>   e, e e d'\5 e, e f' d f g\4
> }
>
> Now how do we get percent repeats? We can simply do \repeat percent count
> ...:
>
> \new TabStaff \with {
>   \tabFullNotation
> } \relative {
>   \repeat percent 2 {
> \time 6/4
> e,8 e e d'\5 e, e c' d\5 f d c d\5
> \time 5/4
> e, e e d'\5 e, e f' d f g\4
>   }
> }
>
> But note how this does not apply the time changes. So we need to specify
> them
> ourselves:
>
> \new TabStaff \with {
>   \tabFullNotation
> } \relative {
>   \after 4*11 \time 6/4
>   \after 4*17 \time 5/4
>   \repeat percent 2 {
> \time 6/4
> e,8 e e d'\5 e, e c' d\5 f d c d\5
> \time 5/4
> e, e e d'\5 e, e f' d f g\4
>   }
> }
>
> So how do we get repeats? In simple cases we can use \repeat volta count
> ...
> and \alternative for the voltas. Now here this is a bit complicated, as
> essentially the first alternative is actually a repeat.
>
> So instead of using \repeat percent we’ll need to manually place the
> Percent
> repeat signs:
>
> makeDPercent =
> #(define-music-function (duration) (ly:duration?)
>"Make a double percent repeat of given duration."
>(make-music 'DoublePercentEvent
>'length (ly:duration-length duration)))
>
> \new TabStaff \with {
>   \tabFullNotation
> } \relative {
>   \repeat volta 4 {
> \time 6/4
> e,8 e e d'\5 e, e c' d\5 f d c d\5 |
> \time 5/4
> e, e e d'\5 e, e f' d f g\4 |
> \alternative {
>   {
> \time 6/4
> \after 1. \time 5/4
> \makeDPercent 4*11
>   }
>   {
> \time 6/4
> e, e e d'\5 e, e c' d\5 f d c d\5~ |
> \time 5/4
> d1*5/4\5
>   }
> }
>   }
>   \section
> }
>
> Cheers,
> Valentin


Re: Simile/Percent Repeat + Volta with Alternative

2024-08-07 Thread Valentin Petzel
Am Mittwoch, 7. August 2024, 06:53:02 MESZ schrieb Lucas Cavalcanti:
> Hello. I'm migrating from Guitar Pro to Lilypond and I'm trying to
> replicate something that I've always done in my scores and lead sheets:
> [image: image.png]
> I'm having a bit of a pickle while trying to recreate this score,
> especially because of two factors:
> 1. Lilypond's way of writing percent repeats.
> 2. The frequent/periodical time signature changes (6/4 to 5/4).
> 
> Is there a way to make a score that looks like this?
> 
> Best regards,
> Lucas

Hello Lucas,

first let’s write out your score:

\new TabStaff \with {
  \tabFullNotation
} \relative {
  \time 6/4
  e,8 e e d'\5 e, e c' d\5 f d c d\5
  \time 5/4
  e, e e d'\5 e, e f' d f g\4
}

Now how do we get percent repeats? We can simply do \repeat percent count ...:

\new TabStaff \with {
  \tabFullNotation
} \relative {
  \repeat percent 2 {
\time 6/4
e,8 e e d'\5 e, e c' d\5 f d c d\5
\time 5/4
e, e e d'\5 e, e f' d f g\4
  }
}

But note how this does not apply the time changes. So we need to specify them 
ourselves:

\new TabStaff \with {
  \tabFullNotation
} \relative {
  \after 4*11 \time 6/4
  \after 4*17 \time 5/4
  \repeat percent 2 {
\time 6/4
e,8 e e d'\5 e, e c' d\5 f d c d\5
\time 5/4
e, e e d'\5 e, e f' d f g\4
  }
}

So how do we get repeats? In simple cases we can use \repeat volta count ... 
and \alternative for the voltas. Now here this is a bit complicated, as 
essentially the first alternative is actually a repeat.

So instead of using \repeat percent we’ll need to manually place the Percent 
repeat signs:

makeDPercent =
#(define-music-function (duration) (ly:duration?)
   "Make a double percent repeat of given duration."
   (make-music 'DoublePercentEvent
   'length (ly:duration-length duration)))

\new TabStaff \with {
  \tabFullNotation
} \relative {
  \repeat volta 4 {
\time 6/4
e,8 e e d'\5 e, e c' d\5 f d c d\5 |
\time 5/4
e, e e d'\5 e, e f' d f g\4 |
\alternative {
  {
\time 6/4
\after 1. \time 5/4
\makeDPercent 4*11
  }
  {
\time 6/4
e, e e d'\5 e, e c' d\5 f d c d\5~ |
\time 5/4
d1*5/4\5
  }
}
  }
  \section
}

Cheers,
Valentin

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


Simile/Percent Repeat + Volta with Alternative

2024-08-06 Thread Lucas Cavalcanti
Hello. I'm migrating from Guitar Pro to Lilypond and I'm trying to
replicate something that I've always done in my scores and lead sheets:
[image: image.png]
I'm having a bit of a pickle while trying to recreate this score,
especially because of two factors:
1. Lilypond's way of writing percent repeats.
2. The frequent/periodical time signature changes (6/4 to 5/4).

Is there a way to make a score that looks like this?

Best regards,
Lucas
\version "2.24.4"

guitar = { \new Staff \relative c '{
%section's theme. this would be the fixed musical expression
%before the alternative.
\time 1,1,1,1,1,1 6/4 d8 d d d' d, d c' d f d c d
\time 5/4 d,8 d d d' d, d f' d f g
%volta 4 of the alternative would begin here:
\time 1,1,1,1,1,1 6/4 d,8 d d d' d, d c' d f d c d~
\time 5/4 d2.~ d2
} }

\score { \guitar }

Re: Four bar percent repeat mark?

2023-09-22 Thread Jean Abou Samra


> Le 22 sept. 2023 à 15:51, Dr. Thomas Tensi  a écrit :
> 
> Any ideas whether this shall be put on the official lilypond
> "change request" list?



It's already there. See https://gitlab.com/lilypond/lilypond/-/issues/3146

Four bar percent repeat mark?

2023-09-22 Thread Dr. Thomas Tensi

Dear all,


about 15 years ago there has been a question on (or "request
for") a four bar percent repeat mark.

As far as I see this has not yet been implemented in Lilypond
possibly due to lack of user interest.  Nevertheless note that
this seems to be a common notation especially in a jazz or pop
arranger context, since it shortens and simplifies arrangements
considerably.

E.g. Steinberg Dorico can do that as can be seen on their
web page:
https://steinberg.help/dorico/v2/en/dorico/topics/notation_reference/notation_reference_bar_repeats_c.html

Any ideas whether this shall be put on the official lilypond
"change request" list?


Best regards,

Thomas



percent repeat issue

2021-04-23 Thread Vaylor Trucks
I'm seeing an issue if I change time signatures during a percent repeat.

Let's start with a 3 bar snare drum phrase

\version "2.22.0"
snareline = \drummode
{
  \time 3/8 sn8[ sn sn]
  \time 2/4 sn8[ sn sn sn]
  \time 4/4 sn8[ sn sn sn] sn[ sn sn sn]
}
\score
{ << \new DrumStaff << \snareline >> >> }

If I decide to do a percent repeat of the first 2 bars, Lilypond returns an
error

\version "2.22.0"
snareline = \drummode
{
  \repeat percent 2 {
  \time 3/8 sn8[ sn sn]
  \time 2/4 sn8[ sn sn sn]  }
  \time 4/4 sn8[ sn sn sn] sn[ sn sn sn]
}
\score
{ << \new DrumStaff << \snareline >> >> }

At the beginning of the 4/4 bar, I get

warning: mid-measure time signature without \partial


If I make the two bars into one 7/8 bar there's no issue.


Re: Percent repeat signs do not scale correctly with magnifyStaff

2021-04-17 Thread Peter Crighton
On Sat, 17 Apr 2021 at 08:22, Jean Abou Samra  wrote:

>
> Le 16/04/2021 à 23:19, Peter Crighton a écrit :
> > when using \magnifyStaff it seems as though the dots of a percent
> > repeat sign will scale accordingly, but not the slash. I cannot
> > imagine this is expected behaviour.
> >
> > \version "2.23.2"
> > {
> >   \magnifyStaff 0.5
> >   \repeat percent 2 {
> > c'1
> >   }
> > }
> >
> > I also could not find any method to manually override the slash size.
> > Any ideas?
>
> This definitely looks like a bug. Please file an issue on GitLab at
> https://gitlab.com/lilypond/lilypond/-/issues.
>
> As a workaround, override PercentRepeat.thickness:
>
> \version "2.22.0"
>
> {
>\magnifyStaff 0.5
>\override PercentRepeat.thickness = 0.25
>\override DoublePercentRepeat.thickness = 0.25
>\repeat percent 2 { c'1 }
> }
>

I filed a bug report.
The workaround, however, is not really sufficient as it only thins the
slash, but it needs to be reduced in height as well. It should only cover
the two middle staff-spaces.

--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de


Re: Percent repeat signs do not scale correctly with magnifyStaff

2021-04-17 Thread Jean Abou Samra



Le 16/04/2021 à 23:19, Peter Crighton a écrit :

Hello all,

when using \magnifyStaff it seems as though the dots of a percent 
repeat sign will scale accordingly, but not the slash. I cannot 
imagine this is expected behaviour.


\version "2.23.2"
{
  \magnifyStaff 0.5
  \repeat percent 2 {
    c'1
  }
}

I also could not find any method to manually override the slash size. 
Any ideas?


Thanks,
Peter


Hi,

This definitely looks like a bug. Please file an issue on GitLab at 
https://gitlab.com/lilypond/lilypond/-/issues.


As a workaround, override PercentRepeat.thickness:

\version "2.22.0"

{
  \magnifyStaff 0.5
  \override PercentRepeat.thickness = 0.25
  \override DoublePercentRepeat.thickness = 0.25
  \repeat percent 2 { c'1 }
}

Best,
Jean




Percent repeat signs do not scale correctly with magnifyStaff

2021-04-16 Thread Peter Crighton
Hello all,

when using \magnifyStaff it seems as though the dots of a percent repeat
sign will scale accordingly, but not the slash. I cannot imagine this is
expected behaviour.

\version "2.23.2"
{
  \magnifyStaff 0.5
  \repeat percent 2 {
c'1
  }
}

I also could not find any method to manually override the slash size. Any
ideas?

Thanks,
Peter

--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de


Percent repeat counter starting at 1

2020-10-31 Thread David Sumbler
By default the percent repeat counter does not put a "1" over the bar
which is to be repeated; it starts with a "2" over the first actual
repetition.

This is what is normally required, but for clarity in one particular
instance I would like the repeat counter to put a "1" over the bar
which is going to be repeated.

Is there a simple way of telling the repeat counter to do this?  If
not, it is not too difficult to fake it, of course.  But if the
facility to change the counter's behaviour is already available in
Lilypond, then that will no doubt be the simplest solution for me to
use.

David




Re: Typesetting tweak with percent repeat

2018-04-25 Thread Evan Driscoll
On Wed, Apr 25, 2018 at 5:49 PM, Aaron Hill <lilyp...@hillvisions.com>
wrote:

> There is a simple workaround, however, which is to attach the articulation
> to an empty chord before the percent repeat:
>

Brilliant!



> The resulting alignment might not be to your taste, as the articulation
> ends up positioned towards the left side of the measure, not centered above
> the percent symbol.


Edward's idea here is also great, but in context the bias towards the left
side of the bar actually works better.

Thanks to both of you,
Evan
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Typesetting tweak with percent repeat

2018-04-25 Thread Edward Neeman
... and rereading your post, Aaron, I see you explain exactly why adding the 
Articulation event doesn’t work. Sorry for the noise.
---
Dr. Edward Neeman
www.neemanpianoduo.com



> On 26 Apr 2018, at 10:26 am, Edward Neeman <edward.nee...@gmail.com> wrote:
> 
> Interesting that your first idea doesn’t work as expected Aaron! I also 
> wonder why.
> 
> I would suggest a slight tweak of the workaround, using a multi measure rest 
> to center the up bow:
> 
> \version "2.18.2"
> makePercent =
> #(define-music-function (parser location note) (ly:music?)
>   "Make a percent repeat the same length as NOTE."
>   (make-music 'PercentEvent
>   'length (ly:music-length note)))
> cello = \relative c {
>   a4(\downbow b c d) |
>   << \makePercent s1 { \once \hide MultiMeasureRest R1 ^\markup { \musicglyph 
> #"scripts.upbow" } } >> \bar "||"
> }
> \score {
>  \new Staff \with {
>  } { \clef bass \cello }
> }
> 
> Though perhaps unnecessarily complicated, depending on how many percent signs 
> you need to “fix”.
> 
> Best,
> Edward
> ---
> Dr. Edward Neeman
> www.neemanpianoduo.com
> 
> 


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


Re: Typesetting tweak with percent repeat

2018-04-25 Thread Edward Neeman
Interesting that your first idea doesn’t work as expected Aaron! I also wonder 
why.

I would suggest a slight tweak of the workaround, using a multi measure rest to 
center the up bow:

\version "2.18.2"
makePercent =
#(define-music-function (parser location note) (ly:music?)
   "Make a percent repeat the same length as NOTE."
   (make-music 'PercentEvent
   'length (ly:music-length note)))
cello = \relative c {
   a4(\downbow b c d) |
   << \makePercent s1 { \once \hide MultiMeasureRest R1 ^\markup { \musicglyph 
#"scripts.upbow" } } >> \bar "||"
 }
\score {
  \new Staff \with {
  } { \clef bass \cello }
}

Though perhaps unnecessarily complicated, depending on how many percent signs 
you need to “fix”.

Best,
Edward
---
Dr. Edward Neeman
www.neemanpianoduo.com



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


Re: Typesetting tweak with percent repeat

2018-04-25 Thread Aaron Hill

On 2018-04-24 20:19, Evan Driscoll wrote:
For example, in the document below, I'd like an upbow over the percent 
in

measure 2. How can I get that? The \upbow on the s1 that's in there now
doesn't work.

Thanks,
Evan


From what I can tell, there are at least two issues you are fighting.

Firstly, adding \upbow to the spacer does not result in the articulation 
being applied to the PercentEvent.  All the \makePercent music function 
does is use ly:music-length to measure the length of the music 
expression supplied.  None of the content within that music is 
displayed.


Secondly, the documentation does mention that a PercentEvent consists 
only of the percent symbol stencil itself.  The following theoretically 
could add the desired articulation, but as expected nothing else prints:


%%
  (make-music 'PercentEvent
'length (ly:music-length note)
'articulations (list
  (make-music 'ArticulationEvent 'articulation-type "upbow")))
%%

There is a simple workaround, however, which is to attach the 
articulation to an empty chord before the percent repeat:


%%
  cello = \relative c {
a4(\downbow b c d) |
<>\upbow \makePercent s1 \bar "||"
  }
%%

The resulting alignment might not be to your taste, as the articulation 
ends up positioned towards the left side of the measure, not centered 
above the percent symbol.  But you should be able to tweak that manually 
as desired:


%%
  <>-\tweak X-offset #1.5 \upbow
%%

-- Aaron Hill

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


Typesetting tweak with percent repeat

2018-04-25 Thread Evan Driscoll
Suppose I have a percent repeat. I'd like to place a bowing mark above it.
(I realize this isn't strictly "correct" perhaps.) Is there a way to do
that? My guess to the most promising approach is to use the \makePercent
isolated repeat from
http://lilypond.org/doc/v2.19/Documentation/notation/short-repeats, but I
don't know how to get it to work.

For example, in the document below, I'd like an upbow over the percent in
measure 2. How can I get that? The \upbow on the s1 that's in there now
doesn't work.

Thanks,
Evan


\version "2.18.2"

makePercent =

#(define-music-function (parser location note) (ly:music?)

"Make a percent repeat the same length as NOTE."

(make-music 'PercentEvent

'length (ly:music-length note)))

cello = \relative c {

a4(\downbow b c d) |

\makePercent s1\upbow \bar "||"

}

\score {

\new Staff \with {

} { \clef bass \cello }

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


Re: 4 slashes in percent repeat

2016-04-04 Thread Marc Hohl

Hi Daniel,

Am 04.04.2016 um 07:07 schrieb Daniel E. Moctezuma:

Thanks for your reply.

The samples from http://lsr.di.unimi.it/LSR/Item?id=954 look nice for solo 
pieces, but my use case is for multiple instruments.
Imagine a rock band where the bass has 4 bars that will be repeated, but the 
rest of the instruments don't have repetitive bars. I've have seen this usage 
in rock songs for instance.


I see.


I understand the issue of having 2 empty bars and it seems like having a number 
above the percent repeat helps.
Example: https://musescore.org/sites/musescore.org/files/finale%20four-bar.jpg


I like the last one! With help of the thicker lines trough the otherwise 
empty bars, it is visually clear which bars belong together.


I am sure that this is doable in lilypond, but this scheme wizardry is 
way over my head ...


Marc


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


Re: 4 slashes in percent repeat

2016-04-03 Thread Daniel E. Moctezuma
Thanks for your reply. 

The samples from http://lsr.di.unimi.it/LSR/Item?id=954 look nice for solo 
pieces, but my use case is for multiple instruments. 
Imagine a rock band where the bass has 4 bars that will be repeated, but the 
rest of the instruments don't have repetitive bars. I've have seen this usage 
in rock songs for instance. 

I understand the issue of having 2 empty bars and it seems like having a number 
above the percent repeat helps. 
Example: https://musescore.org/sites/musescore.org/files/finale%20four-bar.jpg

I've found a workaround for this here: 
https://music.stackexchange.com/questions/11084/multi-measure-percent-repeats-in-lilypond

it uses a simple ./. symbol but can be changed to a .//. by changing:
'PercentEvent   to   'DoublePercentEvent

still, 4 slashes would be nice. 

the default lilypond output was having the percent repeat symbol at the 
beginning of the 4 bar set and the remaining bars empty.

is there a standardized approach for a 4 bar set repeat? (for a multi 
instrument piece) 

Best regards 

On April 4, 2016 3:10:19 AM GMT+09:00, Marc Hohl <m...@hohlart.de> wrote:
>Am 03.04.2016 um 15:36 schrieb Thomas Morley:
>> 2016-04-02 19:47 GMT+02:00 Daniel E. Moctezuma
>> <democtez...@gmail.com>:
>>> Hello
>>>
>>> I was wondering if it's possible to have a percent repeat with 4
>>> slashes in LilyPond. Like an \override setting or similar. My use
>>> case is when a set of 4 bars repeats n times, like: \repeat percent
>>> 4 { c1 | d | e | f | }
>>>
>>> the most I can get is a double percent symbol .//. is there a way
>>> to have .. ?
>
>I remember vaguely that this issue has been discussed some years ago.
>
>The problem I see here is that you have two completely empty bars:
>
>|  | .//|//.|   |
>
>So it is not easy at first glance to understand what's going on here.
>
>I use this abbreviation for my handwritten manuscripts, but here I draw
>the slashes wide and slanted enough to cover all four bars.
>
>These comments aside, it looks as if the underlying C++ routines could
>indeed handle more than 2 slashes, but there is no way to call that
>routine directly IIUC.
>
>>>
>>> Best regards
>>
>>
>>
>> Apart from manually tweaking, I see no reasonable chance. But how
>> about: http://lsr.di.unimi.it/LSR/Item?id=954
>
>Looks promising and easy to read.
>
>Marc
>
>
>___
>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: 4 slashes in percent repeat

2016-04-03 Thread Marc Hohl

Am 03.04.2016 um 15:36 schrieb Thomas Morley:

2016-04-02 19:47 GMT+02:00 Daniel E. Moctezuma
<democtez...@gmail.com>:

Hello

I was wondering if it's possible to have a percent repeat with 4
slashes in LilyPond. Like an \override setting or similar. My use
case is when a set of 4 bars repeats n times, like: \repeat percent
4 { c1 | d | e | f | }

the most I can get is a double percent symbol .//. is there a way
to have .. ?


I remember vaguely that this issue has been discussed some years ago.

The problem I see here is that you have two completely empty bars:

|  | .//|//.|   |

So it is not easy at first glance to understand what's going on here.

I use this abbreviation for my handwritten manuscripts, but here I draw
the slashes wide and slanted enough to cover all four bars.

These comments aside, it looks as if the underlying C++ routines could
indeed handle more than 2 slashes, but there is no way to call that
routine directly IIUC.



Best regards




Apart from manually tweaking, I see no reasonable chance. But how
about: http://lsr.di.unimi.it/LSR/Item?id=954


Looks promising and easy to read.

Marc


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


Re: 4 slashes in percent repeat

2016-04-03 Thread Thomas Morley
2016-04-02 19:47 GMT+02:00 Daniel E. Moctezuma <democtez...@gmail.com>:
> Hello
>
> I was wondering if it's possible to have a percent repeat with 4 slashes in 
> LilyPond.
> Like an \override setting or similar.
> My use case is when a set of 4 bars repeats n times, like:
> \repeat percent 4 { c1 | d | e | f | }
>
> the most I can get is a double percent symbol .//.
> is there a way to have .. ?
>
> Best regards



Apart from manually tweaking, I see no reasonable chance.
But how about:
http://lsr.di.unimi.it/LSR/Item?id=954

Cheers,
  Harm

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


4 slashes in percent repeat

2016-04-02 Thread Daniel E. Moctezuma
Hello 

I was wondering if it's possible to have a percent repeat with 4 slashes in 
LilyPond. 
Like an \override setting or similar. 
My use case is when a set of 4 bars repeats n times, like:
\repeat percent 4 { c1 | d | e | f | } 

the most I can get is a double percent symbol .//.
is there a way to have .. ? 

Best regards 

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


Re: Percent repeat counter in Staff with ChordNames

2015-12-30 Thread Robert Schmaus

Hi David,

as you pointed out a week ago, this works fine:

\version "2.19.18"

\score {

  \new Staff
  \with {
\accepts "ChordNames"
\consists Percent_repeat_engraver
  } {
% some written out music
c''4 c'' c'' c''

% switch to changes
\chords {
  \set Staff.countPercentRepeats = ##t
  \set Staff.repeatCountVisibility = 
#(every-nth-repeat-count-visible 4)

  \repeat percent 8 { c1 : maj7 }
}
  }
}


It stops working however, if I go from 2.19.18 to 2.19.34. Feature or bug?

Best, Robert



Am 23/12/15 um 21:03 schrieb David Kastrup:

Robert Schmaus <robert.schm...@web.de> writes:


Dear Lilyponders,

I have the following problem: Within a staff of "normal" written
music, I include chord names to indicate improvised/soloing
passages. If a chord is repeated over a large-ish number of bars, I'd
like to use percent repeats and possibly the counter, too.
But I can't get the counter to work:

%%%

\version "2.19.18"

\score {

   \new Staff
   \with {
 \accepts "ChordNames"
 \consists Percent_repeat_engraver
   } {
 % some written out music
 c''4 c'' c'' c''

 % switch to changes
 \chords {
   \set countPercentRepeats = ##t
   \set repeatCountVisibility = #(every-nth-repeat-count-visible 4)
   \repeat percent 8 { c1 : maj7 }
 }
   }
}

%%%%%%%%

Everything works fine except the Percent Repeat Counter. If I switch
from \chords { ... } to \chordmode { ... }, the counter works, but I
no longer get ChordNames but stacked notes.

Is something missing from the \with { ... } statement?


No, from the \set statements.  They are setting countPercentRepeats and
repeatCountVisibility in the Bottom context while the engraver actually
looking at them is in Staff context and consequently queries the
properties at Staff level which are unfazed by changes at Bottom.

So you need to write

\set Staff.countPercentRepeats = ...

and similar.



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


Re: Percent repeat counter in Staff with ChordNames

2015-12-30 Thread Robert Schmaus



Am 30/12/15 um 20:35 schrieb David Kastrup:

Robert Schmaus  writes:


Hi David,

as you pointed out a week ago, this works fine:

\version "2.19.18"

\score {

   \new Staff
   \with {
 \accepts "ChordNames"
 \consists Percent_repeat_engraver
   } {
 % some written out music
 c''4 c'' c'' c''

 % switch to changes
 \chords {
   \set Staff.countPercentRepeats = ##t
   \set Staff.repeatCountVisibility =
#(every-nth-repeat-count-visible 4)
   \repeat percent 8 { c1 : maj7 }
 }
   }
}


It stops working however, if I go from 2.19.18 to 2.19.34.


How so?



The repeat-counter is no longer visible in 2.19.34.
Frescobaldi let's me keep several Lily versions and chooses the right 
one from the \version statement. So, if I change the version statement 
to 2.19.34, the percent count simply disappears ..



Fwiw, I'm using lilypond on Mac OS 10.9.5.


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


Re: Percent repeat counter in Staff with ChordNames

2015-12-30 Thread David Kastrup
Robert Schmaus  writes:

> Hi David,
>
> as you pointed out a week ago, this works fine:
>
> \version "2.19.18"
>
> \score {
>
>   \new Staff
>   \with {
> \accepts "ChordNames"
> \consists Percent_repeat_engraver
>   } {
> % some written out music
> c''4 c'' c'' c''
>
> % switch to changes
> \chords {
>   \set Staff.countPercentRepeats = ##t
>   \set Staff.repeatCountVisibility =
> #(every-nth-repeat-count-visible 4)
>   \repeat percent 8 { c1 : maj7 }
> }
>   }
> }
>
>
> It stops working however, if I go from 2.19.18 to 2.19.34.

How so?

-- 
David Kastrup

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


Percent repeat counter in Staff with ChordNames

2015-12-23 Thread Robert Schmaus

Dear Lilyponders,

I have the following problem: Within a staff of "normal" written music, 
I include chord names to indicate improvised/soloing passages. If a 
chord is repeated over a large-ish number of bars, I'd like to use 
percent repeats and possibly the counter, too.

But I can't get the counter to work:

%%%

\version "2.19.18"

\score {

  \new Staff
  \with {
\accepts "ChordNames"
\consists Percent_repeat_engraver
  } {
% some written out music
c''4 c'' c'' c''

% switch to changes
\chords {
  \set countPercentRepeats = ##t
  \set repeatCountVisibility = #(every-nth-repeat-count-visible 4)
  \repeat percent 8 { c1 : maj7 }
}
  }
}



Everything works fine except the Percent Repeat Counter. If I switch 
from \chords { ... } to \chordmode { ... }, the counter works, but I no 
longer get ChordNames but stacked notes.


Is something missing from the \with { ... } statement?

Any help appreciated!
Peaceful days to everyone,
Robert

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


Re: Percent repeat counter in Staff with ChordNames

2015-12-23 Thread David Kastrup
Robert Schmaus <robert.schm...@web.de> writes:

> Dear Lilyponders,
>
> I have the following problem: Within a staff of "normal" written
> music, I include chord names to indicate improvised/soloing
> passages. If a chord is repeated over a large-ish number of bars, I'd
> like to use percent repeats and possibly the counter, too.
> But I can't get the counter to work:
>
> %%%
>
> \version "2.19.18"
>
> \score {
>
>   \new Staff
>   \with {
> \accepts "ChordNames"
> \consists Percent_repeat_engraver
>   } {
> % some written out music
> c''4 c'' c'' c''
>
> % switch to changes
> \chords {
>   \set countPercentRepeats = ##t
>   \set repeatCountVisibility = #(every-nth-repeat-count-visible 4)
>   \repeat percent 8 { c1 : maj7 }
> }
>   }
> }
>
> 
>
> Everything works fine except the Percent Repeat Counter. If I switch
> from \chords { ... } to \chordmode { ... }, the counter works, but I
> no longer get ChordNames but stacked notes.
>
> Is something missing from the \with { ... } statement?

No, from the \set statements.  They are setting countPercentRepeats and
repeatCountVisibility in the Bottom context while the engraver actually
looking at them is in Staff context and consequently queries the
properties at Staff level which are unfazed by changes at Bottom.

So you need to write

   \set Staff.countPercentRepeats = ...

and similar.

-- 
David Kastrup

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


Re: Percent repeat counter in Staff with ChordNames

2015-12-23 Thread Robert Schmaus

That works just perfectly - thanks very much!
Best, Robert 



> On 23 Dec 2015, at 21:03, David Kastrup <d...@gnu.org> wrote:
> 
> Robert Schmaus <robert.schm...@web.de> writes:
> 
>> Dear Lilyponders,
>> 
>> I have the following problem: Within a staff of "normal" written
>> music, I include chord names to indicate improvised/soloing
>> passages. If a chord is repeated over a large-ish number of bars, I'd
>> like to use percent repeats and possibly the counter, too.
>> But I can't get the counter to work:
>> 
>> %%%
>> 
>> \version "2.19.18"
>> 
>> \score {
>> 
>>  \new Staff
>>  \with {
>>\accepts "ChordNames"
>>\consists Percent_repeat_engraver
>>  } {
>>% some written out music
>>c''4 c'' c'' c''
>> 
>>% switch to changes
>>\chords {
>>  \set countPercentRepeats = ##t
>>  \set repeatCountVisibility = #(every-nth-repeat-count-visible 4)
>>  \repeat percent 8 { c1 : maj7 }
>>}
>>  }
>> }
>> 
>> 
>> 
>> Everything works fine except the Percent Repeat Counter. If I switch
>> from \chords { ... } to \chordmode { ... }, the counter works, but I
>> no longer get ChordNames but stacked notes.
>> 
>> Is something missing from the \with { ... } statement?
> 
> No, from the \set statements.  They are setting countPercentRepeats and
> repeatCountVisibility in the Bottom context while the engraver actually
> looking at them is in Staff context and consequently queries the
> properties at Staff level which are unfazed by changes at Bottom.
> 
> So you need to write
> 
>   \set Staff.countPercentRepeats = ...
> 
> and similar.
> 
> -- 
> David Kastrup

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


Re: Print Double Percent Repeat inside a markup

2015-08-30 Thread Caio Giovaneti de Barros



On 29-08-2015 21:56, Thomas Morley wrote:
If you want to stick to LilyPond's markup-commands, I'd suggest to 
split construction into steps otherwise it's confusing.

Awesome!

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


Re: Print Double Percent Repeat inside a markup

2015-08-29 Thread Caio Giovaneti de Barros

Thanks guys!

On 28-08-2015 15:26, tisimst wrote:

On 8/28/2015 12:18 PM, Stephen MacNeil [via Lilypond] wrote:

 how is


Nice! That looks like a good one, too! Isn't it great to have this kind
of flexibility? I love it!

- Abraham
I'm tinkering here with Stephen's code to try to draw the second beam. 
Just because it seems easier to me to understand this them Abraham's (I 
have 0 experience with postscript). I'll be back working in the edition 
again by Monday and decide which solution I'll take. I appreciate your 
help very very much!


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


Re: Print Double Percent Repeat inside a markup

2015-08-29 Thread Thomas Morley
2015-08-30 2:16 GMT+02:00 Caio Giovaneti de Barros caio.bar...@gmail.com:
 Thanks guys!

 On 28-08-2015 15:26, tisimst wrote:

 On 8/28/2015 12:18 PM, Stephen MacNeil [via Lilypond] wrote:

  how is


 Nice! That looks like a good one, too! Isn't it great to have this kind
 of flexibility? I love it!

 - Abraham

 I'm tinkering here with Stephen's code to try to draw the second beam. Just
 because it seems easier to me to understand this them Abraham's (I have 0
 experience with postscript). I'll be back working in the edition again by
 Monday and decide which solution I'll take. I appreciate your help very very
 much!

Well, I don't like postscript-code as well.
Although, you can do a lot with it ;)

If you want to stick to LilyPond's markup-commands, I'd suggest to
split construction into steps otherwise it's confusing.

I'd first define a circle and a beam:

crcle = \markup \draw-circle #0.22 #0 ##t
bm = \markup \rotate #90 \beam #2 #-1 #0.58

Now you can reuse them. All left to do is combining them with
appropiate translating values.

Here let me introduce a custom markup-command `combine-list'.

#(define-markup-command (combine-list layout props args)
  (markup-list?)
  #:category align
  Takes a list of markups combining them.
@lilypond[verbatim,quote]
\\markup \\combine-list \\vcenter \\center-align { + o X }
@end lilypond
  (apply ly:stencil-add
(map (lambda (e) (interpret-markup layout props e)) args)))


(I always think we miss this command, but I seem to never find the
time to put up a patch, maybe tomorrow...)

Now it's pretty much straight-forward.

Complete example:


#(define-markup-command (combine-list layout props args)
  (markup-list?)
  #:category align
  Takes a list of markups combining them.
@lilypond[verbatim,quote]
\\markup \\combine-list \\vcenter \\center-align { + o X }
@end lilypond
  (apply ly:stencil-add
(map (lambda (e) (interpret-markup layout props e)) args)))

crcle = \markup \draw-circle #0.22 #0 ##t
bm = \markup \rotate #90 \beam #2 #-1 #0.58


percentRepeat =
\markup \combine-list {
  \translate #'(0.2 . 1.5) \crcle
  \translate #'(1.8 . 0.5) \crcle
  \translate#'(0 . 2) \bm
}

doublePercentRepeat =
\markup \combine-list {
  \translate #'(0.2 . 1.5) \crcle
  \translate #'(2.8 . 0.5) \crcle
  \translate#'(0 . 2) \bm
  \translate#'(1 . 2) \bm
}

\percentRepeat
\doublePercentRepeat

HTH,
  Harm

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


Print Double Percent Repeat inside a markup

2015-08-28 Thread Caio Giovaneti de Barros

Hello!

I want to print a double percent repeat inside a markup so I can use it 
as a graphic in a footnote. How can I do that?


I read in the manual - 
lilypond.org/doc/v2.19/Documentation/notation/short-repeats  under 
/Isolated percent repeats /- that it is possible to print a single 
percent as a note but that doesn't seems to help.


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


Re: Print Double Percent Repeat inside a markup

2015-08-28 Thread tisimst
Caio,

On 8/28/2015 9:14 AM, Caio Barros [via Lilypond] wrote:
 Hello!

 I want to print a double percent repeat inside a markup so I can use 
 it as a graphic in a footnote. How can I do that?

 I read in the manual - 
 lilypond.org/doc/v2.19/Documentation/notation/short-repeats  under 
 /Isolated percent repeats /- that it is possible to print a single 
 percent as a note but that doesn't seems to help.

 any hints?

Try this one out (solutions for single and double percent repeat symbols):



percentRepeat = \markup {
   \lower #0.05
   \with-dimensions #'(-0.25 . 2.25) #'(0 . 1.6)
   \postscript #
   % left slash
   0.25 setlinewidth
   0 0 newpath moveto
   1.65 1.6 lineto
   2 1.6 lineto
   0.35 0 lineto
   closepath
   gsave
   0 setgray fill
   grestore
   stroke

   % left dot
   0.3 1.3 0.23 0 360 arc closepath
   0 setgray fill

   % right dot
   1.95 0.3 0.23 0 360 arc closepath
   0 setgray fill
}

doublePercentRepeat = \markup {
   \lower #0.05
   \with-dimensions #'(-0.25 . 3.3) #'(0 . 1.6)
   \postscript #
   % left slash
   0.25 setlinewidth
   0 0 newpath moveto
   1.65 1.6 lineto
   2 1.6 lineto
   0.35 0 lineto
   closepath
   gsave
   0 setgray fill
   grestore
   stroke

   % right slash
   0.25 setlinewidth
   1.05 0 newpath moveto
   2.7 1.6 lineto
   3.05 1.6 lineto
   1.4 0 lineto
   closepath
   gsave
   0 setgray fill
   grestore
   stroke

   % left dot
   0.3 1.3 0.23 0 360 arc closepath
   0 setgray fill

   % right dot
   3 0.3 0.23 0 360 arc closepath
   0 setgray fill
}

\markup { The OE is missing \percentRepeat and \doublePercentRepeat 
symbols. }



The result:



I tried some other things using a \score block within a \markup, but 
they just kept throwing programming errors (and logically so). If 
anyone is interested in seeing them, I'll gladly share, but using the 
above code is probably the best option what you need.

- Abraham


hhfifbce.png (5K) 
http://lilypond.1069038.n5.nabble.com/attachment/180317/0/hhfifbce.png




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Print-Double-Percent-Repeat-inside-a-markup-tp180309p180317.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


Print Double Percent Repeat inside a markup

2015-08-28 Thread Stephen MacNeil
how is



% inspired by: http://lsr.di.unimi.it/LSR/Item?id=908




\version 2.18.2


percentRepeat = \markup {

\combine

\translate #'(0.2 . 1.5)

\draw-circle #0.22 #0 ##t

\combine

\translate #'(1.8 . 0.5)

\draw-circle #0.22 #0 ##t

\rotate #90

\translate#'(0 . 2)

\beam #2 #-1 #0.58

}


{ c ^\markup \percentRepeat}


\markup \percentRepeat





HTH


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


Re: Print Double Percent Repeat inside a markup

2015-08-28 Thread tisimst
On 8/28/2015 12:18 PM, Stephen MacNeil [via Lilypond] wrote:
 how is

 

 % inspired by: http://lsr.di.unimi.it/LSR/Item?id=908

 


 \version 2.18.2


 percentRepeat = \markup {

 \combine

 \translate #'(0.2 . 1.5)

 \draw-circle #0.22 #0 ##t

 \combine

 \translate #'(1.8 . 0.5)

 \draw-circle #0.22 #0 ##t

 \rotate #90

 \translate#'(0 . 2)

 \beam #2 #-1 #0.58

 }


 { c ^\markup \percentRepeat}


 \markup \percentRepeat


 


Nice! That looks like a good one, too! Isn't it great to have this kind 
of flexibility? I love it!

- Abraham





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Print-Double-Percent-Repeat-inside-a-markup-tp180318p180319.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: Adding markup to percent repeat sign

2014-02-03 Thread David Bellows
That works very well and is easy. It appears to add a little space on
the sides but it's something I can live with. Thank you very much!

On Sun, Feb 2, 2014 at 11:41 PM, TaoCG tao_lilypondu...@gmx.net wrote:
 David Bellows wrote
 Hello all,

 I'm writing a kind of minimalist piece that has a lot of repeated
 measures that I would like to notate using the percent repeat symbol
 with text above it like 8x or any other arbitrary text.

 The built-in functionality does not seem to allow for this unless I'm
 missing something. I found a snippet to generate a percent repeat
 sign:

 makePercent =
 #(define-music-function (parser location note) (ly:music?)
Make a percent repeat the same length as NOTE.
(make-music 'PercentEvent
'length (ly:music-length note)))

 But this does not allow me to add \markup to it like:

 \version 2.19.1
 \score {
 c e g c | \makePercent s1^\markup{8x}
 }

 The normal \repeat percent 8 {blah} approach does not work because it
 creates a lot of measures with the repeat sign and I just want the one
 measure.

 I've seen solutions for spanning a selection with a spanner like
 --3x-- but that's not what I want nor do I want to use voltas
 (and I believe I saw a solution for putting the 8x over the bar line
 which is not what I want either).

 I'm fairly certain I've seen this notation before in other scores.

 Anyone have any ideas?

 Thanks

 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

 Hi,

 you can prepend your percent repeats with this:

 s1*0^\markup text

 I think this should give you the output you're looking for.



 --
 View this message in context: 
 http://lilypond.1069038.n5.nabble.com/Adding-markup-to-percent-repeat-sign-tp158763p158766.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

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


Adding markup to percent repeat sign

2014-02-02 Thread David Bellows
Hello all,

I'm writing a kind of minimalist piece that has a lot of repeated
measures that I would like to notate using the percent repeat symbol
with text above it like 8x or any other arbitrary text.

The built-in functionality does not seem to allow for this unless I'm
missing something. I found a snippet to generate a percent repeat
sign:

makePercent =
#(define-music-function (parser location note) (ly:music?)
   Make a percent repeat the same length as NOTE.
   (make-music 'PercentEvent
   'length (ly:music-length note)))

But this does not allow me to add \markup to it like:

\version 2.19.1
\score {
c e g c | \makePercent s1^\markup{8x}
}

The normal \repeat percent 8 {blah} approach does not work because it
creates a lot of measures with the repeat sign and I just want the one
measure.

I've seen solutions for spanning a selection with a spanner like
--3x-- but that's not what I want nor do I want to use voltas
(and I believe I saw a solution for putting the 8x over the bar line
which is not what I want either).

I'm fairly certain I've seen this notation before in other scores.

Anyone have any ideas?

Thanks

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


Re: Adding markup to percent repeat sign

2014-02-02 Thread TaoCG
David Bellows wrote
 Hello all,
 
 I'm writing a kind of minimalist piece that has a lot of repeated
 measures that I would like to notate using the percent repeat symbol
 with text above it like 8x or any other arbitrary text.
 
 The built-in functionality does not seem to allow for this unless I'm
 missing something. I found a snippet to generate a percent repeat
 sign:
 
 makePercent =
 #(define-music-function (parser location note) (ly:music?)
Make a percent repeat the same length as NOTE.
(make-music 'PercentEvent
'length (ly:music-length note)))
 
 But this does not allow me to add \markup to it like:
 
 \version 2.19.1
 \score {
 c e g c | \makePercent s1^\markup{8x}
 }
 
 The normal \repeat percent 8 {blah} approach does not work because it
 creates a lot of measures with the repeat sign and I just want the one
 measure.
 
 I've seen solutions for spanning a selection with a spanner like
 --3x-- but that's not what I want nor do I want to use voltas
 (and I believe I saw a solution for putting the 8x over the bar line
 which is not what I want either).
 
 I'm fairly certain I've seen this notation before in other scores.
 
 Anyone have any ideas?
 
 Thanks
 
 ___
 lilypond-user mailing list

 lilypond-user@

 https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi,

you can prepend your percent repeats with this:

s1*0^\markup text

I think this should give you the output you're looking for.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Adding-markup-to-percent-repeat-sign-tp158763p158766.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: Percent repeat

2013-12-03 Thread Ralph Palmer
On Sat, Nov 30, 2013 at 2:26 PM, Janek Warchoł janek.lilyp...@gmail.comwrote:

 Hi,


 2013/11/30 Noeck noeck.marb...@gmx.de:
  Hi,
 
  is this a bug or is there some reason why this should be correct:
 
  If I use a percent repeat in a customly timed measure (5/4 instead of
  4/4), the repeat symbol lacks the dots and is placed to the left of the
  bar. If I write something before the repeat (a time signature or only
  ), then the dots reappear and they are placed properly.

 looks like a bug to me.  Forwarding to bug-lilypond.


Thanks, Noeck and Janek - This has been entered as Issue 3703 :
https://code.google.com/p/lilypond/issues/detail?id=3703colspec=ID%20Type%20Status%20Stars%20Owner%20Patch%20Needs%20Summary

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


Percent repeat

2013-11-30 Thread Noeck
Hi,

is this a bug or is there some reason why this should be correct:

If I use a percent repeat in a customly timed measure (5/4 instead of
4/4), the repeat symbol lacks the dots and is placed to the left of the
bar. If I write something before the repeat (a time signature or only
), then the dots reappear and they are placed properly.

Thanks for clarification,
Joram


\version 2.16.2 % also tested with 2.17.26


  \new Staff {
\tempo wrong?
\time 5/4
\repeat unfold 10 a'4
  }
  \new RhythmicStaff {
\repeat percent 2 { c4 c c c c }
  }



  \new Staff {
\tempo what I expect
\time 5/4
\repeat unfold 10 a'4
  }
  \new RhythmicStaff {
  % (*) this is the only difference
\repeat percent 2 { c4 c c c c }
  }


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


Re: Percent repeat

2013-11-30 Thread Janek Warchoł
Hi,


2013/11/30 Noeck noeck.marb...@gmx.de:
 Hi,

 is this a bug or is there some reason why this should be correct:

 If I use a percent repeat in a customly timed measure (5/4 instead of
 4/4), the repeat symbol lacks the dots and is placed to the left of the
 bar. If I write something before the repeat (a time signature or only
 ), then the dots reappear and they are placed properly.

looks like a bug to me.  Forwarding to bug-lilypond.


\version 2.16.2 % also tested with 2.17.26


  \new Staff {
\tempo wrong?
\time 5/4
\repeat unfold 10 a'4
  }
  \new RhythmicStaff {
\repeat percent 2 { c4 c c c c }
  }



  \new Staff {
\tempo what I expect
\time 5/4
\repeat unfold 10 a'4
  }
  \new RhythmicStaff {
  % (*) this is the only difference
\repeat percent 2 { c4 c c c c }
  }


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


Re: Percent repeat

2013-11-30 Thread Colin Campbell

On 11/30/2013 12:05 PM, Noeck wrote:

Hi,

is this a bug or is there some reason why this should be correct:

If I use a percent repeat in a customly timed measure (5/4 instead of
4/4), the repeat symbol lacks the dots and is placed to the left of the
bar. If I write something before the repeat (a time signature or only
), then the dots reappear and they are placed properly.

Thanks for clarification,
Joram


\version 2.16.2 % also tested with 2.17.26


   \new Staff {
 \tempo wrong?
 \time 5/4
 \repeat unfold 10 a'4
   }
   \new RhythmicStaff {
 \repeat percent 2 { c4 c c c c }
   }

   \new Staff {
 \tempo what I expect
 \time 5/4
 \repeat unfold 10 a'4
   }
   \new RhythmicStaff {
   % (*) this is the only difference
 \repeat percent 2 { c4 c c c c }
   }




I've created a bug report as Issue 3693 
http://code.google.com/p/lilypond/issues/detail?id=3693: PercentRepeat 
no dots with odd time signatures, RhythmicStaff


Thanks for an excellent example, Joram!

Cheers,
Colin


--
A man needs a little madness, or else he never dares cut the rope and be 
free.

-Nikos Kazantzakis, writer (1883-1957)
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to add markings to a percent repeat?

2013-01-22 Thread David Kastrup
Eluze elu...@gmail.com writes:

 David Kastrup wrote
 Eluze lt;

 eluzew@

 gt; writes:
 
 ryanmichaelmcclure wrote
 Is it possible to add either dynamics or markup to a percent repeat? I
 have a measure which is repeated 7 times with the following command:
 
 \repeat percent 7 {a8\p\staccato e'8\staccato a,8\staccato e'8\staccato}
 
 I want to add a crescendo (\cresc) on the 7th repeat as it goes to a
 measure with a dynamic following. How can I accomplish this?

 use a (temporary) 2nd voice!?

 
   \repeat percent 7 {a8 \p\staccato e'8 \staccato a,8 \staccato e'8
 \staccato }
   \\
   { s1 s s s4 \ s s s \!  }


 (don't know if it's positioned correctly)
 
 In this case you would not want a separate voice but rather want to have
 this stuff appear in the _same_ voice.  So leave out the voice separator
 \\ and just write the rest as you did.

 absolutely - and I don't know why I put this voice separator (I never use it
 for me)

 but the result being the same - what am I missing?

With crescendi, the alignment is likely just horizontally and on general
music timing, so probably not much (possibly the Midi dynamics) in the
second voice.  However, this puts a \voiceOne in the first voice and a
\voiceTwo in the second voice, so the stems might come out unexpectedly
directed in the first voice, probably the main harm in this usage.

Also, any ties (or other spanners) from outside the parallel passage to
inside and back will no longer be able to connect since the first voice
has changed into \context Voice = 1.

-- 
David Kastrup


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


Re: How to add markings to a percent repeat?

2013-01-21 Thread Eluze
ryanmichaelmcclure wrote
 Is it possible to add either dynamics or markup to a percent repeat? I
 have a measure which is repeated 7 times with the following command:
 
 \repeat percent 7 {a8\p\staccato e'8\staccato a,8\staccato e'8\staccato}
 
 I want to add a crescendo (\cresc) on the 7th repeat as it goes to a
 measure with a dynamic following. How can I accomplish this?

use a (temporary) 2nd voice!?


  \repeat percent 7 {a8 \p\staccato e'8 \staccato a,8 \staccato e'8
\staccato }
  \\
  { s1 s s s4 \ s s s \!  }


(don't know if it's positioned correctly)

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-to-add-markings-to-a-percent-repeat-tp139256p139858.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: How to add markings to a percent repeat?

2013-01-21 Thread David Kastrup
Eluze elu...@gmail.com writes:

 ryanmichaelmcclure wrote
 Is it possible to add either dynamics or markup to a percent repeat? I
 have a measure which is repeated 7 times with the following command:
 
 \repeat percent 7 {a8\p\staccato e'8\staccato a,8\staccato e'8\staccato}
 
 I want to add a crescendo (\cresc) on the 7th repeat as it goes to a
 measure with a dynamic following. How can I accomplish this?

 use a (temporary) 2nd voice!?

 
   \repeat percent 7 {a8 \p\staccato e'8 \staccato a,8 \staccato e'8
 \staccato }
   \\
   { s1 s s s4 \ s s s \!  }


 (don't know if it's positioned correctly)

In this case you would not want a separate voice but rather want to have
this stuff appear in the _same_ voice.  So leave out the voice separator
\\ and just write the rest as you did.

-- 
David Kastrup


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


Re: How to add markings to a percent repeat?

2013-01-21 Thread Eluze
David Kastrup wrote
 Eluze lt;

 eluzew@

 gt; writes:
 
 ryanmichaelmcclure wrote
 Is it possible to add either dynamics or markup to a percent repeat? I
 have a measure which is repeated 7 times with the following command:
 
 \repeat percent 7 {a8\p\staccato e'8\staccato a,8\staccato e'8\staccato}
 
 I want to add a crescendo (\cresc) on the 7th repeat as it goes to a
 measure with a dynamic following. How can I accomplish this?

 use a (temporary) 2nd voice!?

 
   \repeat percent 7 {a8 \p\staccato e'8 \staccato a,8 \staccato e'8
 \staccato }
   \\
   { s1 s s s4 \ s s s \!  }


 (don't know if it's positioned correctly)
 
 In this case you would not want a separate voice but rather want to have
 this stuff appear in the _same_ voice.  So leave out the voice separator
 \\ and just write the rest as you did.

absolutely - and I don't know why I put this voice separator (I never use it
for me)

but the result being the same - what am I missing?

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-to-add-markings-to-a-percent-repeat-tp139256p139921.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


Mix of repeat percent repeat volta

2008-12-11 Thread Luci

Hi all,

My question is how to beneficiate of percent in an repeat volta 
alternative ?


See attached pdf / script.

- First line is what i don't want : having to repeat first measure in
the first alternative
- 2nd is what i want with using the trick of a rest + percent sign stencil

Question #1 is :
- how to simply have the percent without cheating ?
- if not possible, how to customize the stencil to have the basic
percent look ?

Question #2 is :
- on both lines, you can see that the upper lines for 1st and 2nd
alternatives are not vertically aligned. That's visually sad. How to
change that ?

Thanks in advance for your advices !



drumContentsUp = \drummode 
{ 	
	\repeat volta 2 {
		\repeat percent 3 { sn4 sn sn sn }
	}
	\alternative {
		{ sn4 sn sn sn }
		{ tomh8 tomh tommh tommh toml toml cymc4 }
	}
	\break
	\repeat volta 2 {
		\repeat percent 3 {	sn4 sn sn sn }
	}
	\alternative {
		{ 	\override MultiMeasureRest #'stencil = #ly:multi-measure-rest::percent 
			\override MultiMeasureRest #'staff-position = #0
			R1 }
		{ tomh8 tomh tommh tommh toml toml cymc4 }
	}	
	\break
}

\paper { indent = 0\cm }
\score { 
	\new DrumStaff { 
	\set DrumStaff.drumStyleTable = #(alist-hash-table mydrums)
	\new DrumVoice = up { \voiceOne \drumContentsUp }
 }  }

Volta and percent.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Mix of repeat percent repeat volta

2008-12-11 Thread Neil Puttock
Hi,

2008/12/11 Luci [EMAIL PROTECTED]:

 Question #1 is :
 - how to simply have the percent without cheating ?

I don't think it's possible.

 - if not possible, how to customize the stencil to have the basic
 percent look ?

http://lsr.dsi.unimi.it/LSR/Item?id=499

 Question #2 is :
 - on both lines, you can see that the upper lines for 1st and 2nd
 alternatives are not vertically aligned. That's visually sad. How to
 change that ?

Upgrade to 2.11.65 (which is a hair's breadth away from the new stable
release, 2.12).

Regards,
Neil


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


Re: Mix of repeat percent repeat volta

2008-12-11 Thread Luci

Wow that was simple, thanks for your answers.



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


Re: percent repeat glyph

2008-11-24 Thread Daniel Hulme
On Sat, Nov 22, 2008 at 01:17:27AM +, Neil Puttock wrote:
 I think the best option is to make the kerning settings tweakable.
 In fact, there's a TODO in the source suggesting this.
 
 I've just submitted a patch for review; attached is some sample output.

I updated my source and had a play with it last night, and it's great. I
had a quick look through some commercial parts to see what they looked
like, and most of those I looked at had handwritten-look percent marks.
It seems a bit odd to me, and out of keeping with the rest of the part,
but I expect someone will ask for them eventually.

Anyway, after trying a few settings, I stuck with slope 1.25,
dot-negative-kern 0.6. I attach some sample output, which I'm sure the
copyright owner won't recognise :-) On reflection, I think making them a
bit more vertical looks better than just moving the dots inward. I like
these settings so much more I'd like to request the defaults be changed,
if there's consensus.

Thanks for making this change so quickly.

-- 
I can blink the lights and cat you files full of sad things, We can play
XPilot just for two,  I can serenade and gently play all your ogg files,
Be your 'pache server just for you.  (with apologies to Freddie Mercury)
even more disdain for popular culture at: http://surreal.istic.org/songs


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


Re: percent repeat glyph

2008-11-21 Thread Neil Puttock
Hi Daniel,

2008/11/17 Daniel Hulme [EMAIL PROTECTED]:
 I have just got back from a band rehearsal, and tonight for the first
 time I could see what bothers me about Lilypond's percent glyph: the
 dots are too far out. I think they should be horizontally closer to the
 centre, so that the space between the dot and the oblique stroke is more
 like the space between the dot and the staff lines. As it is, the pointy
 whitespace between the dot and the corner of the stroke makes it look
 like the dots are vertically off-centre in the staff space.

I think the best option is to make the kerning settings tweakable.
In fact, there's a TODO in the source suggesting this.

I've just submitted a patch for review; attached is some sample output.

Regards,
Neil
attachment: percent-kerning.png___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


percent repeat glyph

2008-11-17 Thread Daniel Hulme
I have just got back from a band rehearsal, and tonight for the first
time I could see what bothers me about Lilypond's percent glyph: the
dots are too far out. I think they should be horizontally closer to the
centre, so that the space between the dot and the oblique stroke is more
like the space between the dot and the staff lines. As it is, the pointy
whitespace between the dot and the corner of the stroke makes it look
like the dots are vertically off-centre in the staff space.

Any thoughts, or am I alone here? I can try to put together a patch in
the near future.

-- 
Of all  things,  good sense is  the most fairly  distributed:  everyone
thinks  he is  so well  supplied  with it  that even  those who  are the
hardest to satisfy in  every other respect never  desire more of it than
they already have.   --  Descartes, 1637  http://surreal.istic.org/


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


Number over the percent repeat?

2008-04-09 Thread Stan Mulder
In a percent repeat, can I get the number of measures to be repeated over the
double percent sign?

\time 4/4
\repeat percent 2 { d8 f4 d8 e4 e | d2 csharp }



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


Re: Number over the percent repeat?

2008-04-09 Thread Graham Percival
It's the second example in the 2.11 docs.

Cheers,
- Graham

On Wed, 9 Apr 2008 14:36:06 + (UTC)
Stan Mulder [EMAIL PROTECTED] wrote:

 In a percent repeat, can I get the number of measures to be repeated
 over the double percent sign?
 
 \time 4/4
 \repeat percent 2 { d8 f4 d8 e4 e | d2 csharp }
 
 
 
 ___
 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


Re: Number over the percent repeat?

2008-04-09 Thread Mats Bengtsson



Graham Percival wrote:

It's the second example in the 2.11 docs.
  
As I interpreted the question, Stan wants to typeset a 2 over the 
double percent in

\repeat percent 2 { d8 f4 d8 e4 e | d2 csharp }
and a 4 in
\repeat percent 2 { c1 | d | e | f | }

  /Mats

Cheers,
- Graham

On Wed, 9 Apr 2008 14:36:06 + (UTC)
Stan Mulder [EMAIL PROTECTED] wrote:

  

In a percent repeat, can I get the number of measures to be repeated
over the double percent sign?

\time 4/4
\repeat percent 2 { d8 f4 d8 e4 e | d2 csharp }



___
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
  


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
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
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Number over the percent repeat?

2008-04-09 Thread Reinhold Kainhofer
Am Mittwoch, 9. April 2008 schrieb Graham Percival:
 Stan Mulder [EMAIL PROTECTED] wrote:
  In a percent repeat, can I get the number of measures to be repeated
  over the double percent sign?
 It's the second example in the 2.11 docs.

While we are at it: Is there something similar for long tied notes and for 
rests over multiple measures?
For very long notes (i.e. I have a score with whole notes tied over exactly 10 
measures), this would also be very helpful to orchestra musicians. Is there 
any way to put numbers over long ties and over multi-measure rests, which are 
written out?

Cheers,
Reinhold

-- 
--
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung Jung-Wien, http://www.jung-wien.at/


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


Re: Number over the percent repeat?

2008-04-09 Thread Mats Bengtsson



Reinhold Kainhofer wrote:

Am Mittwoch, 9. April 2008 schrieb Graham Percival:
  

Stan Mulder [EMAIL PROTECTED] wrote:


In a percent repeat, can I get the number of measures to be repeated
over the double percent sign?
  

It's the second example in the 2.11 docs.



While we are at it: Is there something similar for long tied notes and for 
rests over multiple measures?
  

Good question! The following attempt didn't work ;-)
\set restNumberThreshold = #0 R1*5

   /Mats


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


Re: Number over the percent repeat?

2008-04-09 Thread Reinhold Kainhofer
Am Mittwoch, 9. April 2008 schrieben Sie:
 Reinhold Kainhofer wrote:
  Am Mittwoch, 9. April 2008 schrieb Graham Percival:
  Stan Mulder [EMAIL PROTECTED] wrote:
  In a percent repeat, can I get the number of measures to be repeated
  over the double percent sign?
 
  It's the second example in the 2.11 docs.
 
  While we are at it: Is there something similar for long tied notes and
  for rests over multiple measures?

 Good question! The following attempt didn't work ;-)
 \set restNumberThreshold = #0 R1*5

No, because that's no what I'm after. What I want is something like:

R1^1 | R1^2 | R1^3 | R1^4 | R1^5

only that it should not look like some ordinary text markup, but like the 
multi-measure rest numbers. You see this every now and then in old 
hand-engraved sacral pieces. I admit that the first time I saw this, I was 
confused why they had multi-measure rest numbers 1 and 2 above the rests 
(i.e. I first thought it was three measures rest instead of two), but once 
you know that, it can be quite useful.

The thing is that if you want to transcribe old editions as close as possible 
to the original edition, you'll need something like that. I probably wouldn't 
use it in a new edition, though. 

However, for long tied notes, this is still used today and quite useful: 
Something like:

c1~^1 | c1~^2 | c1~^3 | c1~^4 | c1~^5 | c1~^6 | c1~^7 | 
c1~^8 | c1~^9 | c1^10 | 

Again, the numbers should not look like text markup, but rather like 
multi-measure rest numbers. And I don't want to count the notes manually ;-)

Cheers,
Reinhold


-- 
--
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung Jung-Wien, http://www.jung-wien.at/


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


RE: Number over the percent repeat?

2008-04-09 Thread Steven Weber
This has been on the list before (or maybe the LSR) since I know I didn't
come up with it myself, but here's how I do it:


{
\repeat volta 5 { c1 ~ }
c1
}
\new Voice
{
\set countPercentRepeats = ##t
\override PercentRepeatCounter #'font-size = #-3
\override PercentRepeatCounter #'padding = #2.5
\override PercentRepeat #'transparent = ##t
\repeat percent 6 { s1 }
}


--Steven

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Reinhold Kainhofer
Sent: Wednesday, April 09, 2008 8:57 AM
To: Mats Bengtsson; lilypond-user@gnu.org
Subject: Re: Number over the percent repeat?

Am Mittwoch, 9. April 2008 schrieben Sie:
 Reinhold Kainhofer wrote:
  Am Mittwoch, 9. April 2008 schrieb Graham Percival:
  Stan Mulder [EMAIL PROTECTED] wrote:
  In a percent repeat, can I get the number of measures to be repeated
  over the double percent sign?
 
  It's the second example in the 2.11 docs.
 
  While we are at it: Is there something similar for long tied notes and
  for rests over multiple measures?

 Good question! The following attempt didn't work ;-)
 \set restNumberThreshold = #0 R1*5

No, because that's no what I'm after. What I want is something like:

R1^1 | R1^2 | R1^3 | R1^4 | R1^5

only that it should not look like some ordinary text markup, but like the 
multi-measure rest numbers. You see this every now and then in old 
hand-engraved sacral pieces. I admit that the first time I saw this, I was 
confused why they had multi-measure rest numbers 1 and 2 above the rests 
(i.e. I first thought it was three measures rest instead of two), but once 
you know that, it can be quite useful.

The thing is that if you want to transcribe old editions as close as
possible 
to the original edition, you'll need something like that. I probably
wouldn't 
use it in a new edition, though. 

However, for long tied notes, this is still used today and quite useful: 
Something like:

c1~^1 | c1~^2 | c1~^3 | c1~^4 | c1~^5 | c1~^6 | c1~^7 | 
c1~^8 | c1~^9 | c1^10 | 

Again, the numbers should not look like text markup, but rather like 
multi-measure rest numbers. And I don't want to count the notes manually ;-)

Cheers,
Reinhold


-- 
--
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien,
http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung Jung-Wien, http://www.jung-wien.at/


___
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


Re: Percent repeat sign

2005-08-20 Thread Claus Wilke
 Maybe I should have started with this question, but what do you need the
 notation for?

 If Mats' trick serves you, then it's ok.  Otherwise please let me know,
 then I will go ahead with adding the sponsored feature.
I realized that Mats' trick would work in principle, but I don't like it (a) 
because it's a dirty hack, and (b) because it doesn't help me in my 
particular case: In Jazz, people often use the percent sign to indicate play 
something. In the particular tune I tried to engrave, the lead sheet starts 
out with a percent sign in the very first measure. Thus, the trick doesn't 
work for me.

Claus


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


Re: Percent repeat sign

2005-08-20 Thread Claus Wilke

 I expect that it will also work with 2.2 ,  you have to add
 \score{\notes {}}.
Yes, it works fine, even in 2.2. However, I need a similar command to turn my 
rests back into normal rests. At least in 2.2, this command produces 
percent-shaped rests for the remainder of the score.

 I added this example to the 2.7 manual, and will not do the sponsored
 feature we talked about earlier. I would be very glad if you could make
 a small donation for my time ([EMAIL PROTECTED] via paypal).
Will do.

Claus


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


Re: Percent repeat sign

2005-08-20 Thread Claus Wilke

 try adding \once before the \override, or

 do \revert MultiMeasureRest #'print-function
Yup, that works.

Claus


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


Re: Percent repeat sign

2005-08-19 Thread Han-Wen Nienhuys

Claus Wilke wrote:

Maybe I should have started with this question, but what do you need the
notation for?

If Mats' trick serves you, then it's ok.  Otherwise please let me know,
then I will go ahead with adding the sponsored feature.


I realized that Mats' trick would work in principle, but I don't like it (a) 
because it's a dirty hack, and (b) because it doesn't help me in my 
particular case: In Jazz, people often use the percent sign to indicate play 
something. In the particular tune I tried to engrave, the lead sheet starts 
out with a percent sign in the very first measure. Thus, the trick doesn't 
work for me.


Where did I leave my brain when I wrote that it's not possible?
Try

{
  \override MultiMeasureRest #'print-function =
#Multi_measure_rest::percent
  R1
}


I expect that it will also work with 2.2 ,  you have to add 
\score{\notes {}}.



I added this example to the 2.7 manual, and will not do the sponsored 
feature we talked about earlier. I would be very glad if you could make 
a small donation for my time ([EMAIL PROTECTED] via paypal).


--

Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: Percent repeat sign

2005-08-18 Thread Mats Bengtsson

Do you want the percent signs already from the firs measure of the
piece? Otherwise, just do
\repeat percent 5 { previous measure }
Isn't this what you actually want to describe anyway? I don't understand
what you intend to use it for otherwise.
Example, a C major scaled followed by 4 bars of repeat signs can be
obtained by
c d e f \repeat percent 5 {g a b c}

  /Mats


Claus Wilke wrote:

Hello,

is it possible to directly engrave percent repeat signs? As far as I 
understand, the percent repeat mechanism always first engraves something 
(notes, rests, etc.), and then engraves bars with repeat signs. I.e., if I do

\repeat percent 4 { r1 }
I get one bar with a rest, and then three bars with the percent sign. However, 
I would like to have four bars with the percent sign, and no bar with the 
rest. Is there any way to do it?


FYI, I am still on lilipond 2.2, so any answer that works with this version 
would be appreciated.


Thanks a lot for an otherwise great program!

Claus


___
lilypond-user mailing list
lilypond-user@gnu.org
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
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Percent repeat sign

2005-08-18 Thread Han-Wen Nienhuys

Claus Wilke wrote:

[percent repeats without body]


as Mats pointed, it is of course possible to get this, just by putting 
the last measure of the previous material in the \repeat. Of course, 
then you can't do


   \fragment
   \repeat percent 4 { \skip 1 }
   \otherFragment
   \repeat percent 4 { \skip 1 }

to easily repeat the last measure of an arbitrary fragment.

Maybe I should have started with this question, but what do you need the 
notation for?


If Mats' trick serves you, then it's ok.  Otherwise please let me know, 
then I will go ahead with adding the sponsored feature.


Thanks,

--
Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Percent repeat sign

2005-08-17 Thread Claus Wilke
Hello,

is it possible to directly engrave percent repeat signs? As far as I 
understand, the percent repeat mechanism always first engraves something 
(notes, rests, etc.), and then engraves bars with repeat signs. I.e., if I do
\repeat percent 4 { r1 }
I get one bar with a rest, and then three bars with the percent sign. However, 
I would like to have four bars with the percent sign, and no bar with the 
rest. Is there any way to do it?

FYI, I am still on lilipond 2.2, so any answer that works with this version 
would be appreciated.

Thanks a lot for an otherwise great program!

Claus


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


Re: Percent repeat sign

2005-08-17 Thread Han-Wen Nienhuys

Claus Wilke wrote:

Hello,

is it possible to directly engrave percent repeat signs? As far as I 
understand, the percent repeat mechanism always first engraves something 
(notes, rests, etc.), and then engraves bars with repeat signs. I.e., if I do

\repeat percent 4 { r1 }
I get one bar with a rest, and then three bars with the percent sign. However, 
I would like to have four bars with the percent sign, and no bar with the 
rest. Is there any way to do it?


No. But I can add this as a sponsored feature. Contact me privately if 
you're interested.


--

Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: Adding number to percent repeat

2005-05-07 Thread Anthony W. Youngman
In message [EMAIL PROTECTED], Ishizaki 
[EMAIL PROTECTED] writes
Hi, I'm using Lilypond 2.4.6 on Linux.
Is there anyway to print repeated number onto the percent sign?
Like this,
 2   3   4   5
[music] | % | % | % | % | [another music] |...
Oddly enough, I was thinking of asking the same question ...
Incidentally, if it can't be done at present and someone is thinking of 
doing it, a related problem is exactly the same thing but with \unfold. 
eg

   2 3 4
[music] | [samemusic] | [samemusic] | [samemusic] | [anothermusic]
which I often come across. The latter probably isn't too hard to rig, 
but the former I don't know how to do.

Oh - and something to watch out for - when using \unfold, the first 
repeated bar often has to be explicitly coded because of non-music 
expressions such as dynamics in the first bar, so whereas with % it 
would put '2' over the first repeated bar, with \unfold it may need to 
put '2' over the first bar.

Cheers,
Wol
--
Anthony W. Youngman - wol at thewolery dot demon dot co dot uk
HEX wondered how much he should tell the Wizards. He felt it would not be a
good idea to burden them with too much input. Hex always thought of his reports
as Lies-to-People.
The Science of Discworld : (c) Terry Pratchett 1999
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Adding number to percent repeat

2005-05-04 Thread Ishizaki
Hi, I'm using Lilypond 2.4.6 on Linux.

Is there anyway to print repeated number onto the percent sign?

Like this, 


  2   3   4   5   
[music] | % | % | % | % | [another music] |...




| Yoshinobu  Ishizaki  |



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


Re: Percent repeat questions

2004-12-21 Thread Mats Bengtsson
Both look like bugs to me. The problems with grace notes are well-known.
   /Mats
Richard Schoeller wrote:
I've been running into some issues with percent repeats and want to see
if there are suggestions.
If you have a line that is completely percent repeats, then
RemoveEmptyStaffContext removes the line.  This gets me alot in ensemble
scores where the bass and percussion are repetive and the melody parts
are very busy.  Is there anyway to avoid this?
I would like to be able to specify percent repeats but have it
automagically unfold the measure at each new line.  This would be
similar to chordChanges = ##t for chord names.  Is there anything like
that?
The final thing is a bug.  And I have not been able to find a
workaround.  If one part has precent repeats and another part has
measures that begin with a grace note, then the percent repeats will be
mispositioned in the measures near the one with the grace note.  This
can even result in a percent repeat mark at the very beginning of the
line.
Thanks
   
   
   

Dick Schoeller
[EMAIL PROTECTED]
http://schoeller.ne.client2.attbi.com/
781.449.5476 

Er ist ein Narr, der
meint, es sei nicht
schad, das Kind
auszuschütten mit dem
Bad
- Thomas Murner 1512

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



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


Percent repeat questions

2004-12-20 Thread Richard Schoeller
I've been running into some issues with percent repeats and want to see
if there are suggestions.

If you have a line that is completely percent repeats, then
RemoveEmptyStaffContext removes the line.  This gets me alot in ensemble
scores where the bass and percussion are repetive and the melody parts
are very busy.  Is there anyway to avoid this?

I would like to be able to specify percent repeats but have it
automagically unfold the measure at each new line.  This would be
similar to chordChanges = ##t for chord names.  Is there anything like
that?

The final thing is a bug.  And I have not been able to find a
workaround.  If one part has precent repeats and another part has
measures that begin with a grace note, then the percent repeats will be
mispositioned in the measures near the one with the grace note.  This
can even result in a percent repeat mark at the very beginning of the
line.

Thanks





Dick Schoeller
[EMAIL PROTECTED]
http://schoeller.ne.client2.attbi.com/
781.449.5476 


Er ist ein Narr, der
meint, es sei nicht
schad, das Kind
auszuschütten mit dem
Bad
- Thomas Murner 1512



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


Re: percent repeat

2002-07-01 Thread Antonio PALAMA'

Rune Zedeler wrote:


 The spacing engine has been rewritten in 1.5.
 In 1.5 the score fits into 5 lines - with 9 normal meassures and 
 approx 20 percent measures per line.

O.K. it seems I have to go to 1.5.63. I downloaded the sources and tried 
./configure (I'm running Debian Woody)
I get
configure: error: Cannot find kpathsea functions. You should install 
kpathsea.

I have the Debian package libkpathsea3 installed.
Should I install libkpathsea-dev also?

Another question already asked by Atte Jensen:

What's the best route to follow to have both 1.4.14 and 1.5.63 
installed at the same time? 

Thanks for your help.

Ciao,

Antonio


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



Re: percent repeat

2002-07-01 Thread Atte Andre Jensen

On Mon, 1 Jul 2002, Antonio PALAMA' wrote:

 Another question already asked by Atte Jensen:

 What's the best route to follow to have both 1.4.14 and 1.5.63
 installed at the same time? 

Since nobody answered be fore I ran out of patience I just went ahead and
wiped 1.4.14 + installed 1.5.63. Looks pretty (much) nice(r) than 1.4.14
and although I didn't have time to really work with the latest/greatest it
also seems pretty stable...
-- 
love, peace  harmony
Atte


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



Rehearsal marks, percent repeat

2002-06-29 Thread Antonio PALAMA'

Moving from 1.2.17 to 1.4.12 some of my favourite commands
do not work as expected

The command I had standardized for boxed rehearsal marks, i.e.

\mark {\\font\\twelverm=cmbx12\\twelverm{\\hspace{10mm}\\raisebox{0mm}{\\fbox{1

makes some additional white space to be inserted before and after the barline
preceding the \mark command.

The command I had standardized for circled rehearsal marks, i.e.

\mark {\\font\\twelverm=cmbx12\\twelverm{%
\\hspace{0mm}%
\\raisebox{-1mm}{%
\\setlength{\\unitlength}{1mm}%
\\begin{picture}(7,7)%
\\put(3.5,3.5){\\circle{7.0}\\makebox(0,0){1}}%
\\end{picture}%
}%
}}

is not usable at all (lots of white space before and after the barline).

Do you have any suggestion to solve the problem?

I would like to look in the sources to see if I can do something
to solve the problems outlined in my previous posting about
percent repeat:

- Too wide percent repeat measures
- It is not possible to have multiple precent repeat behave a la skipBars

Where should I start looking?
Is there a place in the documentation or in the sources where the
algorithm used for horizontal spacing is clearly described?


Thanks a lot for your help,

Antonio Palama'



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



Re: Rehearsal marks, percent repeat

2002-06-29 Thread Antonio PALAMA'

Han-Wen wrote:

- It is not possible to have multiple precent repeat behave a la skipBars


That's more difficult. You would have to look into
percent-repeat-engraver.cc and percent-repeat-iterator.cc I'm also not
sure what you really want. AFAIK the syntax for repeating longer
fragments is

 . ///
  ///.

(number of slashes = number of measures.) I've seen numbers on top
just to help people, i.e.


  1   2   3
  % | % | % | etc.

which one do you want? 

\property score.skipPercent ##t
\repeat percent 5
{
c2 c |
}

should produce  (bad ASCII graphics)


   4
|   o   o   |  |
|   |||%   |
| |  |

like the old construct

\property score.skipBars=1;
c2 c |
\repetitions 1*4 |

did with 1.2.17.

Also knowing how to put numbers above bars to help reading like in your 
example
wold be helpful.
I need these features to typeset marching band parts. Squeezing 200+ 
measures into
one 210mm * 145mm page is really difficult.

I will answer on the other points later.
Thanks a lot,

Ciao,

Antonio


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



Re: Rehearsal marks, percent repeat

2002-06-29 Thread Simon Bailey

On Sat, 2002-06-29 at 12:38, Han-Wen wrote:
 That's more difficult. You would have to look into
 percent-repeat-engraver.cc and percent-repeat-iterator.cc I'm also not
 sure what you really want. AFAIK the syntax for repeating longer
 fragments is
 
  . ///
   ///.

this is for repeating a certain set of measures. the number of slashes
denotes how many bars before you should repeat, not how often you should
repeat the bar beforehand.

so:
|music1|music2|.//.| = |music1|music2|music1|music2|

etc...

 (number of slashes = number of measures.) I've seen numbers on top
 just to help people, i.e.
 
 
   1   2   3
   % | % | % | etc.

another version i came across a lot when i used to play in the youth
orchestra was :

   8
|  %  |

as in the number of repeats over one percent sign.

greetings,
simon.
-- 
Confucius say, man who live in glass house shower in basement.

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



Re: Rehearsal marks, percent repeat

2002-06-29 Thread Mats Bengtsson

   (number of slashes = number of measures.) I've seen numbers on top
   just to help people, i.e.
   
   
 1   2   3
 % | % | % | etc.
  
  another version i came across a lot when i used to play in the youth
  orchestra was :
  
 8
  |  %  |
  
  as in the number of repeats over one percent sign.
 
 I'd suggest to use 8x  for this type of use.

How do you do it in practice in Lilypond? 
What is the easiest method to put a text script on 
top of the percent sign? 

A related question: How do you put a script centered above 
a multi-measure rest (for example to print a fermata on top 
of a full bar rest)?


   /Mats

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



Percent repeat problems

2002-06-24 Thread Antonio PALAMA'

I would like to reduce the default width of the percent repeat bars.
I tried to figure out which is the Property that controls this parameter
but did not find it.

I also miss a feature which was available with 1.2.17 but has disappeared
with 1.4.X i.e. to have multiple percent repeat bars to be printed as
a single bar with a number over it. Will this be restored someday?

Another feature which I deem useful is having percent repeat
bars or multiple bar rests printed in full but with sequential numbers
over the bars.

Thank you for any help you can provide.

Best regards,

Antonio Palama'

[EMAIL PROTECTED]


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



Re: Percent repeat problems

2002-06-24 Thread Simon Bailey

try setting 

\property Score.skipBars = ##t 

in your score. that influences multmeasure rests -- i don't know if it
will compress percent-repeats but it's worth a try.

for sequential numbers, i think you will have to hard code them - i
don't know if lilypond supports them or not.

greetings,
simon.

On Mon, 2002-06-24 at 22:05, Antonio PALAMA' wrote:
 I would like to reduce the default width of the percent repeat bars.
 I tried to figure out which is the Property that controls this parameter
 but did not find it.
 
 I also miss a feature which was available with 1.2.17 but has disappeared
 with 1.4.X i.e. to have multiple percent repeat bars to be printed as
 a single bar with a number over it. Will this be restored someday?
 
 Another feature which I deem useful is having percent repeat
 bars or multiple bar rests printed in full but with sequential numbers
 over the bars.
 
 Thank you for any help you can provide.
 
 Best regards,
 
 Antonio Palama'
 
 [EMAIL PROTECTED]
 
 
 ___
 Lilypond-user mailing list
 [EMAIL PROTECTED]
 http://mail.gnu.org/mailman/listinfo/lilypond-user
-- 
Confucius say, man who live in glass house shower in basement.

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