Chord Chart - no lines

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

Chord Chart - no lines

joeyc
This example from the docs does what I want... It prints a chord chart with just Bar Lines, and the chord symbols...  but I would like to modify it...

1.)  I would like to add a bar line at the beginning measure
2.)  How can I add more than one chord per measure
3.)  How would I add the measure repeat symbol

\new ChordNames \with {
\override BarLine #’bar-size = #4
voltaOnThisStaff = ##t
\consists Bar_engraver
\consists "Volta_engraver"
}
\repeat volta 2 \chordmode {
f1:maj f:7 bes:7
c:maj
} \alternative {
es e
}
Reply | Threaded
Open this post in threaded view
|

Re: Chord Chart - no lines

Mats Bengtsson-6


joeyc (sent by Nabble.com) wrote:

> This example from the docs does what I want... It prints a chord chart
> with just Bar Lines, and the chord symbols...  but I would like to
> modify it...
>
> 1.)  I would like to add a bar line at the beginning measure

Since that's not standard notation practice for ordinary scores, I guess
the easiest solution is simply to add an upbeat which just contains
a spacer rest, i.e. an invisible note.:
\partial 8 s8 | f1:maj ...
just remember to add the corresponding spacer rest in any other staves
so the rhythm matches.

> 2.)  How can I add more than one chord per measure

You specify the duration of each chord exactly the same way as the
duration of normal notes, see "7.2.2 Chords mode".

> 3.)  How would I add the measure repeat symbol

They are handled by yet another engraver, so you need to do
\new ChordNames \with{
  ...
\consists "Percent_repeat_engraver"
}

Then you can use the \repeat percent 3 {...} command as usual, see
"6.7.7 Measure repeats".

  /Mats

> \new ChordNames \with {
> \override BarLine #?bar-size = #4
> voltaOnThisStaff = ##t
> \consists Bar_engraver
> \consists "Volta_engraver"
> }
> \repeat volta 2 \chordmode {
> f1:maj f:7 bes:7
> c:maj
> } \alternative {
> es e
> }
>
> ------------------------------------------------------------------------
> Sent from the Gnu - Lilypond - User
> <http://www.nabble.com/Chord-Chart---no-lines-t553587.html#a1487677>
> forum at Nabble.com.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>lilypond-user mailing list
>[hidden email]
>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: [hidden email]
        WWW: http://www.s3.kth.se/~mabe
=============================================



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

Re: Chord Chart - no lines

joeyc
Thanks Mats,

I've included my resulting working update to the example with all your instructions so others in the future can see...

cheers,
joey

\new ChordNames \with {
\override BarLine #'bar-size = #4
voltaOnThisStaff = ##t
\consists Bar_engraver
\consists "Volta_engraver"
\consists "Percent_repeat_engraver"
}
\repeat volta 2 \chordmode {
\partial 8 s8 | f2:maj f:7 \repeat "percent" 2 {bes1:7}
c:maj
} \alternative {
es e
}
Reply | Threaded
Open this post in threaded view
|

Re: Chord Chart - no lines

joeyc
The solution for the bar line only works well with one line of music... if the chord progression is long enough to go to the second line, then things get messed up... but I found I can just repeat the whole structure again like below...  my question is...  Why do you have to repeat the \new ChordNames and all the engravers?  I found if I didn't do this, then I got a staff and the chords were notes...

\new ChordNames \with {
\override BarLine #'bar-size = #4
voltaOnThisStaff = ##t
\consists Bar_engraver
\consists "Volta_engraver"
\consists "Percent_repeat_engraver"
}
\repeat volta 2 \chordmode {
\partial 8 s8 | f2:maj f:7 \repeat "percent" 2 {bes1:7}
c:maj c:maj c:maj c:maj c:maj c:maj c:maj
} \alternative {
es e
}
\new ChordNames \with {
\override BarLine #'bar-size = #4
voltaOnThisStaff = ##t
\consists Bar_engraver
\consists "Volta_engraver"
\consists "Percent_repeat_engraver"
}
\repeat volta 2 \chordmode {
\partial 8 s8 | f2:maj f:7 \repeat "percent" 2 {bes1:7}
c:maj c:maj c:maj c:maj c:maj c:maj c:maj
} \alternative {
es e
}
Reply | Threaded
Open this post in threaded view
|

