Re: Shape of individual ties in chords

2014-01-24 Thread Eluze
Richard Shann-2 wrote
>> 
>> searching for the *word* q would help:
>> 
> 
> ??? I tried both indices, clicked on the alphabetical Q link and got a
> list which doesn't include "q", what else could I do?

see above 

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Shape-of-individual-ties-in-chords-tp158120p158410.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Shape of individual ties in chords

2014-01-24 Thread Simon Bailey
On Fri, Jan 24, 2014 at 11:44 AM, David Kastrup  wrote:
> Simon Bailey  writes:
>> two i can think of:
>> - it can't be quoted (at least i haven't found the correct event to
>> quote yet)
>
> I think that this will be fixed as a side effect of
> http://code.google.com/p/lilypond/issues/detail?id=3810>.

cool. i _really_ like the new rhythm syntax. :)

> and of course, you can always call \chordRepeats explicitly on the music
> you want to quote.

first time i've heard about that function. :) yes, it's in the
documentation, but only as a way to repeat event types on chords --
doesn't explicitly state that it would expand q to become the chords
in music expressions [but makes sense if you think outside of the box
a bit].

>> - it can't be altered with relative octave-switch commands
>
> Well, it would be so weird behavior in a \relative section that I'm
> actually glad about that.  Why would you even want to do that?

in the piano music i've been typesetting over the last few months,
i've come across a lot of chords that jump around in octaves -- being
able to octave a chord repetition would sometimes be handy. a very
trivial example:

%%% SNIPSNAP %%%
\new PianoStaff <<
  \new Staff = "up" \relative c' { 2 2 }
  \new Staff = "down" \relative c { \clef bass 2 2 }
}
%%% SNAPSNIP %%%

could conceivably be written as:
%%% SNIPSNAP %%%
\new PianoStaff <<
  \new Staff = "up" \relative c' { 2  q' }
  \new Staff = "down" \relative c { \clef bass 2  q, }
}
%%% SNAPSNIP %%%

may or may not be a fringe case.

regards,
sb

-- 
Do not meddle in the affairs of trombonists, for they are subtle and
quick to anger.

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


Re: Shape of individual ties in chords

2014-01-24 Thread David Kastrup
David Kastrup  writes:

> Simon Bailey  writes:

[ q ]

>> two i can think of:
>> - it can't be quoted (at least i haven't found the correct event to
>> quote yet)
>
> I think that this will be fixed as a side effect of
> http://code.google.com/p/lilypond/issues/detail?id=3810>.

and of course, you can always call \chordRepeats explicitly on the music
you want to quote.

-- 
David Kastrup

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


Re: Shape of individual ties in chords

2014-01-24 Thread David Kastrup
Simon Bailey  writes:

> James,
>
> On Fri, Jan 24, 2014 at 10:56 AM, James  wrote:
>>> there's a few things which are only documented in the learning manual. :)
>>>
>>>
>> Actually I would change that last sentence to read:
>>
>> There's a few things which are not documented in the Learning Manual.
>>
>> And this is a deliberate decision. If not, it's still a good decision.
>
> i realised my mistake almost as soon as i pressed send. the link i
> sent is to the NR and there's an amazing amount of information not
> covered in the LM. Correctly so.
>
>> I don't see q as being needed in  the Learning Manual as a good thing; apart
>> from all the discussion how 'q' is a rather arbitrary 'command' - why 'q'?
>> what does 'q' stand for etc., not knowing q doesn't lose you any
>> functionality (i.e. there is nothing that q does that you cannot already do
>> with the 'correct' syntax) but there are limitations using q - which
>> are/should be documented in the Notation Reference.
>
> two i can think of:
> - it can't be quoted (at least i haven't found the correct event to
> quote yet)

I think that this will be fixed as a side effect of
http://code.google.com/p/lilypond/issues/detail?id=3810>.

> - it can't be altered with relative octave-switch commands

Well, it would be so weird behavior in a \relative section that I'm
actually glad about that.  Why would you even want to do that?

-- 
David Kastrup

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


Re: Shape of individual ties in chords

