lilypond-user
[Top][All Lists]
Advanced

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

Re: vertical justification of fret-diagram


From: Klaus Blum
Subject: Re: vertical justification of fret-diagram
Date: Wed, 31 Dec 2014 01:13:14 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Hi Jinsong,

if you like to define all fret diagrams as markup, you can place them in an lyric line above the staff:

% -------------------------------------------------
\version "2.19.15"
fret-ees =  \markup {
  \fret-diagram #"s:0.5;6-x;5-x;4-5;3-3;2-4;1-3;c:2-1-2;"
}
<<
  \new Lyrics {
    \lyricmode {
      \fret-ees2 \fret-ees4 \fret-ees4
    }
  }
  \relative c'' {
    \key ees \major
    bes8 ees bes ees, g4 f
  }
>>
% -------------------------------------------------

A way of customizing the look of fret diagrams is shown in snippet 576:
http://lsr.di.unimi.it/LSR/Snippet?id=576

Exchanging a chord voicing is shown in snippet 810:
http://lsr.di.unimi.it/LSR/Snippet?id=810


Cheers,
Klaus



Am 31.12.2014 um 00:27 schrieb address@hidden:
------------------------------

Message: 5
Date: Tue, 30 Dec 2014 15:00:06 -0800
From: Jinsong Zhao
To: LilyPond Users <address@hidden>
Subject: vertical justification of fret-diagram
Message-ID: <address@hidden>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi there,

In the following snippet, I want to vertical justification of the three
fret-diagram.

\version "2.19.15"
fret-ees =  \markup {
        \fret-diagram #"s:0.5;6-x;5-x;4-5;3-3;2-4;1-3;c:2-1-2;"
}

\relative c'' {
    \key ees \major
    bes8 ^\fret-ees ees bes ees, g4 ^\fret-ees f ^\fret-ees
}

I can do that by \tweak extra-offset #'(x . y). However, it's not easy
to determine the exact values of x and y. Is there a convenient way to
keep them with same base-line?

By the way, how to make the mute symbol "x" at the same line of the curve?

I appreciate you for any suggestions.

Best regards,
Jinsong







reply via email to

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