lilypond-user
[Top][All Lists]
Advanced

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

Re: Tuning description at beginning of TabStaff


From: Stefan E. Mueller
Subject: Re: Tuning description at beginning of TabStaff
Date: Mon, 30 Jan 2023 22:45:58 +0100 (CET)

Thanks Valentin and Federico for your suggestions and examples -

I needed to tweak things a little bit in order to line up the letters to
the tablature lines.

This is what I came up with:

\new TabStaff  \with {
\override InstrumentName.self-alignment-X = #RIGHT
instrumentName = \markup {\center-column {
  " "
  \raise #-0.4
 "Ac. Guitar"
 \override #'(font-size . -1.5)
 "(Double Drop-D)"
 " "
} \override #'(font-size . -3.2) \override #`(baseline-skip . 1.5)
\override #'(font-name . "Arial")
\raise #-1.2 \right-column {
  "d" \raise #-0.1 "b"  "g" \raise #-0.2 "D" "A" "D"
}}
      shortInstrumentName = "git"
  } {
     \set TabStaff.stringTunings = \stringTuning <d, a, d g b d'>
     {d,8\6 d'\2 d\4 d'\1  d,8\6 d'\2 d4\4 } }

}

This works for me, but I wonder if the vertical position of the individual
tablature lines could be accessed and used for the positioning of the
letters instead of doing things by hand.

        Stefan

--
Stefan E. Mueller

stefan.e.mueller@gmx.de

On Sun, 29 Jan 2023, Federico Bruni wrote:

Il giorno dom 29 gen 2023 alle 22:20:14 +0100, Stefan E. Mueller
<stefan.e.mueller@gmx.de> ha scritto:
What I would like to know is whether it is possible to give the tuning
notes right before the first Tabstaff, vertically aligned to the tablature
lines. I tried accomplish this using "instrumentName", but it does not
align nicely:

Here's my saved list of alternative tunings:

% Dropped D
tuningDropD = \markup {
\fontsize #-4
\override #'(baseline-skip . 1.5)
\column \override #'(font-name . "Arial Bold") {
  E B G D A D
}
}

% Open G
tuningOpenG = \markup {
\fontsize #-4
\override #'(baseline-skip . 1.5)
\column \override #'(font-name . "Arial Bold") {
  D B G D G D
}
}

% Open D
tuningOpenD = \markup {
\fontsize #-4
\override #'(baseline-skip . 1.5)
\column \override #'(font-name . "Arial Bold") {
  D A \concat { F \override #'(font-name . "Emmentaler-16") \small ♯ } D A
D
}
}

% Open E
guitar-open-e-tuning = \stringTuning <e, b, e e b e'>
tuningOpenE = \markup {
\fontsize #-4
\override #'(baseline-skip . 1.5)
\column \override #'(font-name . "Arial Bold") {
  E B E E B E
}
}

% Open A add4
guitar-open-a-add-four = \stringTuning <e, a, d e a cis'>
tuningOpenAaddFour = \markup {
\fontsize #-4
\override #'(baseline-skip . 1.5)
\column \override #'(font-name . "Arial Bold") {
  \concat { C \override #'(font-name . "Emmentaler-16") \small ♯ } A E D A
E
}



And a simple example:

\new TabStaff \with {
stringTunings = \guitar-open-g-tuning
instrumentName = \markup { " " \tuningOpenG }
}
{
d, g, d g b d'
}






reply via email to

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