Re: How can I get a repeat symbol in the chord names part of lead sheet?

2017-01-21 Thread jmechmech
Thanks, i have the same bug in this message

and my answer :

\version "2.18.2"
chordNames = \chordmode {
  \repeat percent 2 { c1:7 } 
  \repeat percent 4 { f4 } 
}

melody = \relative c'' {
  \repeat percent 2 { c1 } 
  \repeat percent 4 { c4 } 
}
\score {
  <<
\new ChordNames \chordNames
\new Staff { \melody }
  >>
  \layout {   
\context {
  \ChordNames 
  \consists "Percent_repeat_engraver" 
  \consists "Slash_repeat_engraver"
  \override RepeatSlash.extra-offset = #'(0 . 1)
  \override PercentRepeat.extra-offset = #'(0 . 1)
}
  }
}




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Re-How-can-I-get-a-repeat-symbol-in-the-chord-names-part-of-lead-sheet-tp199418p199425.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 can I get a repeat symbol in the chord names part of lead sheet?

2017-01-20 Thread Flaming Hakama by Elaine
I didn't see this answered yet, so here is my reply...

On Thu, Jan 12, 2017 at 7:45 PM,  wrote:

> -- Forwarded message --
> From: Rob Torop 
> To: lilypond-user@gnu.org
> Cc:
> Date: Fri, 13 Jan 2017 03:45:13 +
> Subject: How can I get a repeat symbol in the chord names part of lead
> sheet?
> I'm trying to figure out what to use for a chord name to get a "repeat"
> (percent) sign over one of the measures. Below is a complete small
> example.  I want C over the first measure,  repeat over the second measure,
> and D over the third measure.  I'm sure this is trivial - I just can't find
> it!
>
> \version "2.18.2"
>
> chordNames = \chordmode {
>   c1
>% What goes here to get the repeat sign above the second measure of the
> staff?
>d1 % i want the d chord on top of the third measure
> }
>
> melody = \relative c'' {
>   c4 d e f
>   g a, b c
>   c d e f
>   }
>
>
> \score {
>   <<
> \new ChordNames \chordNames
> \new Staff { \melody }
>   >>
>
> }
>


Here is one approach that will get a percent sign in place of chord names
for repeated chords.

I'm unhappy with the fact that I can't figure out how to get the musical
repeat percent symbol here, rather than a text percent.  But this could be
a good starting point.

Note that by default, lilypond will repeat the chord name when there is a
line break.  Here I added a measure to your example to show this behavior.

\version "2.19.15"

chordNames = \chordmode {
c1
%  Q: What goes here to get the repeat sign above the second measure of
the staff?
%  A: Here we just specify what the chord is.  The formatting is dealt
with later.
c
c
d
}

melody = \relative c'' {
c4 d e f
g a, b c \break
g' a, b c
c d e f
}

#(define percent-repeated-chords
  (lambda (context)
   (let ((chord '()))
 `((acknowledgers
 (chord-name-interface .
   ,(lambda (engraver grob source-engraver)
 (if (equal? (ly:grob-property grob 'text) chord)
 ;  It would be nice to be able to use the percent repeat
glyph, not text.
 ;  Anyone know how to get that?  It isn't in the list of
glyphs at
 ;
http://lilypond.org/doc/v2.18/Documentation/notation/the-feta-font
 (ly:grob-set-property! grob 'text "%"))
 (set! chord (ly:grob-property grob 'text)
(finalize . ,(lambda (translator) (set! chord '(

<<
\new ChordNames
\with { \consists #percent-repeated-chords }
\chordmode { \chordNames }
\melody
>>


HTH,

David Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How can I get a repeat symbol in the chord names part of lead sheet?

2017-01-13 Thread Rob Torop
Thanks very much Pierre!

On Fri, Jan 13, 2017 at 3:00 AM Pierre Perol-Schneider <
pierre.schneider.pa...@gmail.com> wrote:

> Hi Rob,
> See: http://lsr.di.unimi.it/LSR/Item?id=908
> Cheers,
> Pierre
>
> 2017-01-13 4:45 GMT+01:00 Rob Torop :
>
> I'm trying to figure out what to use for a chord name to get a "repeat"
> (percent) sign over one of the measures. Below is a complete small
> example.  I want C over the first measure,  repeat over the second measure,
> and D over the third measure.  I'm sure this is trivial - I just can't find
> it!
>
> \version "2.18.2"
>
> chordNames = \chordmode {
>   c1
>% What goes here to get the repeat sign above the second measure of the
> staff?
>d1 % i want the d chord on top of the third measure
> }
>
> melody = \relative c'' {
>   c4 d e f
>   g a, b c
>   c d e f
>   }
>
>
> \score {
>   <<
> \new ChordNames \chordNames
> \new Staff { \melody }
>   >>
>
> }
>
>
> ___
> 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: How can I get a repeat symbol in the chord names part of lead sheet?

2017-01-13 Thread Klaus Blum
Hi Rob, 

Rob Torop wrote
> I'm trying to figure out what to use for a chord name to get a "repeat"
> (percent) sign over one of the measures.

you could also try:

% 
\version "2.18.2"

chordNames = \chordmode {
  \repeat percent 2 {c1}
  d1
}

melody = \relative c'' {
  c4 d e f
  g a, b c
  c d e f
}


\score {
  <<
\new ChordNames \chordNames
\new Staff { \melody }
  >>
  \layout {
\context {
  \ChordNames
  \consists "Percent_repeat_engraver"
}
  }
}
% 

However, the percent sign will be centered above the measure.

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-can-I-get-a-repeat-symbol-in-the-chord-names-part-of-lead-sheet-tp199145p199148.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 can I get a repeat symbol in the chord names part of lead sheet?

2017-01-13 Thread Pierre Perol-Schneider
Hi Rob,
See: http://lsr.di.unimi.it/LSR/Item?id=908
Cheers,
Pierre

2017-01-13 4:45 GMT+01:00 Rob Torop :

> I'm trying to figure out what to use for a chord name to get a "repeat"
> (percent) sign over one of the measures. Below is a complete small
> example.  I want C over the first measure,  repeat over the second measure,
> and D over the third measure.  I'm sure this is trivial - I just can't find
> it!
>
> \version "2.18.2"
>
> chordNames = \chordmode {
>   c1
>% What goes here to get the repeat sign above the second measure of the
> staff?
>d1 % i want the d chord on top of the third measure
> }
>
> melody = \relative c'' {
>   c4 d e f
>   g a, b c
>   c d e f
>   }
>
>
> \score {
>   <<
> \new ChordNames \chordNames
> \new Staff { \melody }
>   >>
>
> }
>
>
> ___
> 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


How can I get a repeat symbol in the chord names part of lead sheet?

2017-01-12 Thread Rob Torop
I'm trying to figure out what to use for a chord name to get a "repeat"
(percent) sign over one of the measures. Below is a complete small
example.  I want C over the first measure,  repeat over the second measure,
and D over the third measure.  I'm sure this is trivial - I just can't find
it!

\version "2.18.2"

chordNames = \chordmode {
  c1
   % What goes here to get the repeat sign above the second measure of the
staff?
   d1 % i want the d chord on top of the third measure
}

melody = \relative c'' {
  c4 d e f
  g a, b c
  c d e f
  }


\score {
  <<
\new ChordNames \chordNames
\new Staff { \melody }
  >>

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