lilypond-user
[Top][All Lists]
Advanced

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

Re: Hairpin at an angle, parallel to glissando line


From: Pierre Perol-Schneider
Subject: Re: Hairpin at an angle, parallel to glissando line
Date: Tue, 2 Jun 2015 22:45:37 +0200

Hi,

How about simply draw lines?

E.g.:

\version "2.18.2"

{
  \override Staff.Clef.stencil = ##f
  \once\override Staff.TimeSignature.transparent = ##t
  \time 1/8
  a''8
  -\tweak style #'trill
  \glissando
  \time 3/16
  a16
   -\markup
    \with-dimensions #'(0 . 0) #'(1 . 0) {
      \combine
      \draw-line #'(-8 . 5.9)
      \draw-line #'(-8 . 4.5)
    }
  s
}



Cheers,
Pierre

2015-06-02 1:37 GMT+02:00 David G <address@hidden>:
Thanks for your help both.

In fact I've typeset them as two normal glissando lines rather than rotating the hairpin - it's a bit of a hack but I think it's less fiddly than the rotation property - if the layout changes at all I would have to modify all the rotation tweaks by hand if I did it that way.

With my code the lines are drawn directly to invisible notes and therefore are reasonably resilient to changes. If anyone would like to see a snippet let me know and I'll clean it up to post it!

On 27 May 2015 at 07:19, Nick Payne <address@hidden> wrote:
On 26/05/2015 20:17, Jacques Menu wrote:
Hello David,

Maybe this snippet can help you :


JM

Le 26 mai 2015 à 08:53, David G <address@hidden> a écrit :

Hello all,

Does anyone have any tips for achieving the effect in the attached image?

<image.png>

Effectively I want to make it automatically parallel to the glissando - there are two or three in the piece I'm engraving.

Hairpins have a rotation property. Here's an example of rotating a hairpin 20 degrees anti-clockwise. The second and third parameters specify the point about which the rotation occurs, with zero for both values being rotation about the centre of the hairpin.

<f d>16-\tweak rotation #'(20 0 0)^\<

Nick

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



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



reply via email to

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