lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rhythmic expressions and bar repeats in ChordNames


From: Louis Guillaume
Subject: Re: Rhythmic expressions and bar repeats in ChordNames
Date: Wed, 17 Mar 2021 18:03:16 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 3/16/21 4:44 PM, Xavier Scheuer wrote:


On Tue, 16 Mar 2021 at 21:19, Louis Guillaume <louis@zabrico.com <mailto:louis@zabrico.com>> wrote:
 >
 > Hi - I have 2 somewhat related questions here dealing with ChordNames:
 >
 > 1. How would one add rhythmic expressions (such as slashes)
 >
 > For example - in 4/4 I want a:m7 for 6 beats then e:7 for 2 beats, so
 > the ChordNames look like:
 >
 >     | A-7    | / / E7  |
 >
 >
 > 2. If I "\set ChordChanges = ##f" can the repeated chord symbol be a
 >     bar-repeat sign instead of a repeated chord symbol? At least if it's
 >     on the same line?
 >
 > I've tried doing
 >
 >         \repeat percent 2 a:m7
 >
 > but it just omits the chord symbol in that case.

Hello Louis,

No idea about 1., but for 2. you could add the repeat percent (and double and slash) engravers to the ChordNames context.

\chords {
   \repeat percent 2 a4:m7
}

\layout {
   \context {
     \ChordNames
     \consists "Percent_repeat_engraver"
     \consists "Double_percent_repeat_engraver"
     \consists "Slash_repeat_engraver"
     \override ChordName.Y-offset = #-1
     % delete the following two lines if you don't need barlines:
     \override BarLine.bar-extent = #'(-2 . 2)
     \consists "Bar_engraver"
   }
}

Based on LSR snippet #993
https://lsr.di.unimi.it/LSR/Item?id=993 <https://lsr.di.unimi.it/LSR/Item?id=993>

Cheers,
Xavier

--
Xavier Scheuer <x.scheuer@gmail.com <mailto:x.scheuer@gmail.com>>


Thank you! This works well enough for now.

--
Louis



reply via email to

[Prev in Thread] Current Thread [Next in Thread]