lilypond-user
[Top][All Lists]
Advanced

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

Re: Positioning of Fret Diagrams and Chord Names


From: VSD
Subject: Re: Positioning of Fret Diagrams and Chord Names
Date: Thu, 28 Jul 2005 19:42:46 +0200
User-agent: Opera M2/8.01 (Win32, build 7642)

use #'extra-offset or #'padding. (as an alternative you could also add an invisible voice and attach the fret diagrams to the invisible notes in that voice)

to add chord names, use ChordNames instead of a 2nd markup. See section "Printing Chord Names" in the manual. use extra-offset to adjust the position of the chord names too.

e.g:

%%%%%%%%%%%%%%%%%

\version "2.6.0"

harmonies = \chordmode
{
  \override ChordNames.ChordName #'extra-offset = #'(10 . 0)
  r8 b4.:13
}

\score
{
  <<
     \context ChordNames \harmonies
     \context Staff
     {
       \override TextScript #'extra-offset = #'(10 . 0)
         a8 b4.~^\markup { \fret-diagram  #"6-x;5-2;4-4;3-2;2-2;1-4;"  } b4. a8
     }
  >>
}

%%%%%% EOF %%%%%%

you can customize the chord names notation to your taste (see chordNameExceptions in the regression tests).

greetings,

Vincent


On Thu, 28 Jul 2005 18:15:12 +0200, Sacha Standen <address@hidden> wrote:

Version 2.6.1

Is there any way of adjusting the position of fret diagrams, other than \right-align, \centre-align or \left-align? With the following input for example:

a8 b4.~^\markup { \left-align { \fret-diagram
    #"6-x;5-2;4-4;3-2;2-2;1-4;" } } b4. a8

I need to place the fret diagram above the 3rd quaver beat, rather than the 2nd. Is this possible?


Also, is it possible to integrate fret diagrams with chord names, or does one have to use a 2nd markup to type in the text? as here:

a8 b4.~^\markup { \left-align { \fret-diagram
  #"6-x;5-2;4-4;3-2;2-2;1-4;" } }
   ^\markup { \left-align { B13 } } b4. a8

The reason I ask is because it's very difficult to align the text centrally above the fret diagram. In other words both markups are positioned relative to a note position, but it seems not to be possible to position a 2nd markup relative to a 1st, or even a 1st markup relative to a non-event as in the examples above.

Regards

Sacha







reply via email to

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