2014-01-24 Thread Richard Shann
On Fri, 2014-01-24 at 01:36 -0800, Eluze wrote:
> Richard Shann-2 wrote
> > [...] 
> > I noticed the mysterious synatx q that appears. I tried looking this
> up in
> > the two indices
> > without success. 
> > [...] 
> >  I wonder what exactly it is all about
> > and why I can't find it documented...
> 
> searching for the *word* q would help:
> 
> one place you'll find it is /E. LilyPond index/ , but in /D. LilyPond
> command index/ it's missing, indeed 

??? I tried both indices, clicked on the alphabetical Q link and got a
list which doesn't include "q", what else could I do?

Richard



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


Re: Shape of individual ties in chords

2014-01-24 Thread Simon Bailey
James,

On Fri, Jan 24, 2014 at 10:56 AM, James  wrote:
>> there's a few things which are only documented in the learning manual. :)
>>
>>
> Actually I would change that last sentence to read:
>
> There's a few things which are not documented in the Learning Manual.
>
> And this is a deliberate decision. If not, it's still a good decision.

i realised my mistake almost as soon as i pressed send. the link i
sent is to the NR and there's an amazing amount of information not
covered in the LM. Correctly so.

> I don't see q as being needed in  the Learning Manual as a good thing; apart
> from all the discussion how 'q' is a rather arbitrary 'command' - why 'q'?
> what does 'q' stand for etc., not knowing q doesn't lose you any
> functionality (i.e. there is nothing that q does that you cannot already do
> with the 'correct' syntax) but there are limitations using q - which
> are/should be documented in the Notation Reference.

two i can think of:
- it can't be quoted (at least i haven't found the correct event to quote yet)
- it can't be altered with relative octave-switch commands

> As to the quote:
>
> there's a few things which are only documented in the learning manual. :)
>
> That implies that we're missing things in the NR that shoudl be in there. If
> so then let the list know (lilypond-...@gnu.org) and that can be fixed.

i remember looking for something fairly basic a while back and only
finding it in the LM. at the time, i decided that it deserves to be in
the LM and may not really be needed in the NR. however, for the life
of me, i cannot remember what it was i was looking for. :)

if i come across it again, i'll shout. ;)

regards,
sb

-- 
Do not meddle in the affairs of trombonists, for they are subtle and
quick to anger.

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


Re: Shape of individual ties in chords

2014-01-24 Thread David Kastrup
Eluze  writes:

> Richard Shann-2 wrote
>> [...] 
>> I noticed the mysterious synatx q that appears. I tried looking this up in
>> the two indices
>> without success. 
>> [...] 
>>  I wonder what exactly it is all about
>> and why I can't find it documented...
>
> searching for the *word* q would help:
>
> one place you'll find it is /E. LilyPond index/ , but in /D. LilyPond
> command index/ it's missing, indeed
>
> I wonder, after the introduction of repeating pitches and chords with
> a simple duration in 2.19.1(?), if there is good reason to keep this
> command!?

It's different.  For one thing, it's chord-only, so it helps in
situations like

{ \partial 8 g8 | 4 r8 g 4 r8 g | 1 | }

In particular the "Oom-pah" kind of "alternating basses" accompaniment
used with accordions and also in a number of basic piano styles (like
ragtime) benefit (it makes it quite easier to recognize in the input
that the interspersed chords remain identical).

