lilypond-user
[Top][All Lists]
Advanced

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

Re: Ad lib glissando


From: Ben
Subject: Re: Ad lib glissando
Date: Mon, 21 May 2018 06:38:31 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 5/21/2018 6:08 AM, Helge Kruse wrote:
I want to typeset a noisy part. It should give the impression of an
explosion. The composer used a notation that reminds to glissandi but I
am convinced that this is just chaos on the strings...

I searched the Lilypond snippet repository and found the idea to hide
note heads: http://lsr.di.unimi.it/LSR/Item?id=796
But the result doesn't look good enough. How could the score improved to
get closer to the autograph?

The current implementation has following problems:

1) The lines should be connected, the notes are only hidden but still in
place.

2) The lines are connected differently to the chords. In "upperI" it's
close to the note in the accord (but the warning appears). In "upperII"
there is a gap because the starting note is outside the accord. In
"upperIII" the line is as expected.


Hello,

Maybe this code can help you?
(see attached)

\version "2.19.15"

#(define (add-gliss m)
   (case (ly:music-property m 'name)
     ((NoteEvent) (set! (ly:music-property m 'articulations)
                      (append (ly:music-property m 'articulations)
                         (list (make-music (quote GlissandoEvent)))))
                   m)
     (else #f)))

addGliss = #(define-music-function (parser location music)
                 (ly:music?)
           (map-some-music add-gliss music))

\relative c'' {
  \override Glissando.thickness = #2
  \override Glissando.bound-details =#'(
     (right (attach-dir . 1) (padding . 0))
     (left  (attach-dir . 1) (padding . 0)))
  \override NoteHead.no-ledgers = ##t
  \addGliss {
    d,2
    \omit Stem
    \override NoteHead.transparent = ##t
    f' d, f' e, g' d, f'
  }
}

Attachment: gliss.png
Description: PNG image


reply via email to

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