Re: Adjusting a slur after line break

2015-12-20 Thread Simon Albrecht

On 20.12.2015 01:50, Chris Yate wrote:
On 20 December 2015 at 00:41, Simon Albrecht > wrote:


On 20.12.2015 00 :45, Chris Yate wrote:

I can't get /alterBroken to work properly at all on control
points.

When I try the "tweak" version, that I assume would look like:



r4.
d,16-\alterBroken control-points #'(((0.0 . 0.0) (0 . 1.2) (0
. 1.2) (4 . 1))  ((0.0 . 0.0) (0 . 1.2) (0 . 1.2) (4 . 1)) 
((0 . 4.0) (0 . 3) (0 . 1) (0 . 0)) )

(f af cf af bf  |



 then the slur only appears as a small, and odd-shaped
squiggle by the first note d.  Editing these control points is
a bit of hit and miss anyway, but I don't feel I understand
the syntax for \alterBroken well enough; there are too few
examples at present!


The big advantage of the shape command is that you can give
offsets for each control point against the default shape. The
control-points property however has every point coded relative to
the reference point for the entire slur (the note head of the
first note in the slur, I think), which often makes numbers very
high and trial and error very time-consuming.

The second argument to \alterBroken is a list. Each of its
elements will be applied to one of the segments of the broken
spanner. If you supply less entries than there are segments, the
remaining segments will not be tweaked.

HTH, Simon


I think I *half* understand what "shape" is doing, but I can't get 
alterBroken to work for the control points. Can you give a working 
example?


See attachment.



(I only half understand it, but I know the _two pairs_ of numbers at 
_each_ end of a slur shape, which code for the bezier coordinates, 
give the four sets of bracketed values. How the numbers work isn't a 
complete mystery but I've not yet found a better way to determine them 
than to keep plugging in numbers until it looks good, by iteration. A 
graphical tool would be WONDERFUL ;-) ).


Of course: 
A really graphical tool is on the TODO list of the Frescobaldi devs also.
In the meantime: do you know shapeII from openlilylib? It’s not free 
from bugs nor ready for inclusion into LilyPond proper, but it does 
provide great utility for convenience in bézier tweaking. See 
; 
the example file provides extensive documentation.


Yours, Simon
\version "2.19.27"

