chord and chordChanges

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

chord and chordChanges

Gianmaria Lari
Following code prints chord even if they don't change.

\version "2.21.0"
<<
  \new Staff   { 
    c'4 d' e' f'
    \repeat volta 2 {c' d' e' f' | g' a' b' c''}
  }
  \new ChordNames { 
    g1 \repeat volta 2 {g1|1}
  }
>>

To avoid to print chords always, I used \set chordChanges = ##t..... but  I would like to keep displaying the chord at the beginning of repeat. I tried this 

\version "2.21.0"
<<
  \new Staff   { 
    c'4 d' e' f'
    \repeat volta 2 {c' d' e' f' | g' a' b' c''}
  }
  \new ChordNames { 
    g1 \set chordChanges = ##t \repeat volta 2 {g1|1}
  }
>>
 
but obviously does not work. Is there any easy way to force lilypond print the chord in that case or I have to unroll the repeat etc. etc.?
Thank you, g.

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: chord and chordChanges

David Kastrup
Gianmaria Lari <[hidden email]> writes:

> Following code prints chord even if they don't change.
>
> \version "2.21.0"
> <<
>   \new Staff   {
>     c'4 d' e' f'
>     \repeat volta 2 {c' d' e' f' | g' a' b' c''}
>   }
>   \new ChordNames {
>     g1 \repeat volta 2 {g1|1}
>   }
>>>
>
> To avoid to print chords always, I used \set chordChanges = ##t..... but  I
> would like to keep displaying the chord at the beginning of repeat.

\version "2.21.0"
<<
  \new Staff   {
    c'4 d' e' f'
    \repeat volta 2 {c' d' e' f' | g' a' b' c''}
  }
  \new ChordNames \with { chordChanges = ##t } {
    g1 \once \unset chordChanges \repeat volta 2 {g1|1}
  }
>>

--
David Kastrup

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: chord and chordChanges

Gianmaria Lari

\version "2.21.0"
<<
  \new Staff   {
    c'4 d' e' f'
    \repeat volta 2 {c' d' e' f' | g' a' b' c''}
  }
  \new ChordNames \with { chordChanges = ##t } {
    g1 \once \unset chordChanges \repeat volta 2 {g1|1}
  }
>>

Thank you David, this is what I wanted!

In the meantime I also found another working solution, but it's not neat. I post it here anyway:

\version "2.21.0"
<<
  \new Staff   {
    c'4 d' e' f'
    \repeat volta 2 {c' d' e' f' | g' a' b' c''}
  }
  \new ChordNames \with { chordChanges = ##t } {
    g1 \once \unset chordChanges \repeat volta 2 {g1|1}
  }
>>

g.

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: chord and chordChanges

David Kastrup
Gianmaria Lari <[hidden email]> writes:

>>
>>
>> \version "2.21.0"
>> <<
>>   \new Staff   {
>>     c'4 d' e' f'
>>     \repeat volta 2 {c' d' e' f' | g' a' b' c''}
>>   }
>>   \new ChordNames \with { chordChanges = ##t } {
>>     g1 \once \unset chordChanges \repeat volta 2 {g1|1}
>>   }
>> >>
>>
>
> Thank you David, this is what I wanted!
>
> In the meantime I also found another working solution, but it's not neat. I
> post it here anyway:
>
> \version "2.21.0"
> <<
>   \new Staff   {
>     c'4 d' e' f'
>     \repeat volta 2 {c' d' e' f' | g' a' b' c''}
>   }
>   \new ChordNames \with { chordChanges = ##t } {
>     g1 \once \unset chordChanges \repeat volta 2 {g1|1}
>   }
>>>

That does not look significantly worse.  Mostly because it is literally
the same.

--
David Kastrup

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: chord and chordChanges

Gianmaria Lari


On Thu, 9 May 2019 at 14:18, David Kastrup <[hidden email]> wrote:
Gianmaria Lari <[hidden email]> writes:

>>
>>
>> \version "2.21.0"
>> <<
>>   \new Staff   {
>>     c'4 d' e' f'
>>     \repeat volta 2 {c' d' e' f' | g' a' b' c''}
>>   }
>>   \new ChordNames \with { chordChanges = ##t } {
>>     g1 \once \unset chordChanges \repeat volta 2 {g1|1}
>>   }
>> >>
>>
>
> Thank you David, this is what I wanted!
>
> In the meantime I also found another working solution, but it's not neat. I
> post it here anyway:
>
> \version "2.21.0"
> <<
>   \new Staff   {
>     c'4 d' e' f'
>     \repeat volta 2 {c' d' e' f' | g' a' b' c''}
>   }
>   \new ChordNames \with { chordChanges = ##t } {
>     g1 \once \unset chordChanges \repeat volta 2 {g1|1}
>   }
>>>

That does not look significantly worse.  Mostly because it is literally
the same.

ahem.... apologies, I pasted your solution instead of this one:

\version "2.21.0"
<<
  \new Staff   {
    c'4 d' e' f'
    \repeat volta 2 {c' d' e' f' | g' a' b' c''}
  }
  \new ChordNames {
    
    g1 \repeat volta 2 {g1|\set chordChanges = ##t 1}
  }
>>

g.

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user