Re: Hairpin at an angle, parallel to glissando line

2015-06-02 Thread Pierre Perol-Schneider
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 castle.cub...@gmail.com:

 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 nick.pa...@internode.on.net wrote:

  On 26/05/2015 20:17, Jacques Menu wrote:

 Hello David,

  Maybe this snippet can help you :

  http://lsr.di.unimi.it/LSR/Item?id=562

  JM

  Le 26 mai 2015 à 08:53, David G castle.cub...@gmail.com 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 d16-\tweak rotation #'(20 0 0)^\

 Nick

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



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


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


Re: Hairpin at an angle, parallel to glissando line

2015-06-01 Thread David G
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 nick.pa...@internode.on.net wrote:

  On 26/05/2015 20:17, Jacques Menu wrote:

 Hello David,

  Maybe this snippet can help you :

  http://lsr.di.unimi.it/LSR/Item?id=562

  JM

  Le 26 mai 2015 à 08:53, David G castle.cub...@gmail.com 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 d16-\tweak rotation #'(20 0 0)^\

 Nick

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


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


Re: Hairpin at an angle, parallel to glissando line

2015-05-27 Thread Nick Payne

On 26/05/2015 20:17, Jacques Menu wrote:

Hello David,

Maybe this snippet can help you :

http://lsr.di.unimi.it/LSR/Item?id=562

JM

Le 26 mai 2015 à 08:53, David G castle.cub...@gmail.com 
mailto:castle.cub...@gmail.com 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 d16-\tweak rotation #'(20 0 0)^\

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


Hairpin at an angle, parallel to glissando line

2015-05-26 Thread David G
Hello all,

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

[image: Inline images 2]

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

Firstly I was hoping to be able to create a second voice of glissandos and
override its style to be a hairpin, but that doesn't appear to be an option.

Secondly I tried to change the glissando style to a normal single line for
a glissando, and then set the notes such that it looked like a hairpin
(i.e. in this instance - treble clef - C and A both glissandoing to
something like a low B) which is slightly fiddly but should at least remain
roughly correct regardless of layout changes/end of line etc., but doing
that also changed the trill-style glissando to a single line so I didn't
pursue that further.

So thirdly I'm looking at the rotate hairpin option, which I guess makes it
possible to achieve manually in each case, as there are not all that many
instances, but will presumably need tweaking if there are any future layout
changes.

Have I missed something? I feel like the second way ought to be achievable
but I can't work out how to set the glissando style independently in
different voices, if that is possible. If there is a more graceful way of
doing it that would also be much appreciated.

Thanks for any help!
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Hairpin at an angle, parallel to glissando line

2015-05-26 Thread Jacques Menu
Hello David,

Maybe this snippet can help you :

http://lsr.di.unimi.it/LSR/Item?id=562 
http://lsr.di.unimi.it/LSR/Item?id=562

JM

 Le 26 mai 2015 à 08:53, David G castle.cub...@gmail.com 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.
 
 Firstly I was hoping to be able to create a second voice of glissandos and 
 override its style to be a hairpin, but that doesn't appear to be an option.
 
 Secondly I tried to change the glissando style to a normal single line for a 
 glissando, and then set the notes such that it looked like a hairpin (i.e. in 
 this instance - treble clef - C and A both glissandoing to something like a 
 low B) which is slightly fiddly but should at least remain roughly correct 
 regardless of layout changes/end of line etc., but doing that also changed 
 the trill-style glissando to a single line so I didn't pursue that further.
 
 So thirdly I'm looking at the rotate hairpin option, which I guess makes it 
 possible to achieve manually in each case, as there are not all that many 
 instances, but will presumably need tweaking if there are any future layout 
 changes.
 
 Have I missed something? I feel like the second way ought to be achievable 
 but I can't work out how to set the glissando style independently in 
 different voices, if that is possible. If there is a more graceful way of 
 doing it that would also be much appreciated.
 
 Thanks for any help!
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

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