lilypond-user
[Top][All Lists]
Advanced

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

Re: Glissando on single note in chords


From: David Nalesnik
Subject: Re: Glissando on single note in chords
Date: Thu, 26 Jan 2012 09:43:04 -0600

Hi Nick,

If you get a chance, try implementing a Scheme engraver - this type of override can wreak panic with spacing changes in LilyPond, whereas a custom engraver will survive changes in spacing.


Did you ever implement this as a custom engraver as Mike suggested?  If not, I'm attaching my attempt at a solution.

So that a score could contain both slides and ordinary note-to-note glissandi, I initially tried to create a custom FingeringSlide grob, with limited success.  Here, I work with Glissando, adding a property to switch the slides on and off:

\override Glissando #'to-fingerings = ##t

[BTW, thanks again to Harm and Arnold from the German users list for showing me how to add properties without causing errors.  See  http://www.mail-archive.com/address@hidden/msg66525.html  ]

A glissando will still be drawn between every note, so if there aren't enough fingerings to align the glissandi to, the remaining ones will appear near their note heads.  The solution to this limitation is to set glissandoMap, as I do in the attached examples.  (This is also useful if there is a slide along with an ordinary change of fingers, since the engraver as it stands will draw lines between all pairs of fingerings.)

Sorry about replying to an ancient thread like this.  I hope you find this useful!

-David 

Attachment: fingering-slide-engraver.ly
Description: Binary data

Attachment: fingering-slide-engraver.png
Description: PNG image


reply via email to

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