lilypond-user
[Top][All Lists]
Advanced

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

Re: Indicating duration with lines


From: Pierre Perol-Schneider
Subject: Re: Indicating duration with lines
Date: Mon, 22 Jun 2020 15:56:41 +0200

Is there a maximum length value? Any tiny example?
Cheers,
Pierre

Le lun. 22 juin 2020 à 15:47, Urs Liska <lists@openlilylib.org> a écrit :
Hi Pierre,

thank you for the nice suggestion. Do you (or anybody else) have an idea how to make the length automatic? This looks nice, but of course when the horizontal spacing of the music changes things will go wrong.

Best
Urs

Am Montag, den 22.06.2020, 13:12 +0200 schrieb Pierre Perol-Schneider:
Hi Urs,
How about:

\version "2.20.0"

ext =
#(define-music-function (long) (number?)
   #{
     \once\override NoteHead.stencil =
       #(lambda (grob)
          (grob-interpret-markup grob
                         (markup #:concat
        (#:musicglyph "noteheads.s2" #:hspace -0.85
         (#:override (cons (quote filled) #t)
          (#:path 0
            `((moveto 0 .543)
              (rlineto ,long 0)
              (rlineto -.4 -1.086)
              (rlineto ,(* long -1) 0)
              (closepath))))
         #:hspace -0.85 #:musicglyph "noteheads.s2" ))))
   #})

%% Test:
\layout {
  \context {
    \Voice
    \omit Stem
  }
}

\fixed c' {
  \ext #5 ais4 \ext #4 4 \ext #2 4 \ext #2 4
}

HTH, cheers,
Pierre

Le lun. 22 juin 2020 à 11:47, Urs Liska <lists@openlilylib.org> a écrit :
I really don't seem to find useful search terms :-(

I'm trying to achieve horizontal lines "extending" the note head to
indicate its duration. The attachement is done by abusing \glissando.
I'd be (mostly) happy with the appearance, but glissandi work only in
place where a tie is. When there's a different note or a rest after the
original note it doesn't.

What would be a term for this notation element, and is there a ready-
made solution, e.g. in the LSR?

Thanks
Urs

reply via email to

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