I'm trying to engrave a hammer-on followed by a bend (i.e., the reverse of the
bend-release-pulloff that your example contains).
The following code does (at least to some extent) work and illustrate what I'm
trying to do. Hopefully you will see why I was doing the bit you were asking
about.
Martyn
\version "2.18.2"
\include "definitions.ily"
\layout {
\context {
\Staff
\override VerticalAxisGroup #'default-staff-staff-spacing =
#'((padding . 4))
}
}
music = {
\shape #'((0 . 0) (0.9 . -0.3) (1.8 . -0.3) (2.7 . 0)) Voice.Slur
\shape #'((0 . 0) (0.9 . 0.3) (1.8 . 0.3) (2.7 . 0)) TabVoice.Slur
g4 ( \hideNotes a ) \unHideNotes \bendOn a ( b2 )
}
\score {
<<
\new Staff {
\clef "treble_8"
\numericTimeSignature \time 4/4
\music
}
\new TabStaff {
\music
}
>>
}
________________________________
From: Federico Bruni <fedel...@gmail.com>
To: Martyn Quick <martyn_qu...@yahoo.co.uk>
Cc: "lilypond-user@gnu.org" <lilypond-user@gnu.org>
Sent: Thursday, 31 July 2014, 21:54
Subject: Re: Strange problem with guitar bends
2014-07-31 21:26 GMT+02:00 Martyn Quick <martyn_qu...@yahoo.co.uk>:
Thanks for the suggestion - I was actually aware of the use of \shape to adjust
the slur, but hadn't implemented it since I thought it more sensible (perhaps
naively) to get all the notes in place and then adjust the slurs at the end of
the process.
>
>
I think that adjusting the slur at the end of the process is a good idea.
However, for me introducing this doesn't fix the problem. I still get the same
error when I use the following code:
>
>
The problem is the way you use \hideNotes. If you comment those two lines the
file compiles fine.
I don't know why you use it this way, that's why I showed you a working example
of a bend and release followed by a pull-off. Can you describe how you'd like
the output to look like?
> \bendOff
>
> c16 ( \hideNotes \grace d ) \unHideNotes
> \bendOn d ( e ) g \bendGrace \preBendHold d ( e ) ( d )
>
You start a slur, then you hide the closing slur, then you start a bend. What
does it mean?
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user