lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

separating music and guitar instructions


From: Vicente Solsona
Subject: separating music and guitar instructions
Date: Wed, 15 Sep 2010 19:53:31 +0200
User-agent: Opera Mail/10.61 (Linux)

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
Description: PNG image

Attachment: gtr-tst-wrong.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]