test =
#(define-music-function (ev) (ly:music?)
   (tweak 'color red ev))

{
  c''-\test \> g'-\test \f
}\version "2.19.32"
\paper { #(set-paper-size "a9") indent = 0 }
#(ly:set-option 'point-and-click #f)
\header { tagline = ##f }
{
  \alterBroken control-points #'(
  ((0 . -2)(0 . 1)(4 . -1)(4 . 2))
  ((10 . 0)(12 . 0)(12 . 2)(10 . 2))
) Slur
  1( \break
  1)
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Adjusting a slur after line break

2015-12-19 Thread Chris Yate
Hi,

I'm having trouble with a long slurred passage, where the final note
appears on a new line.

The slur shape is quite wrong after the line break in both upper and lower
parts, but I've included only the upper part here.

Snippet ly (actual excerpt) and a PNG attached -- I think there's a thing
called "alterBroken" but I can't work out how to use it.

Hopefully someone can help!

Thanks in advance,

Chris
\version "2.19.33"
\language "english"

right = 
  \relative c''{
\time 6/8
\oneVoice
r4. d,16 (f af cf af bf
  |  
  gf bf ef gf f ef d f af cf af bf
  |  
  gf f ef d ef cf bf af gf f ef df
  | 
  \change Staff = "down"
  \stemUp
  cf bf af gf ff ef d cf' ef, bf' f af
  \break
  | 
 8^. ) s8 s8 s4.
  |
}

\score{
 \new PianoStaff \with {
  instrumentName = "Piano"  
} <<
  \new Staff = "up"  \right
  \new Staff = "down" \with {
  } { \clef bass \time 6/8 s2. s2. s2. s2. s2. }
>>
}

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


Re: Adjusting a slur after line break

2015-12-19 Thread Chris Yate
Thanks... with that hint and a bit more research, I can achieve something a
bit better with this modification to the original:



r4.
\shape  #'(((0.0 . 0.0) (0 . 1.2) (0 . 1.2) (4 . 1))
  ((0.0 . 0.0) (0 . 1.2) (0 . 1.2) (4 . 1))
  ((0 . 4.0) (0 . 3) (0 . 1) (0 . 0)) ) Slur

d,16 (f af cf af bf  |



I'd rather tweak just the messy end of the slur, leaving the rest as
default, but it appears that can't be done.

The example here for setting the final part of the slur to dashes works ok:
http://lilypond.org/doc/v2.18/Documentation/notation/modifying-broken-spanners

But I can't get /alterBroken to work properly at all on control points.

When I try the "tweak" version, that I assume would look like:



r4.
d,16-\alterBroken control-points #'(((0.0 . 0.0) (0 . 1.2) (0 . 1.2) (4 .
1))  ((0.0 . 0.0) (0 . 1.2) (0 . 1.2) (4 . 1))  ((0 . 4.0) (0 . 3) (0 . 1)
(0 . 0)) )
(f af cf af bf  |



 then the slur only appears as a small, and odd-shaped squiggle by the
first note d.  Editing these control points is a bit of hit and miss
anyway, but I don't feel I understand the syntax for \alterBroken well
enough; there are too few examples at present!


Chris


On 19 December 2015 at 22:46, Urs Liska  wrote:

> I'm only on the phone right now. But wirh \shape you can pass overrides
> for multiple parts of a broken curve.
>
> Am 19. Dezember 2015 23:39:15 MEZ, schrieb Chris Yate  >:
>
>> Hi,
>>
>> I'm having trouble with a long slurred passage, where the final note
>> appears on a new line.
>>
>> The slur shape is quite wrong after the line break in both upper and
>> lower parts, but I've included only the upper part here.
>>
>> Snippet ly (actual excerpt) and a PNG attached -- I think there's a thing
>> called "alterBroken" but I can't work out how to use it.
>>
>> Hopefully someone can help!
>>
>> Thanks in advance,
>>
>> Chris
>>
>> --
>>
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>
> --
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
> gesendet.
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Adjusting a slur after line break

2015-12-19 Thread David Nalesnik
On Sat, Dec 19, 2015 at 7:25 PM, David Nalesnik 
wrote:

>
>
> On Sat, Dec 19, 2015 at 5:45 PM, Chris Yate  wrote:
>>
>>
>> I'd rather tweak just the messy end of the slur, leaving the rest as
>> default, but it appears that can't be done.
>>
>
> You can.  One of the documentation examples shows the use of () when you
> want to leave a segment alone:
> http://lilypond.org/doc/v2.18/Documentation/notation/modifying-shapes
>

Or, rather, mentions it :)

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


Re: Adjusting a slur after line break

2015-12-19 Thread Urs Liska
I'm only on the phone right now. But wirh \shape you can pass overrides for 
multiple parts of a broken curve.

Am 19. Dezember 2015 23:39:15 MEZ, schrieb Chris Yate :
>Hi,
>
>I'm having trouble with a long slurred passage, where the final note
>appears on a new line.
>
>The slur shape is quite wrong after the line break in both upper and
>lower
>parts, but I've included only the upper part here.
>
>Snippet ly (actual excerpt) and a PNG attached -- I think there's a
>thing
>called "alterBroken" but I can't work out how to use it.
>
>Hopefully someone can help!
>
>Thanks in advance,
>
>Chris
>
>
>
>
>___
>lilypond-user mailing list
>lilypond-user@gnu.org
>https://lists.gnu.org/mailman/listinfo/lilypond-user

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Adjusting a slur after line break

2015-12-19 Thread David Nalesnik
On Sat, Dec 19, 2015 at 5:45 PM, Chris Yate  wrote:

