dear list,

I'm trying to extend the example given in NR 5.1.2 "Creating contexts" to separate music and guitar annotations (a very neat feature btw), by funneling the music
itself and another expression with guitar instructions, but I'm facing some
problems: fingerings do partly work, but string numbers, right hand strokes and
some fingering commands do not (see examples below and attached images).

It probably has something to do with the fact that string numbers and right hand
fingers must be put inside a chord, but skips cannot, but I'm stuck here.

Is this a limitation or am I doing something wrong here? perhaps this will work in
2.13?

Many thanks in advance,

Vicente

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.12.3"

music = \relative c'' {
        <c>4      
        <c>       
        <c>
        <c>

        <c>
        \stemUp
        <c>
}

fingerings = {
        s4-1    % prints ok, cool
        s4\2    % doesn't print, what if <s4\2> would be legal?
        s4-\rightHandFinger #2  % doesn't print
        \set fingeringOrientations = #'(down) % doesn't work
        s4-2    
        
        \once \override Fingering #'staff-padding = #'() % *does* work, cool
        s4-3    
        \once \override Fingering #'add-stem-support = ##f % doesn't work
        s4-1
}

\score {
        <<
                \new Staff \context Voice = "A" \music
                \context Voice = "A" \fingerings
        >>
}

%%%%%%%%%%%%%%%%%%%% EXAMPLE END %%%%%%%%%%%%%%

the following code with the very same previous instructions attached to
the music itself works as expected:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.12.3"

music = \relative c'' {
        <c-1>4    
        <c\2>     
        <c-\rightHandFinger #2 >
        \once \set Staff.fingeringOrientations = #'(down)
        <c-2>

        \once \override Fingering #'staff-padding = #'()
        <c-3>
        \stemUp
        \once \override Fingering #'add-stem-support = ##f
        <c-1>
}

\score {
                \new Staff \context Voice = "A" \music
}

%%%%%%%%%%%%%%%%%%%% EXAMPLE END %%%%%%%%%%%%%%

<<attachment: gtr-tst-ok.png>>

<<attachment: gtr-tst-wrong.png>>

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

Reply via email to