I don't have benddefs.ily so I couldn't test this, but I think it would
look like this: (you can of course remove the comments to make the number
of lines fewer)

%%%%%%%%%%%
\version "2.18.0"

\include "benddefs.ily"

\score {

  <<
    \new Staff { \clef "treble_8"
      \bendOn
      a'4 ( b' )( a' ) \bendOff \hideNotes
        \shape #'(
                   (-0.5 . 0.0)  % Starting point (x, y)
                   (0.0 . 0.0)   % Bend point, left
                   (0.0 . 0.0)   % Bend point, right
                   (-0.5 . 0.0)  % Ending point
                   ) Slur
        \grace a' ( \unHideNotes g' ) |
      a' ( b' ) a'2 |
    }

    \new TabStaff {
      \set TabStaff.minimumFret = #8
      \bendOn
      a'4 ( b' )( a' ) \bendOff \hideNotes
        \shape #'(
                   (-0.5 . 0.0)  % Starting point (x, y)
                   (0.0 . 0.0)   % Bend point, left
                   (0.0 . 0.0)   % Bend point, right
                   (-0.5 . 0.0)  % Ending point
                   ) Slur
        \grace a' ( \unHideNotes g' ) |
      a' ( b' ) a'2 |
    }
  >>

}
%%%%%%%%%%%%%%


Knute Snortum
(via Gmail)


On Wed, Jun 11, 2014 at 11:29 AM, Martyn Quick <martyn_qu...@yahoo.co.uk>
wrote:

> *From:* Federico Bruni <fedel...@gmail.com>
>
> 2014-06-10 23:50 GMT+02:00 Martyn Quick <martyn_qu...@yahoo.co.uk>:
>
> Thank you for the kind person who helped me out the last time I was trying
> to get to grips with Lilypond and guitar music.  I suspect these two are
> more challenging.
>
> 1. Is it possible at all to combine bends with hammer-on / pull-offs at
> all?  (e.g., a hammer-on immediately followed by a bend, or a bend-release
> followed immediately by a pull-off)  From what I read, the answer is no -
> since the current implementation of bend hacks the slur, which is what is
> also used for hammer-on / pull-offs.  (And if that is the case, is there
> any chance it will be addressed at some point?)
>
>
> > The problem and the workaround are described in the current home of
> bend.ly:
> >
> https://github.com/openlilylib/snippets/tree/master/notation-snippets/guitar-string-bending
> <https://github.com/openlilylib/snippets/tree/master/notation-snippets/guitar-string-bending>
> >
> > """
> > You can't use hammer-on and pull-off when > \bendOn > is active,
> because this snippet uses and transforms the slur engraver. This implies
> that you cannot, > for instance, start a pull-off right after a bend
> release. This is one of the reasons why a bend
> > engraver is needed (see issue 1196 above). However, you can work around
> this problem by adding > an hidden grace note where the pull-off should
> start; you may have to use the > \shape > command to adjust the slur
> shape.
> >
> > """
>
> I presume that this means something like the following:
>
> \version "2.18.0"
>
> \include "benddefs.ily"
>
> \score {
>
>   <<
>     \new Staff { \clef "treble_8"
>       \bendOn
>       a'4 ( b' )( a' ) \bendOff \hideNotes \grace a' ( \unHideNotes g' ) |
>       a' ( b' ) a'2 |
>     }
>
>     \new TabStaff {
>       \set TabStaff.minimumFret = #8
>       \bendOn
>       a'4 ( b' )( a' ) \bendOff \hideNotes \grace a' ( \unHideNotes g' ) |
>       a' ( b' ) a'2 |
>     }
>   >>
>
> }
>
>
> I don't know how to make the suggested adjustment to the slur shape with
> \shape.
>
> Martyn
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to