2012/11/28 Jeffrey Trevino <jeffrey.trevi...@gmail.com>: > 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
AFAIK, there is none. But you can construct a new stencil via `make-filled-box-stencilĀ“ \version "2.17.6" #(define flat-gliss (lambda (grob) (let* ((left-Y (assoc-get 'Y (ly:grob-property grob 'left-bound-info))) (stencil (ly:line-spanner::print grob)) (stencil-x-ext (ly:stencil-extent stencil X)) (line-thickness (ly:staff-symbol-line-thickness grob)) (staff-space (ly:staff-symbol-staff-space grob)) (half-gliss-thick (- (/ staff-space 2) line-thickness)) (new-stencil (make-filled-box-stencil (interval-widen stencil-x-ext (* line-thickness 1)) (interval-widen (cons left-Y left-Y) half-gliss-thick)))) (ly:grob-set-property! grob 'stencil new-stencil) (ly:grob-set-nested-property! grob '(right-bound-info Y) left-Y)))) \relative c'' { \override Glissando #'after-line-breaking = #flat-gliss \override Glissando #'to-barline = ##t c1\glissando g'\glissando g, f'2\glissando e' } Please note: I hardcoded the Glissando-thickness depending on staff-space and staff-symbol-line-thickness. This could be done for 'to-barline, too. Or create a function to gain more flexibility. Cheers, Harm _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user