Ad lib glissando

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Ad lib glissando

Helge Kruse-4
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.


Kind regards
Helge

\version "2.18.2"
\include "deutsch.ly"

onlyLines = {
  \override NoteHead.transparent = ##t
  \override Stem.transparent = ##t
}
normal = {
  \revert NoteHead.transparent
  \revert Stem.transparent
}

\score {
  <<
    \new PianoStaff \with { connectArpeggios = ##t } <<
      \new Staff="upperI" \relative c'' {
        \time 2/4
        s2

        \onlyLines
        | dis4\glissando e,8\glissando g\glissando
        | d2\glissando
        | d'4\glissando \change Staff=lowerI f,,\glissando
                \change Staff=upperI
        \normal

        | <g'' h, d,>\4\arpeggio r
      }

      \new Staff="lowerI" \relative c' {
        \time 2/4
        \clef bass
        | s2 s s s
        | <g, d' h'>4\arpeggio\f r
      }
    >>

    \new PianoStaff <<
      \new Staff="upperII" \relative c'' {
        | s2

        \onlyLines
        | s8 d4\glissando d,8\glissando g'4\glissando
                \change Staff=lowerII g,,\glissando
        | c\glissando a,\glissando \change Staff=upperII
        \normal

        | <g''' h, d,>4\arpeggio r
      }
      \new Staff="lowerII" \relative c {
        \clef bass s2 s s s
        <g d' h'>4\arpeggio\f r
      }
    >>

    \new PianoStaff <<
      \new Staff="upperIII" \relative c'' {
        s2
        \stemDown
        \tuplet 3/2 {
        \change Staff=upperI <c dis a' es'>8
          \change Staff=upperII <cis d a' es'>
          \change Staff=upperIII < cis d a' es'>\glissando
        }

        \onlyLines
          e,8\glissando s8
        | s4 g\glissando
        | d8\glissando h'\glissando
                \change Staff=lowerIII f,,4\glissando
                \change Staff=upperIII
        \normal

        | <g''' h, d,>4\arpeggio r
      }
      \new Staff=lowerIII \relative c {
        \clef bass s2 s s s
        <g d' h'>4\arpeggio\f r
      }
    >>
  >>
}

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Explosion.PNG (173K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Ad lib glissando

Andrew Bernard
Hi Helge.

I usually just draw this stuff as PostScript paths. Do you want me to do you an example?

Andrew


On 21 May 2018 at 20:08, Helge Kruse <[hidden email]> 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...


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Ad lib glissando

SoundsFromSound
In reply to this post by Helge Kruse-4
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
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user

gliss.png (14K) Download Attachment
composer | sound designer | asmr artist
Reply | Threaded
Open this post in threaded view
|

Re: Ad lib glissando

Helge Kruse-4
Am 21.05.2018 um 12:38 schrieb Ben:
> Hello,
>
> Maybe this code can help you?
> (see attached)

Ben,

thanks for reply. Unfortunately this works only for half and quarter
notes. If you have \quaver it's necessary to add "\omit Beam\omit Flag".

But the approach has a side effect. The next ordinary glissando after
the addGliss block has the glissando attached to the right side of the
note head. So I had to add more code to revert to the previous state. As
the previously PNG file shows I need also to attach the last glissando
to a chord.

This results in this working example. But it looks clumsy for me:

Regards
Helge


\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
    \omit Beam
    \omit Flag
    \override NoteHead.transparent = ##t
    f' d, f'8 e, g'
  }

  \override Glissando.bound-details =
  #'(
      (right (attach-dir . -1) (padding .0))
      (left (attach-dir . 1) (padding .0)))
  d,\glissando

  \revert Glissando.bound-details
  \revert Glissando.thickness
  \revert NoteHead.transparent
  \revert Stem.stencil
  \revert Beam.stencil
  \revert NoteHead.no-ledgers

  <f' d b>


  <c, a>\glissando d'
}

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Ad lib glissando

Helge Kruse-4
In reply to this post by Andrew Bernard
Am 21.05.2018 um 12:35 schrieb Andrew Bernard:
> Hi Helge.
>
> I usually just draw this stuff as PostScript paths. Do you want me to do
> you an example?

That would be great.

Regards
Helge


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Ad lib glissando

SoundsFromSound
In reply to this post by Helge Kruse-4
On 5/21/2018 11:29 AM, Helge Kruse wrote:
Am 21.05.2018 um 12:38 schrieb Ben:
Hello,

Maybe this code can help you?
(see attached)
Ben,

thanks for reply. Unfortunately this works only for half and quarter
notes. If you have \quaver it's necessary to add "\omit Beam\omit Flag".

But the approach has a side effect. The next ordinary glissando after
the addGliss block has the glissando attached to the right side of the
note head. So I had to add more code to revert to the previous state. As
the previously PNG file shows I need also to attach the last glissando
to a chord.

This results in this working example. But it looks clumsy for me:

Regards
Helge


I see, hmmm. Maybe perhaps it's easier in this case to just use postscript. Good luck :)

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
composer | sound designer | asmr artist
Reply | Threaded
Open this post in threaded view
|

Re: Ad lib glissando

Helge Kruse-4
In reply to this post by Andrew Bernard
Am 21.05.2018 um 12:35 schrieb Andrew Bernard:
> I usually just draw this stuff as PostScript paths. Do you want me to do
> you an example?

Andrew,

I found some examples to put postscript in a Lilypond source file. But
that's all related to a \markup command. But challenge is to fill the
staves with appropriate lines. It would be highly appreciated to get an
example.

Best regards
Helge


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user