An easy fix was to force the string mark to be under the staff using underscore. { a,2.-2 | d,2.-1_\5 | g2._\4 | c,2. | }>>
-G On Wed, Feb 22, 2017 at 9:55 PM, Gilles Peltzer <gfpelt...@gmail.com> wrote: > Hi Thomas, > Thanks for the help. I understand the logic and giving the priority to > open strings is a good default. > This is why I wanted to use the string number in the base line: > { a,2.-2 | d,2.-1\5 | g2.\4 | c,2. | }>> > Doing so made the TABS look ok but the \5 on the d appears shifted to the > melody line on the Staff. > I should find a way to force the string mark to appear next to the note it > applies to. > Thanks, > -G > > On Wed, Feb 22, 2017 at 12:58 PM, Thomas Morley <thomasmorle...@gmail.com> > wrote: > >> 2017-02-22 19:32 GMT+01:00 Gilles Peltzer <gfpelt...@gmail.com>: >> > Hello, >> > LiliPond version "2.18.2" >> > In the following example, the TABS indicate a free string for the first >> > notes of bar 2 and bar 3, which is not what I want. >> > If I indicate the string number for the d and g notes on the lower >> voice, >> > the TABS is correct but the indcations shifts to the upper voice on the >> > staff and overwrite the finger number. >> > The option \set TabStaff.restrainOpenStrings = ##t did not >> have >> > any effect. >> > >> > Thanks for the help. >> > -Gilles >> > >> > \layout { >> > indent = 0\mm >> > line-width = 180\mm >> > } >> > >> > music = \relative c' { >> > %line 5 >> > <<{ a''4-1 b-3 c-4 | c2-4^"CV" f,4-2\2 | g-4\2 a b-4 | b2-4^"CIII" >> e,4-3\2 >> > | } >> > \\ >> > % { a,2.-2 | d,2.-1 | g2. | c,2. >> > | }>> >> > { a,2.-2 | d,2.-1\5 | g2.\4 | c,2. >> > | }>> >> > \break >> > } >> > >> > \score { >> > << >> > \new Staff { >> > \clef "treble" >> > \time 3/4 >> > \music >> > } >> > \new TabStaff { >> > \set TabStaff.restrainOpenStrings = ##t >> > \transpose c' c \music >> > } >> > >> >> > } >> > >> > >> > _______________________________________________ >> > lilypond-user mailing list >> > lilypond-user@gnu.org >> > https://lists.gnu.org/mailman/listinfo/lilypond-user >> > >> >> Hi Gilles, >> >> from >> http://lilypond.org/doc/v2.19/Documentation/notation-big-pag >> e#default-tablatures >> >> "By default pitches are assigned to the lowest playing position on the >> fret-board (first position). Open strings are automatically preferred. >> If you would like a certain pitch to be played on a specific string >> you can add a string number indication to the pitch name. If you don’t >> want to have string number indications appear in traditional notation, >> you can override the respective stencil. Usually it will be more >> comfortable to define the playing position by using the value of >> minimumFret. The default value for minimumFret is 0. >> >> Even when minimumFret is set, open strings are used whenever possible. >> This behaviour can be changed by setting restrainOpenStrings to #t." >> >> So here's one possibility: >> >> \version "2.19.52" >> >> music = \relative c' { >> %line 5 >> <<{ >> a''4-1 b-3 c-4 | >> \set TabStaff.minimumFret = #5 >> \set TabStaff.restrainOpenStrings = ##t >> c2-4^"CV" f,4-2\2 | g-4\2 a b-4 | >> \set TabStaff.minimumFret = #3 >> b2-4^"CIII" e,4-3\2 | >> \unset TabStaff.minimumFret >> \set TabStaff.restrainOpenStrings = ##f >> } >> \\ >> { a,2.-2 | d,2.-1 | g2. | c,2. | }>> >> } >> >> \score { >> << >> \new Staff { >> \clef "treble" >> \time 3/4 >> \music >> } >> \new TabStaff { >> \transpose c' c \music >> } >> >> >> } >> >> HTH, >> Harm >> > >
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user