Re: Polyphonic notes slur solution

2015-06-21 Thread rsfjr
Thank you all!

@ Robin

I was trying with the code you and Nathan sent me, I am trying with this
simple example before I make the modifications in a Forqueray's sonata
formatting.

The problem was within Lyx. I tried with Frescobaldi and bare lilypond
(ver. 2.18.2) and it worked fine.

Lyx was calling Lilypond with --safe option, which caused a crash,
everytime a \override was placed.


@ all
The code works fine now, just need one more help, and I won't bother you
anymore. I placed a \override Staff.Arpeggio.direction = 1 at the code, so
that the arpeggio parenthesis would be at the right. It works OK, but, can
it be mirroed? The parenthesis is pointed out the note pair.
Tried the \shape command and nothing was changed.


polyphonyArp = {
\override Staff.Arpeggio.stencil = #ly:arpeggio::brew-chord-slur
\override Staff.Arpeggio.X-extent = #ly:grob::stencil-width
\override Staff.Arpeggio.direction = 1
}

\new Staff \with {
\consists Span_arpeggio_engraver } {
\set Staff.connectArpeggios = ##t
\polyphonyArp
{ b'4\arpeggio} \\ { g'4\arpeggio }   
}



All the Best!
Ronaldo



2015-06-20 18:31 GMT-03:00 Thomas Morley thomasmorle...@gmail.com:

 2015-06-20 12:07 GMT+02:00 Robin Bannister r...@dataway.ch:
  Nathan Ho wrote:
 
  % And, of course, the slur's too short vertically
 
 
  Adjust 0.3 to taste:
 
  \override Staff.Arpeggio #'positions = #(lambda (grob)
(interval-widen (ly:arpeggio::calc-positions grob) 0.3))


 or:

 \once \offset positions #'(-0.3 . 0.3) Staff.Arpeggio

 \offset lacks documentation, though


 Cheers,
   Harm

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


Re: Polyphonic notes slur solution

2015-06-21 Thread Nathan Ho
On Sun, Jun 21, 2015 at 12:22 AM, rsfjr rsfj...@gmail.com wrote:

 I placed a \override Staff.Arpeggio.direction = 1 at the code, so that the
 arpeggio parenthesis would be at the right. It works OK, but, can it be
 mirroed? The parenthesis is pointed out the note pair.
 Tried the \shape command and nothing was changed.


This should do the trick:

\override Staff.Arpeggio.stencil = #(lambda (grob) (ly:stencil-scale
(ly:arpeggio::brew-chord-slur grob) -1 1))


Regards,

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


Re: Polyphonic notes slur solution

2015-06-21 Thread rsfjr
Thanks a lot!

Works wonderfully!


All the Best,
Ronaldo

2015-06-21 4:34 GMT-03:00 Nathan Ho when.possi...@gmail.com:

 On Sun, Jun 21, 2015 at 12:22 AM, rsfjr rsfj...@gmail.com wrote:

 I placed a \override Staff.Arpeggio.direction = 1 at the code, so that
 the arpeggio parenthesis would be at the right. It works OK, but, can it be
 mirroed? The parenthesis is pointed out the note pair.
 Tried the \shape command and nothing was changed.


 This should do the trick:

 \override Staff.Arpeggio.stencil = #(lambda (grob) (ly:stencil-scale
 (ly:arpeggio::brew-chord-slur grob) -1 1))


 Regards,

 Nathan

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


Re: Polyphonic notes slur solution

2015-06-20 Thread Robin Bannister

Nathan Ho wrote:


% And, of course, the slur's too short vertically


Adjust 0.3 to taste:

\override Staff.Arpeggio #'positions = #(lambda (grob)
  (interval-widen (ly:arpeggio::calc-positions grob) 0.3))


Cheers,
Robin

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


Re: Polyphonic notes slur solution

2015-06-20 Thread Nathan Ho
On Fri, Jun 19, 2015 at 11:48 PM, rsfjr rsfj...@gmail.com wrote:

 Hello,

 I am trying to overcome an issue. I need to place some slurs in a
 polyphonic
 pair, connecting the noteheads. Is there any workaround?


Hi rsfjr,

LilyPond doesn't support vertical slurs. What you're looking for is
\arpeggioParenthesis + \arpeggio:
http://lilypond.org/doc/v2.19/Documentation/notation/expressive-marks-as-lines#arpeggio

Cross-voice arpeggios are supported via Staff.connectArpeggios.
Unfortunately, cross-voice arpeggios *and *\arpeggioParenthesis don't work
together (!), requiring us to excavate the inner workings of
\arpeggioParenthesis and adapt them to the Staff context. It's details like
this that make me hate LilyPond sometimes :)

The final outcome:

\new Staff \with {

\consists Span_arpeggio_engraver

} {

\set Staff.connectArpeggios = ##t

\override Staff.Arpeggio.stencil = #ly:arpeggio::brew-chord-slur

\override Staff.Arpeggio.X-extent = #ly:grob::stencil-width

 { b'\arpeggio } \\ { g'\arpeggio } 

% And, of course, the slur's too short vertically and there's no simple
override to fix it...

}

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


Polyphonic notes slur solution

2015-06-20 Thread rsfjr
Hello,

I am trying to overcome an issue. I need to place some slurs in a polyphonic
pair, connecting the noteheads. Is there any workaround?

\new Staff {

{b'}\\{g'}
}

I have tried creating other notes and forcing a horizontal shift, but no
success, only the first note overlays the entire polyphonic note, like this:

\new Staff {


{b'}
\\
{g'}
 \\
{
\override NoteColumn.force-hshift =  0 b'(
\override NoteColumn.force-hshift =  0 g')
}

}

I even tried negative numbers for the g', but it just won't overlap the
other notes.



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


Re: Polyphonic notes slur solution

2015-06-20 Thread Robin Bannister

rsfjr wrote:


It keeps throwing an error message


Well, tell us some more ...
 - what message
 - with what lilypond version

But preferably, send a small .ly file which has this problem.


Cheers,
Robin

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


Re: Polyphonic notes slur solution

2015-06-20 Thread rsfjr
Thank you all,

It keeps throwing an error message, when I use these:

\override Staff.Arpeggio.stencil = #ly:arpeggio::brew-chord-slur

\override Staff.Arpeggio.X-extent = #ly:grob::stencil-width


Without those the arpeggios are slurred, but with the arpeggio symbol.


I believe the Lilypond documentation is a bit non intuitive, for example:


stencil (stencil):

ly:arpeggio::print

The symbol to print.


What kind of symbols I can print?


Sorry for taking your time, need to learn how to use the docu properly.



All The Best,

Ronaldo



2015-06-20 7:07 GMT-03:00 Robin Bannister r...@dataway.ch:

 Nathan Ho wrote:

  % And, of course, the slur's too short vertically


 Adjust 0.3 to taste:

 \override Staff.Arpeggio #'positions = #(lambda (grob)
   (interval-widen (ly:arpeggio::calc-positions grob) 0.3))


 Cheers,
 Robin

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


Re: Polyphonic notes slur solution

2015-06-20 Thread Thomas Morley
2015-06-20 12:07 GMT+02:00 Robin Bannister r...@dataway.ch:
 Nathan Ho wrote:

 % And, of course, the slur's too short vertically


 Adjust 0.3 to taste:

 \override Staff.Arpeggio #'positions = #(lambda (grob)
   (interval-widen (ly:arpeggio::calc-positions grob) 0.3))


or:

\once \offset positions #'(-0.3 . 0.3) Staff.Arpeggio

\offset lacks documentation, though


Cheers,
  Harm

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