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: Knute Snortum
Subject: Re: Rhythmic expressions and bar repeats in ChordNames
Date: Tue, 16 Mar 2021 15:41:27 -0700

On Tue, Mar 16, 2021 at 1:45 PM Xavier Scheuer <x.scheuer@gmail.com> wrote:
>
>
>
> On Tue, 16 Mar 2021 at 21:19, Louis Guillaume <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
>
> Cheers,
> Xavier
>
> --
> Xavier Scheuer <x.scheuer@gmail.com>
>

Not exactly what you asked for, but I like:

\version "2.22.0"

beats = \relative { \improvisationOn b'4 b b b | b b b b }
chrds = \chordmode { a1:m7 | s2 e:7 }

<<
  \new ChordNames {
    \chrds
  }
  \new Staff \beats
>>

--
Knute Snortum



reply via email to

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