Hi all, It's good to know how to do this. For metric notation, I found that it's also useful to stop the duration line before the barline, instead of continuing it to a subsequent notehead, if the following note is in the next bar:
#(define flat-gliss (lambda (grob) (let ((left-Y (assoc-get 'Y (ly:grob-property grob 'left-bound-info)))) (ly:grob-set-nested-property! grob '(right-bound-info Y) left-Y)))) \relative c'' { \override Glissando #'after-line-breaking = #flat-gliss \override Glissando #'thickness = #8 \override Glissando #'to-barline = ##t c1\glissando g'\glissando g, } There's one more important tweak, remaining, though, and I can't figure it out: Is there a way to make the ends of the lines square instead of round? I don't see a property for this in line-interface. best, Jeff On Tue, Nov 27, 2012 at 7:43 PM, David Nalesnik <david.nales...@gmail.com>wrote: > Hi Oscar, > > On Tue, Nov 27, 2012 at 8:58 PM, Oscar Dub <oscar...@gmail.com> wrote: > >> It looks like you might be able to use a glissando and override the > style to be "line", then twiddle the thickness until it looks right? > > > > Using this glissando method mentioned, does anybody know of a specific > override that would force the glissando line to be flat (i.e. ignore the y > position of the right bound and instead use the y position of the left one)? > > > > If that's not simple then I was thinking this might be achievable with a > simple-ish scheme callback, something like: > > \override Glissando #'bound-details #'right #'Y = >>>>>> some nice > function which returns the staff position of the note that the gliss is > attached to <<<<<< > > > > A nudge in the right direction would be great! > > > > I didn't get anything to work using an override of #'bound-details > #'right #'Y, but you can override 'after-line-breaking like so: > > \version "2.17.7" > > #(define flat-gliss > (lambda (grob) > (let ((left-Y (assoc-get 'Y (ly:grob-property grob 'left-bound-info)))) > (ly:grob-set-nested-property! grob '(right-bound-info Y) left-Y)))) > > \relative c'' { > \override Glissando #'after-line-breaking = #flat-gliss > \override Glissando #'thickness = #5 > c1\glissando > g'\glissando > g, > } > > HTH, > David > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > -- 《〠》】〶【〖〠〗〶〛〷〚 Jeff Treviño PhD Candidate in Music Composition @ the University of California, San Diego 〖〠〗〶〛〷〚《〠》】〶 Skype: jeffreytrevino E-mail: jeffrey.trev...@gmail.com 〚《〠》】〶【〖〠〗〶〛〷 9310H Redwood Dr. La Jolla, CA 92037 USA 〖〠〗〶〛〷〚《〠》】〶【 <http://www.jeffreytrevino.com/>
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user