{ c  g,  ...

For another, q carries forward articulations (and on demand, fingering,
though this could be made less relevant when someone chooses to work on
issue http://code.google.com/p/lilypond/issues/detail?id=3662>).

The main incentive for doing the "fascinating rhythm" patch was not
actually being able to simplify repeated pitches, but to have a
representation for purely rhythmic material.

Of course, with things like

tamb 4. 8 4 4

there is a bit of overlap since it _starts_ with a "pitch" that is later
"repeated" throughout the part.

It's conceivable that if pure rhythms were present before chord
repetitions, the latter would not have made it off the ground (even
alternating basses can be written as
{ << { c4 s g, s }
 { s  s4 4 } >> }
if you really _must_).  But the cat seems out of the bag far enough that
there is no point in stuffing it back again.

-- 
David Kastrup

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


Re: Shape of individual ties in chords

2014-01-24 Thread James

On 24/01/14 09:22, Simon Bailey wrote:

hi,

On Fri, Jan 24, 2014 at 10:16 AM, Richard Shann  wrote:

Thanks for this - while playing around with it I noticed the mysterious
synatx q that appears. I tried looking this up in the two indices
without success. It causes a syntax error after a note but repeats a
chord when placed after a chord. I wonder what exactly it is all about
and why I can't find it documented...

http://lilypond.org/doc/v2.18/Documentation/notation/single-voice#chord-repetition

there's a few things which are only documented in the learning manual. :)



Actually I would change that last sentence to read:

There's a few things which are not documented in the Learning Manual.

And this is a deliberate decision. If not, it's still a good decision.

I don't see q as being needed in  the Learning Manual as a good thing; 
apart from all the discussion how 'q' is a rather arbitrary 'command' - 
why 'q'? what does 'q' stand for etc., not knowing q doesn't lose you 
any functionality (i.e. there is nothing that q does that you cannot 
already do with the 'correct' syntax) but there are limitations using q 
- which are/should be documented in the Notation Reference.


As to the quote:

there's a few things which are only documented in the learning manual. :)


That implies that we're missing things in the NR that shoudl be in 
there. If so then let the list know (lilypond-...@gnu.org) and that can 
be fixed.


Thanks

James




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


Re: Shape of individual ties in chords

2014-01-24 Thread Richard Shann
On Fri, 2014-01-24 at 10:31 +0100, David Kastrup wrote:
> Richard Shann  writes:
> 
> > On Fri, 2014-01-24 at 10:26 +0100, David Kastrup wrote:
> >> Simon Bailey  writes:
> >> 
> >> > hi,
> >> >
> >> > On Fri, Jan 24, 2014 at 10:16 AM, Richard Shann 
> >> >  wrote:
> >> >> Thanks for this - while playing around with it I noticed the mysterious
> >> >> synatx q that appears. I tried looking this up in the two indices
> >> >> without success. It causes a syntax error after a note but repeats a
> >> >> chord when placed after a chord. I wonder what exactly it is all about
> >> >> and why I can't find it documented...
> >> >
> >> > http://lilypond.org/doc/v2.18/Documentation/notation/single-voice#chord-repetition
> >> >
> >> > there's a few things which are only documented in the learning
> >> > manual. :)
> >> 
> >> Not this one, though.
> >
> > So is this a bug with the documentation (incomplete indexing)?
> 
> Well, we don't have c, cis, ces... indexed, either.  Admittedly, we do
> have r, s, and R in the index.

yes, I was thinking about that - there is the language include file that
would affect some of those, but to be practical, I don't recall ever
noticing q in the past ten years or so of watching and using LilyPond
(well, I virtually never have to write chords myself so perhaps it is
not surprising)

Richard



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


Re: Shape of individual ties in chords

2014-01-24 Thread Eluze
Richard Shann-2 wrote
> [...] 
> I noticed the mysterious synatx q that appears. I tried looking this up in
> the two indices
> without success. 
> [...] 
>  I wonder what exactly it is all about
> and why I can't find it documented...

searching for the *word* q would help:

one place you'll find it is /E. LilyPond index/ , but in /D. LilyPond
command index/ it's missing, indeed

I wonder, after the introduction of repeating pitches and chords with a
simple duration in 2.19.1(?), if there is good reason to keep this command!?

Eluze







--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Shape-of-individual-ties-in-chords-tp158120p158389.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Shape of individual ties in chords

2014-01-24 Thread David Kastrup
Richard Shann  writes:

> On Fri, 2014-01-24 at 10:26 +0100, David Kastrup wrote:
>> Simon Bailey  writes:
>> 
>> > hi,
>> >
>> > On Fri, Jan 24, 2014 at 10:16 AM, Richard Shann  
>> > wrote:
>> >> Thanks for this - while playing around with it I noticed the mysterious
>> >> synatx q that appears. I tried looking this up in the two indices
>> >> without success. It causes a syntax error after a note but repeats a
>> >> chord when placed after a chord. I wonder what exactly it is all about
>> >> and why I can't find it documented...
>> >
>> > http://lilypond.org/doc/v2.18/Documentation/notation/single-voice#chord-repetition
>> >
>> > there's a few things which are only documented in the learning
>> > manual. :)
>> 
>> Not this one, though.
>
> So is this a bug with the documentation (incomplete indexing)?

Well, we don't have c, cis, ces... indexed, either.  Admittedly, we do
have r, s, and R in the index.

-- 
David Kastrup

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


Re: Shape of individual ties in chords

