lilypond-user
[Top][All Lists]
Advanced

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

Re: Understanding fancy-gliss


From: Thomas Morley
Subject: Re: Understanding fancy-gliss
Date: Thu, 2 Jan 2020 17:51:23 +0100

Am Do., 2. Jan. 2020 um 00:48 Uhr schrieb Daniel Rosen <address@hidden>:
>
> > Harm,
> >
> > Thank you so, so much for the primer---it cleared up everything that I had
> > been unable to surmise for myself. I would highly recommend you update
> > the LSR entry to include it.

There's already
https://lists.gnu.org/archive/html/lilypond-user/2019-12/msg00447.html
adding the possibility to print arrows.
Alas, it needs 2.19.x, thus I can't put it in LSR.

> Harm, one other question: is it possible to use your function in conjunction 
> with a different style of line than the default, like 'zigzag? And if so, 
> how? Using \override Glissando.style doesn't seem to do anything.

Well, fancy-gliss sets a new stencil, which does not react upon 'style.

Consider the code below (it's all pure manually, not using fancy-gliss).
You'll observe the two zigzag-lines don't join. For me it means, it's
not acceptable.

{
  \override Glissando.springs-and-rods = #ly:spanner::set-spacing-rods
  \override Glissando.minimum-length = 20
  \override Glissando.style = #'zigzag
  \override Glissando.stencil =
  #(lambda (grob)
    (ly:stencil-add
      (ly:line-interface::line grob 1.5 0 10 5)
      (ly:line-interface::line grob 10 5 19.8 0)
      (ly:stencil-translate
        (stencil-with-color (make-circle-stencil 1 0.1 #f) red)
        '(10 . 5))
      ))
  b'4\glissando
  b'
}

Furthermore, there is no chance to extend this to cover printing
bezier-curves zigzag-styled.
I don't say it's impossible, but it will likely need a complete new coding.

This will most likely take too much of my time.

Sorry,
  Harm



reply via email to

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