|
From: | Federico Bruni |
Subject: | Re: TabStaff customization |
Date: | Sat, 14 Apr 2018 11:31:13 +0200 |
Il giorno sab 14 apr 2018 alle 10:19, Menu Jacques <address@hidden> 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 } }
[Prev in Thread] | Current Thread | [Next in Thread] |