2014-01-24 Thread Richard Shann
On Fri, 2014-01-24 at 10:26 +0100, David Kastrup wrote:
> Simon Bailey  writes:
> 
> > hi,
> >
> > On Fri, Jan 24, 2014 at 10:16 AM, Richard Shann  
> > wrote:
> >> Thanks for this - while playing around with it I noticed the mysterious
> >> synatx q that appears. I tried looking this up in the two indices
> >> without success. It causes a syntax error after a note but repeats a
> >> chord when placed after a chord. I wonder what exactly it is all about
> >> and why I can't find it documented...
> >
> > http://lilypond.org/doc/v2.18/Documentation/notation/single-voice#chord-repetition
> >
> > there's a few things which are only documented in the learning
> > manual. :)
> 
> Not this one, though.

So is this a bug with the documentation (incomplete indexing)?

Richard




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


Re: Shape of individual ties in chords

2014-01-24 Thread Simon Bailey
On Fri, Jan 24, 2014 at 10:26 AM, David Kastrup  wrote:
> Simon Bailey  writes:
>
>> hi,
>>
>> On Fri, Jan 24, 2014 at 10:16 AM, Richard Shann  
>> wrote:
>>> Thanks for this - while playing around with it I noticed the mysterious
>>> synatx q that appears. I tried looking this up in the two indices
>>> without success. It causes a syntax error after a note but repeats a
>>> chord when placed after a chord. I wonder what exactly it is all about
>>> and why I can't find it documented...
>>
>> http://lilypond.org/doc/v2.18/Documentation/notation/single-voice#chord-repetition
>>
>> there's a few things which are only documented in the learning
>> manual. :)
>
> Not this one, though.

i was about to correct the error of my ways -- the link is to the NR
not the LM. sorry :)

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


Re: Shape of individual ties in chords

2014-01-24 Thread David Kastrup
Simon Bailey  writes:

> hi,
>
> On Fri, Jan 24, 2014 at 10:16 AM, Richard Shann  
> wrote:
>> Thanks for this - while playing around with it I noticed the mysterious
>> synatx q that appears. I tried looking this up in the two indices
>> without success. It causes a syntax error after a note but repeats a
>> chord when placed after a chord. I wonder what exactly it is all about
>> and why I can't find it documented...
>
> http://lilypond.org/doc/v2.18/Documentation/notation/single-voice#chord-repetition
>
> there's a few things which are only documented in the learning
> manual. :)

Not this one, though.

-- 
David Kastrup

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


Re: Shape of individual ties in chords

2014-01-24 Thread David Kastrup
Richard Shann  writes:

> Thanks for this - while playing around with it I noticed the mysterious
> synatx q that appears. I tried looking this up in the two indices
> without success. It causes a syntax error after a note but repeats a
> chord when placed after a chord. I wonder what exactly it is all about
> and why I can't find it documented...

http://lilypond.org/doc/v2.18/Documentation/notation/single-voice#chord-repetition>


-- 
David Kastrup

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


Re: Shape of individual ties in chords

2014-01-24 Thread Simon Bailey
hi,

On Fri, Jan 24, 2014 at 10:16 AM, Richard Shann  wrote:
> Thanks for this - while playing around with it I noticed the mysterious
> synatx q that appears. I tried looking this up in the two indices
> without success. It causes a syntax error after a note but repeats a
> chord when placed after a chord. I wonder what exactly it is all about
> and why I can't find it documented...

http://lilypond.org/doc/v2.18/Documentation/notation/single-voice#chord-repetition

there's a few things which are only documented in the learning manual. :)


-- 
Do not meddle in the affairs of trombonists, for they are subtle and
quick to anger.

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


Re: Shape of individual ties in chords

2014-01-24 Thread Richard Shann
Thanks for this - while playing around with it I noticed the mysterious
synatx q that appears. I tried looking this up in the two indices
without success. It causes a syntax error after a note but repeats a
chord when placed after a chord. I wonder what exactly it is all about
and why I can't find it documented...

Richard



