lilypond-user
[Top][All Lists]
Advanced

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

Re: glissando


From: Aaron Hill
Subject: Re: glissando
Date: Mon, 01 Apr 2019 18:20:59 -0700
User-agent: Roundcube Webmail/1.3.8

On 2019-04-01 5:15 pm, Colin Campbell wrote:
On 2019-04-01 5:28 p.m., Gianmaria Lari wrote:
Attached to this email a screenshot of the result of this code

    \version "2.21.0"
    \fixed c'' {
      \override Glissando.style = #'zigzag
      c \glissando \hideNotes c, \unHideNotes d e f
    }


I think that \bendAfter #-4 (replacing  \glissando ... \unHideNotes)
may be part of the solution, but I don't know how to change the
stencil to a zig-zag.

Here's an attempt to change the stencil along with comparisons to other techniques:

%%%%
\version "2.19.82"

\fixed c'' {
  %% Glissando to invisible note.
  \override Glissando.style = #'zigzag
  c4*1/2 \glissando \hideNotes c, \unHideNotes d4 e f

  %% Glissando in second voice.
  << { \oneVoice c d e f } \\
     { \override Glissando.style = #'zigzag
       \hideNotes c \glissando c, s s } >>

  %% Customized stencil for bend.
  \override BendAfter.stencil =
    #(grob-transformer 'stencil (lambda (grob orig)
      (let ((xex (ly:stencil-extent orig X))
            (yex (ly:stencil-extent orig Y)))
        (ly:grob-set-property! grob 'style 'zigzag)
        (ly:grob-set-property! grob 'thickness 1)
        (ly:line-interface::line grob
          (car xex) (cdr yex) (cdr xex) (car yex)))))
  c \bendAfter #-6 d e f
}
%%%%


-- Aaron Hill



reply via email to

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