lilypond-user
[Top][All Lists]
Advanced

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

Re: two beginners questions


From: mj
Subject: Re: two beginners questions
Date: Wed, 6 Apr 2016 09:20:51 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

Hi all,

Thanks very much for the kind reactions, both on- and offlist. My issues are solved. :-)

MJ

On 04/05/2016 05:12 PM, Phil Holmes wrote:
----- Original Message ----- From: "mj" <address@hidden>
To: <address@hidden>
Sent: Tuesday, April 05, 2016 2:43 PM
Subject: two beginners questions


Hi,

Just trying out lilypond. I have created my first file, using the "new
from template" function of frescobaldi.

I am trying to alter two things:

- make chord names display smaller
and
- get the correct fret guitar diagrams, like the ones shown in the
docs here:
http://lilypond.org/doc/v2.19/Documentation/notation/predefined-fretboard-diagrams#diagrams-for-guitar


(because all my fret diagrams seem to display wrong....)

Below is my .ly file.

Tips or trics..? Thanks in advance!

\version "2.19.2"

\header {
  title = ""
}

global = {
  \time 6/8
  \key e \minor
}

chordNames = \chordmode {
  \global
e4.:m b:m | e:m b:m | e:m d | g g | g d | e:m b:m | e:m b:m | e:m e:m

}

melody = \relative e' {
  \global
  e4 g8 fis4. | e4 g8 fis4. | b4 b8 a8 d4 | b4.~ b4. |
  d4 b8 a4 b8 | g8. b16 a g fis4 d8 | e8. fis16 g a b4 g8 | e4. e'4.
\bar "|."

}

\score {
<<
    \new ChordNames \chordNames
    \new FretBoards \chordNames
     \new Staff { \melody }
  >>

\layout {
  \context {
    \Score
    \remove "Bar_number_engraver"
      }
}
}

To get guitar fretboards, add

\include "predefined-guitar-fretboards.ly"

at the top of your file.  One way to make the chordnames smaller is to add:

\context { \ChordNames
  \override ChordName #'font-size = #-1
}

to your layout block.

--
Phil Holmes






reply via email to

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