lilypond-user
[Top][All Lists]
Advanced

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

Re: Beginners first attempt


From: Rick Hansen (aka RickH)
Subject: Re: Beginners first attempt
Date: Mon, 8 May 2006 09:06:46 -0700 (PDT)

I'm not on a computer where I can test this now, but a cursory glance tells
me that your containment of the \center-align { } function is not correct. 
All the things that you want "stacked vertically" should be contained in the
center-align outer brackets, you are ending your \center-align column with
only one line item in it.

Here is an example that stacks the name of the chord as one line, and the
fret diagram as the second line, anything enclosed within \center-align will
keep them "glued together" for you in a vertical column.  The things that
you want to stay "glued together" horizontally should be enclosed in a \line
{ } container.  (note \fret-diagram-terse does not require a \line container
because it it a single markup character)  whereas the chord name consists of
multiple characters that need to stay adjacent horizontally and treated as a
single entity for the \center-align column creator.  The term \center-align
is misleading, it's really a column creator, if you were using web
consortium standard CSS then, \line and \center-align are analygous to the
display:inline; and display:block; style properties respectively.

example that stacks 2 lines:

\markup { \center-align { 
\line { F \super \line { 7 \raise #0.5 \flat 9 } } 
\fret-diagram-terse #"2;x;1;2;1;x;" 
}
}








Nick-60 wrote:
> 
> I have written out a simple instructional guitar usage of America's
> "Sister Golden Hair". There are several mistakes problems with the file.
> 
> #1 This was done in a very linear fashion, I tried to use variables for
> the chords and include them from another file, but couldn't make that
> work.
> 
> # The lyrics are messed up I want to space the words out under specific
> notes. I would also like to space some of the notes out to be able to
> fit specific words and syllables under particular notes
> 
> #3 The chords at the bottom should line up horizontally but they seem to
> want to do it vertically
> 
> Any help on these problems would be appreciated
> 
> Nick
> 
> 
> \version "2.8.1"
> 
> \include "Chords.ly"
> 
> \paper {
>   #(define dump-extents #t)
> 
>   indent = 0\mm
>   linewidth = 160\mm - 2.0 * 0.4\in
>   raggedright = ##t
> }
> 
> \layout {
> 
> }
> 
> 
> \header {
>   title = "Sister Golden Hair"
>   composer = "America"
> }
> 
> {
>         <gis dis' gis' b' dis'' gis''>4 \downbow
>         ^\markup{ \center-align { \line { "C#m" }}}
>         ^\markup{ \center-align { \line { "Intro" }}}
>         <gis dis' gis' b' dis'' gis''>4 \downbow
>         <gis dis' gis' b' dis'' gis''>4 \downbow
>         <gis dis' gis' b' dis'' gis''>4 \upbow
> 
>          4 \downbow
>     ^\markup{ \center-align { \line { "A" }}}
>          4 \downbow
>          4 \downbow
>          4 \upbow
> 
>         <e b  e' gis' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "E" }}}
>         <e b  e' gis' b' e''>4 \downbow
>         <e b  e' gis' b' e''>4 \downbow
>         <e b  e' gis' b' e''>4 \upbow
> 
>         <e b  e' gis' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "E" }}}
>         <e b  e' gis' b' e''>4 \downbow
>         <e b  e' gis' b' e''>4 \downbow
>         <e b  e' gis' b' e''>4 \upbow
> 
>         <gis dis' gis' c'' d'' g''>4 \downbow
>     ^\markup{ \center-align { \line { "G#m" }}}
>         <gis dis' gis' c'' d'' g''>4 \downbow
>         <gis dis' gis' c'' d'' g''>4 \downbow
>         <gis dis' gis' c'' d'' g''>4 \upbow
> 
> }
> {
> 
>         <gis dis' gis' c'' d'' g''>4 \downbow
>     ^\markup{ \center-align { \line { "G#m" }}}
>         ^\markup{ \center-align { \line { "Verse" }}}
>         <gis dis' gis' c'' d'' g''>4 \downbow
>         <gis dis' gis' c'' d'' g''>4 \downbow
>         <gis dis' gis' c'' d'' g''>4 \upbow
> 
>         <gis dis' gis' b' dis'' gis''>4 \downbow
>         ^\markup{ \center-align { \line { "C#m" }}}
>         <gis dis' gis' b' dis'' gis''>4 \downbow
>         <gis dis' gis' b' dis'' gis''>4 \downbow
>         <gis dis' gis' b' dis'' gis''>4 \upbow
> 
>     <fis b fis' b' dis''' fis'''>4 \downbow
>         ^\markup{ \center-align { \line { "B" }}}
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \upbow
> 
>     <e a e' a' cis'' e''>4 \downbow
>         ^\markup{ \center-align { \line { "A" }}}
>     <e a e' a' cis'' e''>4 \downbow
>     <e a e' a' cis'' e''>4 \downbow
>     <e a e' a' cis'' e''>4 \upbow
> 
>     <e a e' a' cis'' e''>4 \downbow
>         ^\markup{ \center-align { \line { "A" }}}
>     <e a e' a' cis'' e''>4 \downbow
>     <e a e' a' cis'' e''>4 \downbow
>     <e a e' a' cis'' e''>4 \upbow
> 
> }
> {
> 
>         <e b  e' gis' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "E" }}}
>         <e b  e' gis' b' e''>4 \upbow
>         <e b  e' gis' b' e''>4 \downbow
>         <e b  e' gis' b' e''>4 \upbow
>         \bar "|"
> 
>         <e b  e' gis' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "E" }}}
>         <e b  e' gis' b' e''>4 \upbow
>         <e b  e' gis' b' e''>4 \downbow
>         <e b  e' gis' b' e''>4 \upbow
>         \bar "|"
> 
>         <gis dis' gis' c'' d'' g''>4 \downbow
>     ^\markup{ \center-align { \line { "G#m" }}}
>         <gis dis' gis' c'' d'' g''>4 \upbow
>         <gis dis' gis' c'' d'' g''>4 \downbow
>         <gis dis' gis' c'' d'' g''>4 \upbow
>         \bar "|"
> 
>         <gis dis' gis' c'' d'' g''>4 \downbow
>     ^\markup{ \center-align { \line { "G#m" }}}
>         <gis dis' gis' c'' d'' g''>4 \upbow
>         <gis dis' gis' c'' d'' g''>4 \downbow
>         <gis dis' gis' c'' d'' g''>4 \upbow
>         \bar "|"
> 
>     <e a e' a' cis'' e''>4 \downbow
>         ^\markup{ \center-align { \line { "A" }}}
>     <e a e' a' cis'' e''>4 \upbow
>     <e a e' a' cis'' e''>4 \downbow
>     <e a e' a' cis'' e''>4 \upbow
> 
>         <e b  e' gis' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "E" }}}
>         <e b  e' gis' b' e''>4 \upbow
>         <e b  e' gis' b' e''>4 \downbow
>         <e b  e' gis' b' e''>4 \upbow
> 
>         <gis dis' gis' c'' d'' g''>4 \downbow
>     ^\markup{ \center-align { \line { "G#m" }}}
>         <gis dis' gis' c'' d'' g''>4 \upbow
>         <gis dis' gis' c'' d'' g''>4 \downbow
>         <gis dis' gis' c'' d'' g''>4 \upbow
>         \bar "|"
> 
>         <gis dis' gis' c'' d'' g''>4 \downbow
>     ^\markup{ \center-align { \line { "G#m" }}}
>         <gis dis' gis' c'' d'' g''>4 \upbow
>         <gis dis' gis' c'' d'' g''>4 \downbow
>         <gis dis' gis' c'' d'' g''>4 \upbow
>         \bar "|"
> 
>     <e a e' a' cis'' e''>4 \downbow
>         ^\markup{ \center-align { \line { "A" }}}
>     <e a e' a' cis'' e''>4 \upbow
>     <e a e' a' cis'' e''>4 \downbow
>     <e a e' a' cis'' e''>4 \upbow
> 
>         <fis cis' fis' a' cis'' fis''>4 \downbow
>         ^\markup{ \center-align { \line { "F#m" }}}
>         <fis cis' fis' a' cis'' fis''>4 \upbow
>         <fis cis' fis' a' cis'' fis''>4 \downbow
>         <fis cis' fis' a' cis'' fis''>4 \upbow
> 
>         <gis dis' gis' b' dis'' gis''>4 \downbow
>         ^\markup{ \center-align { \line { "C#m" }}}
>         <gis dis' gis' b' dis'' gis''>4 \upbow
>         <gis dis' gis' c'' d'' g''>4 \downbow
>     ^\markup{ \center-align { \line { "G#m" }}}
>         <gis dis' gis' c'' d'' g''>4 \upbow
> 
>     <e a e' a' cis'' e''>4 \downbow
>         ^\markup{ \center-align { \line { "A" }}}
>     <e a e' a' cis'' e''>4 \upbow
>     <e a e' a' cis'' e''>4 \downbow
>     <e a e' a' cis'' e''>4 \upbow
> 
>         <fis cis' fis' a' cis'' fis''>4 \downbow
>         ^\markup{ \center-align { \line { "F#m" }}}
>         <fis cis' fis' a' cis'' fis''>4 \upbow
>         <fis cis' fis' a' cis'' fis''>4 \downbow
>         <fis cis' fis' a' cis'' fis''>4 \upbow
> 
>     <e a e' a' cis'' e''>4 \downbow
>         ^\markup{ \center-align { \line { "A" }}}
>     <e a e' a' cis'' e''>4 \upbow
>     <e a e' a' cis'' e''>4 \downbow
>     <e a e' a' cis'' e''>4 \upbow
> 
>         <e b  e' gis' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "E" }}}
>         <e b  e' gis' b' e''>4 \upbow
>         <e b  e' a' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "Esus4" }}}
>         <e b  e' a' b' e''>4 \upbow
> 
>         <e b  e' gis' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "E" }}}
>         <e b  e' gis' b' e''>4 \upbow
>         <e b  e' gis' b' e''>4 \downbow
>         <e b  e' gis' b' e''>4 \upbow
> 
> }
>         \addlyrics {
>                                  Well I tried to make it Sunday.
>                                  But I got so damn depressed
>                                  that I set my sights on Monday
>                                  and I got myself undressed.
>                                  Im not ready for the altar,
>                                  but I do agree theres times,
>                                  when a woman sure can be a friend of
> mine }
>         \addlyrics { Well I keep on thinking bout you
>                                  Sister Golden hair delight
>                                 And I just can't live without you
>                                 Cant you see it in my eyes
>                                 I've been one poor coresspondent
>                                 Ive beeb too to hard to find
>                                 But it doesnt mean
>                                 You aint been on my mind
>                                  }
> 
> {
>         <e b  e' gis' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "E" }}}
>         ^\markup{ \center-align { \line { "Chorus" }}}
>         <e b  e' gis' b' e''>4 \upbow
>         r4
>         r4
> 
>     <fis b fis' b' dis''' fis'''>4 \downbow
>         ^\markup{ \center-align { \line { "B" }}}
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \upbow
> 
>     <fis b fis' b' dis''' fis'''>4 \downbow
>         ^\markup{ \center-align { \line { "B" }}}
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \upbow
> 
>          4 \downbow
>     ^\markup{ \center-align { \line { "A" }}}
>          4 \downbow
>          4 \downbow
>          4 \upbow
> 
>         <e b  e' gis' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "E" }}}
>         <e b  e' gis' b' e''>4 \upbow
>         <e b  e' gis' b' e''>4 \downbow
>         <e b  e' gis' b' e''>4 \upbow
> 
>     <fis b fis' b' dis''' fis'''>4 \downbow
>         ^\markup{ \center-align { \line { "B" }}}
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \upbow
> 
>     <fis b fis' b' dis''' fis'''>4 \downbow
>         ^\markup{ \center-align { \line { "B" }}}
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \upbow
> 
>          4 \downbow
>     ^\markup{ \center-align { \line { "A" }}}
>          4 \downbow
>          4 \downbow
>          4 \upbow
> 
>         <e b  e' gis' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "E" }}}
>         <e b  e' gis' b' e''>4 \upbow
>         <e b  e' gis' b' e''>4 \downbow
>         <e b  e' gis' b' e''>4 \upbow
> 
> 
>         <fis b fis' a' cis'' fis''>1 \downbow
>         ^\markup{ \center-align { \line { "F#m7" }}}
> 
>         <gis b  e' gis' b' e''>1 \downbow
>     ^\markup{ \center-align { \line { "G#m/5+" }}}
> 
>         <e' cis'' e'' b''>1 \downbow
>     ^\markup{ \center-align { \line { "A9" }}}
> }
> 
> 
>         \addlyrics {
>                                 Will you meet me in the middle
>                                 Will you meet me in the air
>                                 Will you love me just a little
>                                 Just enough to show you care
>                                 Well I tried to make it
>                                 I dont mind saying
>                                 I just cant take it.
>                                 }
> 
> \markup{ \left-align { \line { "Re-intro" }}}
> 
> \markup{ \left-align { \line { "Chorus" }}}
> 
> {
> 
>         <e a d a' d'' e''>4 \downbow
>     ^\markup{ \center-align { \line { "Asus4" }}}
>         <e a d a' d'' e''>4 \downbow
>          4 \downbow
>     ^\markup{ \center-align { \line { "A" }}}
>          4 \downbow
> 
>     <fis b fis' b' dis''' fis'''>4 \downbow
>         ^\markup{ \center-align { \line { "B" }}}
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \upbow
> 
>     <fis b fis' b' dis''' fis'''>4 \downbow
>         ^\markup{ \center-align { \line { "B" }}}
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \upbow
> 
>          4 \downbow
>     ^\markup{ \center-align { \line { "A" }}}
>          4 \downbow
>          4 \downbow
>          4 \upbow
> 
>         <e b  e' gis' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "E" }}}
>         <e b  e' gis' b' e''>4 \upbow
>         <e b  e' gis' b' e''>4 \downbow
>         <e b  e' gis' b' e''>4 \upbow
> 
>     <fis b fis' b' dis''' fis'''>4 \downbow
>         ^\markup{ \center-align { \line { "B" }}}
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \upbow
> 
>     <fis b fis' b' dis''' fis'''>4 \downbow
>         ^\markup{ \center-align { \line { "B" }}}
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \upbow
> 
>          4 \downbow
>     ^\markup{ \center-align { \line { "A" }}}
>          4 \downbow
>          4 \downbow
>          4 \upbow
> 
>         <e b  e' gis' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "E" }}}
>         <e b  e' gis' b' e''>4 \upbow
>         <e b  e' gis' b' e''>4 \downbow
>         <e b  e' gis' b' e''>4 \upbow
> 
>     <fis b fis' b' dis''' fis'''>4 \downbow
>         ^\markup{ \center-align { \line { "B" }}}
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \upbow
> 
>     <fis b fis' b' dis''' fis'''>4 \downbow
>         ^\markup{ \center-align { \line { "B" }}}
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \downbow
>     <fis b fis' b' dis''' fis'''>4 \upbow
> 
>          4 \downbow
>     ^\markup{ \center-align { \line { "A" }}}
>          4 \downbow
>          4 \downbow
>          4 \upbow
> 
>         <e b  e' gis' b' e''>4 \downbow
>     ^\markup{ \center-align { \line { "E" }}}
>         <e b  e' gis' b' e''>4 \upbow
>         <e b  e' gis' b' e''>4 \downbow
> }
> 
> 
> \markup{ \center-align { \line { "C#m" }}}
> \markup \fret-diagram-terse #"4-1-(;4-1;6-3;6-4;5-2;4-1-);"
> 
> \markup{ \center-align { \line { "A" }}}
> \markup \fret-diagram-terse #"5-1-(;7;7;6;5-1;5-1-);"
> 
> 
> 
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

--
View this message in context: 
http://www.nabble.com/Beginners-first-attempt-t1575027.html#a4283323
Sent from the Gnu - Lilypond - User forum at Nabble.com.





reply via email to

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