On Thu, 2014-01-23 at 08:01 -0600, David Nalesnik wrote:
> Hi,
> 
> 
> On Wed, Jan 22, 2014 at 4:55 PM, Thomas Morley
>  wrote:
>  
> Below some coding just to show that it can be done.
> It's a very first sketch, several issues are present (p.e.
> linebreak)
> Might be a starting point, though.
> 
> 
> 
> There's also the attached file (which comes
> from 
> http://www.mail-archive.com/lilypond-devel@gnu.org/msg47432/shape-tie-columns.ly)
>  which will work with broken ties.
> 
> 
> HTH,
> David



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


Re: Shape of individual ties in chords

2014-01-23 Thread David Nalesnik
On Thu, Jan 23, 2014 at 8:01 AM, David Nalesnik wrote:
>
>>
>>>
>> There's also the attached file (which comes from
>> http://www.mail-archive.com/lilypond-devel@gnu.org/msg47432/shape-tie-columns.ly)
>> which will work with broken ties.
>>
>>
>
Here are some more useful values:

 \shapeTieColumn #'(

   ( () ((0 . 0.5) (0 . 0.5) (0 . 0.5) (0 .
0.5)) ) ; bottom

   ( () ((0 . 0) (0.33 . -0.25) (0.67 . -0.25)
(1.0 . 0))) ; middle

   ( () ((0 . -0.5) (0 . -0.5) (0 . -0.5) (0 .
-0.5)) ) ) % top
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Shape of individual ties in chords

2014-01-23 Thread David Nalesnik
Hi again,


On Thu, Jan 23, 2014 at 8:01 AM, David Nalesnik wrote:

> Hi,
>
>
> On Wed, Jan 22, 2014 at 4:55 PM, Thomas Morley 
> wrote:
>
>
>> Below some coding just to show that it can be done.
>> It's a very first sketch, several issues are present (p.e. linebreak)
>> Might be a starting point, though.
>>
>>
> There's also the attached file (which comes from
> http://www.mail-archive.com/lilypond-devel@gnu.org/msg47432/shape-tie-columns.ly)
> which will work with broken ties.
>
>
I should point out that in the example, the first part of the broken ties
is left alone:  () there is equivalent to ((0 . 0) (0 . 0) (0 . 0) (0 . 0)).

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


Re: Shape of individual ties in chords

2014-01-23 Thread David Nalesnik
Hi,


On Wed, Jan 22, 2014 at 4:55 PM, Thomas Morley wrote:


> Below some coding just to show that it can be done.
> It's a very first sketch, several issues are present (p.e. linebreak)
> Might be a starting point, though.
>
>
There's also the attached file (which comes from
http://www.mail-archive.com/lilypond-devel@gnu.org/msg47432/shape-tie-columns.ly)
which will work with broken ties.

HTH,
David
\version "2.18.0"


 function for offsetting control-points of a TieColumn %
shapeTieColumn =
#(define-music-function (parser location all-offsets) (list?)
  #{
\once \override TieColumn #'after-line-breaking =
  #(lambda (grob)
