lilypond-user
[Top][All Lists]
Advanced

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

Re: modern, simple chord charts desired


From: Adam Monsen
Subject: Re: modern, simple chord charts desired
Date: Sun, 1 Apr 2007 00:39:13 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Mats Bengtsson <mats.bengtsson <at> ee.kth.se> writes:
[...]
> What happens is that the \mark allocates extra horizontal space (which 
> is strange
> since it doesn't do that when there is any ordinary stave in the score). 
> One solution
> is to replace the line
> \override RehearsalMark #'self-alignment-X = #LEFT
> by
> \override RehearsalMark #'X-extent = #'(0 . 0)
[...]
> One ugly workaround is to add a \skip between the two \mark commands.
> Of course, then you have to add the corresponding \skip in the chords.
> 
> Another workaround is to use a two-line \mark, using text markup commands.
> For some silly reasons, you need to do it like
>   \break \notemode {\mark \markup {\column{"CHORUS" "VERSE 3" }}}
> and you also have to add a setting
>       \override RehearsalMark #'baseline-skip = #'5
> in the \layout{...\context{\Score ... } } (e.g. directly below the other
> \override RehearsalMark ...).
> 
>    /Mats

And here's the final result! Thanks again.

http://img301.imageshack.us/my.php?image=grandmapage1bt8.png
http://img364.imageshack.us/my.php?image=grandmapage2dv6.png

Pros:
* I'm done. :)
* Looks pretty good
* transposing was easy!
* reuse chords for 1st & 2nd verses

Cons:
* This took me a heck of a lot of time, even with your (and others')
gracious help
* I don't understand what's going on in the source code; maintenance
would be a pain
* writing out the lyrics separate from the chords and trying to match
everything up
* grouping lyrical phrases in double quotes
* Other versions of this I've arranged fit onto one page
* last word "CHORUS" doesn't appear

Summary:
* I can probably make something in gvim or openoffice.org that doesn't
look quite as good and wouldn't be (as easily) transposable but would
take me much less time to make
(like: http://www.guntheranderson.com/v/data/grandmas.htm)
* I'm probably not going to use lilypond for chord charts like this
(stafless lead sheets, perhaps?) in the future

Source code:

\version "2.10.13"

\header {
  title = "Grandma's Feather Bed"
}

verse = \chordmode {
  d g d a:7
  \break
  r d g d a:7 d
  \break
  r d g d a:7
  \break
  r d g a:7 d
  \break
}

chorus = \chordmode {
  d g d
  \break
  d
  \break
  r e:7 a:7
  \break
  r d g d
  \break
  r g a:7 d
  \break
}

harmonies = \chordmode {
  \verse
  \chorus
  \verse

  % verse 3 is *slightly* different... lead off rest. :-/
  r d g d a:7
  \break
  r d g d a:7 d
  \break
  r d g d a:7
  \break
  r d g a:7 d
  \break
}

text = \lyricmode {
  \mark "VERSE 1"
  "When I was a" "little bitty boy"
  "just up off the" floor
  \break
  We "used to go down to" "grandma's house"
  "every month" "end or" so
  \break
  "We'd eat" "chicken pie and-a" "country ham and-a"
  "homemade butter on" bread
  \break
  "But the" "best darn thing about" "grandma's house was her"
  "great big" "feather bed" 
  \break

  \mark "CHORUS"
  "It was nine feet high, six feet wide and"
  "soft as a downy" chick
  \break
  "It was made from the feathers of forty-'leven geese"
  \break
  "Took a" "whole bolt of cloth for the" tick
  \break
  "It'd" "hold eight kids, four hound dogs and a"
  "piggy we stole from the" shed
  \break
  "We didn't get much sleep but we" "had a lot of fun on"
  "Grandma's feather" bed 
  \break

  \mark "VERSE 2"
  "After supper we'd" "sit around the fire, the"
  "old folks'd spit and" chew
  \break
  and "Pa would talk about the" "farm and the war and my"
  "Granny'd sing a" "ballad or" two
  \break
  "I'd" "sit and listen and" "watch the fire 'till the"
  "cobwebs filled my" head
  \break
  Next "thing I know I'd wake" "up in the morning in the"
  "middle of the old feather" bed 

  % \skip didn't seem to work, had to resort to this:
  \break \notemode {\mark \markup {\column{"CHORUS" "VERSE 3"}}}
  "Well I" "love my Ma, I" "love my Pa, love-a" "Granny and Grandpa" too
  \break
  Been "fishing with my uncle, " "rassled with my cousin I"
  "even" "kissed Aunt" "Lou (ew!)"
  \break
  But "if I ever had to" "make a choice, I" "guess it ought to be" said
  \break
  "That I'd" "trade 'em all plus the" "gal down the road for"
  "Grandma's feather" bed 
  \break

  % FIXME: should say "CHORUS"
  \break \notemode {\mark \markup {"CHORUS"}}
}

\score {
  <<
  \new ChordNames {
    \transpose d f' \harmonies
  }
  \new Lyrics \text
  >>
  \layout {
    % FIXME: wasted space during verses
    % FIXME: wasted space at top of page
    % FIXME: possible to fit whole song on one page?

    % prevents very first line indentation
    indent = 0
    % prevents right side justification
    ragged-right = ##t
    \context{
      \Lyrics
      % keeps everything on the page
      \override LyricText #'self-alignment-X = #LEFT
    }
    \context{
      \Score
      \remove Bar_number_engraver
      % prevents first lines from indenting
      \override RehearsalMark #'X-extent = #'(0 . 0)
      % so we can say CHORUS w/o lyrics & chords below
      \override RehearsalMark #'baseline-skip = #'5
    }
  }
}






reply via email to

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