Federico Bruni <fedel...@gmail.com> writes:

> I may use \shape to draw the slur in TabStaff, but it would break the slur
> shape in Staff:
>
> \shape #'((0 . -3) (0 . -1) (1 . -1) (0 . 0)) Slur
>   <a e'>8( ais a g)

Well, in this case you are lucky to be using the override mode of
\shape.  Making it tab-specific (as opposed to non-tab-specific) is
easy:

\version "2.18.2"

upper =  \relative c' {
  %\slurDown
  \shape #'((0 . -3) (0 . -1) (1 . -1) (0 . 0)) TabVoice.Slur
  <a e'>8( ais a g)
}

lower = \relative c {
  a1
}

\score {
  \new StaffGroup <<
    \new Staff = "guitar" <<
      \context Voice = "first voice" { \clef "G_8" \voiceOne  \upper }
      \context Voice = "second voice" { \clef "G_8" \voiceTwo  \lower }
    >>
    \new TabStaff = "tab" <<
      \context TabVoice = "tab first voice" { \clef "moderntab" \voiceOne
\upper }
      \context TabVoice = "tab second voice" { \clef "moderntab" \voiceTwo
\lower }
    >>
  >>
}

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

Reply via email to