(let ((ties (ly:grob-array->list (ly:grob-object grob 'ties
  (for-each
(lambda (tie offsets-for-broken-pair)
  (let* ((orig (ly:grob-original tie))
 (siblings (ly:spanner-broken-into orig)))
(for-each
  (lambda (piece offsets-for-piece)
(if (pair? offsets-for-piece)
(set! (ly:grob-property piece 'control-points)
  (map
(lambda (x y) (coord-translate x y))
(ly:tie::calc-control-points piece)
offsets-for-piece
  (if (null? siblings)
  (list orig)
  siblings)
  offsets-for-broken-pair)))
ties all-offsets)))
  #})



%% EXAMPLE %
{
 1 ~
 \break
 q
 \break
 q ~

 \shapeTieColumn #'(
   ( () ((0 . 1) (0 . 1) (0 . 1) (0 . 1)) )
   ( () ((0 . -0.1) (0.5 . -0.4) (1.5 . -0.4) (2 . -0.1)))
   ( () ((0 . -2) (0 . -1) (0 . -1) (0 . -1)) ) )
 \break
 q
}

\layout {
  indent = 0
  ragged-right = ##t
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Shape of individual ties in chords

2014-01-22 Thread Thomas Morley
2014/1/17 David Kastrup :
> Richard Shann  writes:
>
>> Reading over the documentation on changing the tie shape for ties in
>> chords I gather that it is not possible to do this at all:
>>
>> http://www.lilypond.org/doc/v2.18/Documentation/notation/modifying-shapes#modifying-ties-and-slurs
>
>> It is not possible to modify shapes of ties or slurs by changing the
>> control-points property if there are multiple ties or slurs at the
>> same musical moment – the \tweak command will also not work in this
>> case.  However, the tie-configuration property of TieColumn can be
>> overridden to set start line and direction as required.
>>
>> I think the documents should be more up front about that. Saying it is
>> not possible to do it one way, or another way, and then going on to
>> describe something else that *is* possible is a bit of weasel-wording.
>> Unless, that is, there is actually some LilyPond syntax to do this.
>
> Redirected to developer list.
>
> This is one case where I think it would make more sense to relinquish
> the restrictions rather than document them.  It seems like this would
> require transferring properties and/or tweaks from tie events to the
> tie-configuration of TieColumn.  There probably is already some issue in
> the bug tracker for this.
>
> Backend guys, any ideas?
>
> --
> David Kastrup



Hi,

sorry for the late reply, I was completely off for some time.

Below some coding just to show that it can be done.
It's a very first sketch, several issues are present (p.e. linebreak)
Might be a starting point, though.

\version "2.18.0"

affect-TieColumn =
#(define-music-function (parser location offsets)(list?)
#{
  \once
\override TieColumn #'after-line-breaking =
  #(lambda (grob)
(let* ((ties (ly:grob-array->list (ly:grob-object grob 'ties)))
   (c-ps
 (map
   (lambda (tie) (ly:grob-property tie 'control-points))
   ties)))

  (define (offset-control-points coords offsets)
   (if (null? offsets)
   (car c-ps)
   (map
 (lambda (x y) (coord-translate x y))
 coords offsets)))

   (define (help offs pts new-pts)
 (if (null? offs)
 (reverse new-pts)
 (help (cdr offs) (cdr pts)
   (cons (offset-control-points (car pts) (car offs)) new-pts

  (for-each
 (lambda (tie cpts) (ly:grob-set-property! tie 'control-points cpts))
 ties
 (help offsets c-ps '()
#})

%% crazy values taken, to show it works
{
  2 ~
  \affect-TieColumn #'( ((0 . -4)  (2 . 3) (4 . 5) (6 . 7));; bottom
((-1 . 0) (0 . 0) (0 . 0) (0 . 0)) ;; middle
((-5 . 3) (0 . 0) (0 . 0) (0 . 0)) ;; top
  )
  q
}


Cheers,
  Harm

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


Re: Shape of individual ties in chords

2014-01-17 Thread David Kastrup
Richard Shann  writes:

> Reading over the documentation on changing the tie shape for ties in
> chords I gather that it is not possible to do this at all:
>
> http://www.lilypond.org/doc/v2.18/Documentation/notation/modifying-shapes#modifying-ties-and-slurs

> It is not possible to modify shapes of ties or slurs by changing the
> control-points property if there are multiple ties or slurs at the
> same musical moment – the \tweak command will also not work in this
> case.  However, the tie-configuration property of TieColumn can be
> overridden to set start line and direction as required.
>
> I think the documents should be more up front about that. Saying it is
> not possible to do it one way, or another way, and then going on to
> describe something else that *is* possible is a bit of weasel-wording.
> Unless, that is, there is actually some LilyPond syntax to do this.

Redirected to developer list.

This is one case where I think it would make more sense to relinquish
the restrictions rather than document them.  It seems like this would
require transferring properties and/or tweaks from tie events to the
tie-configuration of TieColumn.  There probably is already some issue in
the bug tracker for this.

Backend guys, any ideas?

-- 
David Kastrup

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


Shape of individual ties in chords

2014-01-17 Thread Richard Shann
Reading over the documentation on changing the tie shape for ties in
chords I gather that it is not possible to do this at all:

http://www.lilypond.org/doc/v2.18/Documentation/notation/modifying-shapes#modifying-ties-and-slurs
It is not possible to modify shapes of ties or slurs by changing the
control-points property if there are multiple ties or slurs at the same
musical moment – the \tweak command will also not work in this case.
However, the tie-configuration property of TieColumn can be overridden
to set start line and direction as required.

I think the documents should be more up front about that. Saying it is
not possible to do it one way, or another way, and then going on to
describe something else that *is* possible is a bit of weasel-wording.
Unless, that is, there is actually some LilyPond syntax to do this.

Richard



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