On 2015-01-13 20:17, Pierre Perol-Schneider wrote:
How about :

\version "2.19.11"

\header {
   title="Pedal Steel Guitar - E9th"
}


PSGE-tuning = \stringTuning <
   c,,,% this tune's only to show one more string
   b, d e fis gis b e' gis' dis' fis'>

Notes = \transpose c c' { <e a cis'>2 e'4}

psgNotes = {
   %%\set TabStaff.minimumFret = #8
   \set TabStaff.restrainOpenStrings = ##t
   %%\override StringNumber #'transparent = ##t
   <<
     e'2\6
      \tweak TabNoteHead.stencil #(lambda (grob)
           (grob-interpret-markup grob #{ \markup\lower #.6 "8A" #}))
     g'2\5
     \tweak TabNoteHead.stencil #(lambda (grob)
           (grob-interpret-markup grob #{ \markup\lower #.6 "8F" #}))
     c''2\4
   >>
   e''4\4
}

\score {
   <<
     \new Staff { \clef "G" \key a \major \time 3/4 \Notes }
     \new TabStaff \with
     { stringTunings = \PSGE-tuning }
     {
       \psgNotes
     }
   >>
   \layout {
     \context {
       \TabVoice
       \override TabNoteHead.extra-offset = #'(0 . -.5)
       \override TabNoteHead.font-size = #-3
       \override TabNoteHead.whiteout = ##f
     }
   }
}
Hello Pierre,

Is it possible to make the same effect using the \rightHandFinger method you showed before?
That method was the simplest so I want to use it.

I have tried with adding c,,, to the tuning and this to the layout
\layout {
    \context {
      \TabVoice
      \consists New_fingering_engraver
      \override StrokeFinger.side-axis = #0
      \override StrokeFinger.X-offset = #1.1
      \override StrokeFinger.Y-offset = #-.1
      \override StrokeFinger.font-size = #-3
      \override StrokeFinger.whiteout = ##f
      \override StrokeFinger.extra-offset = #'(0 . -.5)
    }
  }

But only the letters are put between the lines the tab note is on the line.

// Anders
--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.
\version "2.19.11"

%% Pedals defs:
pedA = \rightHandFinger \markup\normal-text\bold\whiteout "A"
pedB = \rightHandFinger \markup\normal-text\bold\whiteout "B"
pedC = \rightHandFinger \markup\normal-text\bold\whiteout "C"
pedD = \rightHandFinger \markup\normal-text\bold\whiteout "D"
pedE = \rightHandFinger \markup\normal-text\bold\whiteout "E"
pedF = \rightHandFinger \markup\normal-text\bold\whiteout "F"


\header {
  title="Pedal Steel Guitar - E9th"
}


PSGE-tuning = \stringTuning <
    c,,, 
    b, d e fis gis b e' gis' dis' fis'>
    
Notes = { <e' a' cis''>2 e''4}

psgNotes = {
  %%\set TabStaff.minimumFret = #8
  \set TabStaff.restrainOpenStrings = ##t
  %%\override StringNumber #'transparent = ##t
  <<e'2\6 g'2\5\pedA c''2\4\pedF >> e''4\4
}

\score {
  <<
    \new Staff { \clef "G" \key a \major \time 3/4 \Notes }
    \new TabStaff \with
    { stringTunings = \PSGE-tuning }
    {
      \psgNotes
    }
  >>
  \layout {
    \context {
      \TabVoice
      \consists New_fingering_engraver
      \override StrokeFinger.side-axis = #0
      \override StrokeFinger.X-offset = #1.1
      \override StrokeFinger.Y-offset = #-.1
      \override StrokeFinger.font-size = #-3
      \override StrokeFinger.whiteout = ##f
      \override StrokeFinger.extra-offset = #'(0 . -.5)
    }
  }
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to