Re: Chord Chart - no lines

Mats Bengtsson-6
You can insert as much music as you wish within
\new Chords \with {...} \chordmode{...}

For some reason, you had written the \repeat command outside \chordmode,
just move it inside, like in the following example.
\new ChordNames \with {
\override BarLine #'bar-size = #4
voltaOnThisStaff = ##t
\consists Bar_engraver
\consists "Volta_engraver"
\consists "Percent_repeat_engraver"
}
\chordmode{ \repeat volta 2  {
\partial 8 s8 | f2:maj f:7 \repeat "percent" 2 {bes1:7}
c:maj c:maj c:maj c:maj c:maj c:maj c:maj
} \alternative {
es e }
\repeat volta 2 {
f2:maj f:7 \repeat "percent" 2 {bes1:7}
c:maj c:maj c:maj c:maj c:maj c:maj c:maj
} \alternative {
es e
}
}

   /Mats


joeyc (sent by Nabble.com) wrote:

> The solution for the bar line only works well with one line of
> music... if the chord progression is long enough to go to the second
> line, then things get messed up... but I found I can just repeat the
> whole structure again like below...  my question is...  Why do you
> have to repeat the \new ChordNames and all the engravers?  I found if
> I didn't do this, then I got a staff and the chords were notes...
>
> \new ChordNames \with {
> \override BarLine #'bar-size = #4
> voltaOnThisStaff = ##t
> \consists Bar_engraver
> \consists "Volta_engraver"
> \consists "Percent_repeat_engraver"
> }
> \repeat volta 2 \chordmode {
> \partial 8 s8 | f2:maj f:7 \repeat "percent" 2 {bes1:7}
> c:maj c:maj c:maj c:maj c:maj c:maj c:maj
> } \alternative {
> es e
> }
> \new ChordNames \with {
> \override BarLine #'bar-size = #4
> voltaOnThisStaff = ##t
> \consists Bar_engraver
> \consists "Volta_engraver"
> \consists "Percent_repeat_engraver"
> }
> \repeat volta 2 \chordmode {
> \partial 8 s8 | f2:maj f:7 \repeat "percent" 2 {bes1:7}
> c:maj c:maj c:maj c:maj c:maj c:maj c:maj
> } \alternative {
> es e
> }
> ------------------------------------------------------------------------
> Sent from the Gnu - Lilypond - User
> <http://www.nabble.com/Chord-Chart---no-lines-t553587.html#a1496965>
> forum at Nabble.com.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>lilypond-user mailing list
>[hidden email]
>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: [hidden email]
        WWW: http://www.s3.kth.se/~mabe
=============================================



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

Re: Chord Chart - no lines

joeyc
Thanks Mats,

that makes sense...

I had just copied the original from the documentation, and it has the \repeat outside of \chordmode...

thanks,
joey
Reply | Threaded
Open this post in threaded view
|

Re: Chord Chart - no lines

Mats Bengtsson-6
I changed the documentation to avoid future confusion.

   /Mats

joeyc (sent by Nabble.com) wrote:

> Thanks Mats,
>
> that makes sense...
>
> I had just copied the original from the documentation, and it has the
> \repeat outside of \chordmode...
>
> thanks,
> joey
> ------------------------------------------------------------------------
> Sent from the Gnu - Lilypond - User
> <http://www.nabble.com/Chord-Chart---no-lines-t553587.html#a1512140>
> forum at Nabble.com.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>lilypond-user mailing list
>[hidden email]
>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: [hidden email]
        WWW: http://www.s3.kth.se/~mabe
=============================================



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