> Thanks... with that hint and a bit more research, I can achieve something
> a bit better with this modification to the original:
>
> 
>
> r4.
> \shape  #'(((0.0 . 0.0) (0 . 1.2) (0 . 1.2) (4 . 1))
>   ((0.0 . 0.0) (0 . 1.2) (0 . 1.2) (4 . 1))
>   ((0 . 4.0) (0 . 3) (0 . 1) (0 . 0)) ) Slur
>
> d,16 (f af cf af bf  |
>
> 
>
> I'd rather tweak just the messy end of the slur, leaving the rest as
> default, but it appears that can't be done.
>

You can.  One of the documentation examples shows the use of () when you
want to leave a segment alone:
http://lilypond.org/doc/v2.18/Documentation/notation/modifying-shapes


> The example here for setting the final part of the slur to dashes works ok:
>
> http://lilypond.org/doc/v2.18/Documentation/notation/modifying-broken-spanners
>
> But I can't get /alterBroken to work properly at all on control points.
>
> When I try the "tweak" version, that I assume would look like:
>
> 
>
> r4.
> d,16-\alterBroken control-points #'(((0.0 . 0.0) (0 . 1.2) (0 . 1.2) (4 .
> 1))  ((0.0 . 0.0) (0 . 1.2) (0 . 1.2) (4 . 1))  ((0 . 4.0) (0 . 3) (0 . 1)
> (0 . 0)) )
> (f af cf af bf  |
>
> 
>
>  then the slur only appears as a small, and odd-shaped squiggle by the
> first note d.  Editing these control points is a bit of hit and miss
> anyway, but I don't feel I understand the syntax for \alterBroken well
> enough; there are too few examples at present!
>

You can set the control-points to the *absolute* values you want with
\alterBroken; \shape takes values relative to the default.

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


Re: Adjusting a slur after line break

2015-12-19 Thread Simon Albrecht

On 20.12.2015 00:45, Chris Yate wrote:

I can't get /alterBroken to work properly at all on control points.

When I try the "tweak" version, that I assume would look like:



r4.
d,16-\alterBroken control-points #'(((0.0 . 0.0) (0 . 1.2) (0 . 1.2) 
(4 . 1))  ((0.0 . 0.0) (0 . 1.2) (0 . 1.2) (4 . 1))  ((0 . 4.0) (0 . 
3) (0 . 1) (0 . 0)) )

(f af cf af bf  |



 then the slur only appears as a small, and odd-shaped squiggle by 
the first note d.  Editing these control points is a bit of hit and 
miss anyway, but I don't feel I understand the syntax for \alterBroken 
well enough; there are too few examples at present!


The big advantage of the shape command is that you can give offsets for 
each control point against the default shape. The control-points 
property however has every point coded relative to the reference point 
for the entire slur (the note head of the first note in the slur, I 
think), which often makes numbers very high and trial and error very 
time-consuming.


The second argument to \alterBroken is a list. Each of its elements will 
be applied to one of the segments of the broken spanner. If you supply 
less entries than there are segments, the remaining segments will not be 
tweaked.


HTH, Simon

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


Re: Adjusting a slur after line break

2015-12-19 Thread Chris Yate
On 20 December 2015 at 00:41, Simon Albrecht  wrote:

> On 20.12.2015 00:45, Chris Yate wrote:
>
>> I can't get /alterBroken to work properly at all on control points.
>>
>> When I try the "tweak" version, that I assume would look like:
>>
>> 
>>
>> r4.
>> d,16-\alterBroken control-points #'(((0.0 . 0.0) (0 . 1.2) (0 . 1.2) (4 .
>> 1))  ((0.0 . 0.0) (0 . 1.2) (0 . 1.2) (4 . 1))  ((0 . 4.0) (0 . 3) (0 . 1)
>> (0 . 0)) )
>> (f af cf af bf  |
>>
>> 
>>
>>  then the slur only appears as a small, and odd-shaped squiggle by
>> the first note d.  Editing these control points is a bit of hit and miss
>> anyway, but I don't feel I understand the syntax for \alterBroken well
>> enough; there are too few examples at present!
>>
>
> The big advantage of the shape command is that you can give offsets for
> each control point against the default shape. The control-points property
> however has every point coded relative to the reference point for the
> entire slur (the note head of the first note in the slur, I think), which
> often makes numbers very high and trial and error very time-consuming.
>
> The second argument to \alterBroken is a list. Each of its elements will
> be applied to one of the segments of the broken spanner. If you supply less
> entries than there are segments, the remaining segments will not be tweaked.
>
> HTH, Simon
>

I think I *half* understand what "shape" is doing, but I can't get
alterBroken to work for the control points. Can you give a working example?

(I only half understand it, but I know the _two pairs_ of numbers at _each_
end of a slur shape, which code for the bezier coordinates, give the four
sets of bracketed values. How the numbers work isn't a complete mystery but
I've not yet found a better way to determine them than to keep plugging in
numbers until it looks good, by iteration. A graphical tool would be
WONDERFUL ;-) ).

Thanks,

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