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'
  }
}

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to