> On 4 Feb 2019, at 04:54, John Doe <randy.josl...@gmail.com> wrote: > > Hi, LilyPond users, > > First post, here. I'm trying to create a function that adds falling > gliss lines to a note or chord, as commonly seen in modern guitar > transcriptions. (N.B. I'm talking notation, not tablature.) I posted a > a question on [StackOverflow][so] which led to a rough working > version, but it only works reliably if music is entered in absolute > mode. Naturally, I want it to work everywhere! So, I broke down and > subscribed to this list. > > I want to model a function on the [example][ex] in the snippets documentation: > > \afterGrace d'\glissando { \once \hideNotes g16 } > > If I could access the pitches of the music given to the function, I > could possibly just write a grace chord down a few steps and avoid the > issue of whether it is absolute or relative. How can I access the > pitches of the given music (note/chord) to accomplish this? > > I probably haven't thought this through all the way either, so if > anyone knows how to solve this problem (or if it's already solved), > input would be greatly appreciated. > > Thanks! > > Randy
This works for me, Randy: \override Glissando #'style = #'zigzag \once \override Glissando #'(bound-details left Y) = #+3 | r4 r8 ees'~ ees4 \glissando ges,8 ess It’s an extract from Clifford Brown’s “Sandu”, and I think I got the method from this list some years ago, and involves a gliss from the 13th fret on the D string (Eb) down to the 4th fret (Gb). You may have to tweak the +3 to get what you want, but I expect the expert who supplied it will be able to explain in due course. HTH Michael _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user