Il giorno sab 14 apr 2018 alle 10:19, Menu Jacques <imj-...@bluewin.ch> ha scritto:
Hello folks,

Is there a way to enforce a note name such a D instead of the fret number in a TabStaff?

That would be nice to display scordaturas.

Thanks for your help!

JM



\version "2.19.80"

\relative c {
  \new TabStaff {
    \omit Staff.TimeSignature
    \hide Stem
    \mark "DADGAD"
    \clef "TAB"
    < d a d' g a d >
  }
}


You may rearrange the definition of easyHeadsOn you find in property-init.ly. (changing NoteHead to TabNoteHead)

Here's an example (I've added a way of showing the guitar tuning which I took from the LSR):

\version "2.19.80"

% Tunings
% http://lsr.di.unimi.it/LSR/Snippet?id=658
tuningDadgad =
\markup {
 \with-dimensions #'(0 . 0.8) #'(0 . 1.0)
 \postscript #"/Arial-Bold findfont
               1.3 scalefont
               setfont -0.3 3.6 moveto
               (D) show -0.3 2.0 moveto
               (A) show -0.3 0.6 moveto
               (G) show -0.3 -0.8 moveto
               (D) show -0.3 -2.2 moveto
               (A) show -0.3 -3.6 moveto
               (D) show
               stroke"
}

easyTabHeadsOn = {
 \override TabNoteHead.stencil = #note-head::brew-ez-stencil
 \override TabNoteHead.font-family = #'sans
 \override TabNoteHead.font-series = #'bold
}
easyTabHeadsOff = {
 \revert TabNoteHead.stencil
 \revert TabNoteHead.font-family
 \revert TabNoteHead.font-series
}


\relative c {
 \new TabStaff {
   \omit Staff.TimeSignature
   \hide Stem
   \set stringTunings = #guitar-dadgad-tuning
   \set TabStaff.instrumentName = \markup { " " \tuningDadgad }
   \clef "tab"
   < d, a' d g a d >
   \easyTabHeadsOn d
   \easyTabHeadsOff d
 }
}





_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to