Re: bug? with Choir Staff

2012-08-30 Thread David Kastrup
Janek Warchoł janek.lilyp...@gmail.com writes:

 On Thu, Aug 23, 2012 at 3:45 PM, David Kastrup d...@gnu.org wrote:
 Janek Warchoł janek.lilyp...@gmail.com writes:
 just FYI, the barline problem was fixed in 2.15.10 (commit
 b92ea16ef75d8aaa7bdb9f492b58d7af906e7945).

 While it will likely catch most uses, bar_line_color == staff_color is
 mixing C operators and only compares for strict eq-equivalence.  It
 might make more sense to write

 ly_is_equal (bar_line_color, staff_color)

 here instead.

 I understand that you refer to how it should be done in c++ code?

 I mean, this has been ported to Scheme entirely
 (deafba084c8ecf6af02f64455856147821b598c7), and the logic is now in
 scm/bar-line.scm, line 356.  I don't see your comment being applicable
 to this new scheme code - am i missing something?

(if (eq? bar-line-color staff-color) ...

should likely be (if (equal? bar-line-color staff-color) ...

since you otherwise get

guile (eq? (rgb-color 0 0 0) (rgb-color 0 0 0))
#f
guile (equal? (rgb-color 0 0 0) (rgb-color 0 0 0))
#t
guile 

Annoyingly, (rgb-color 0 0 0) is still different from (rgb-color
0. 0. 0.).  But at least if you use the same invocation, the colors
should arguably be considered equal.

-- 
David Kastrup

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


Re: vertical skylines problems

2012-08-30 Thread m...@mikesolomon.org
On 30 août 2012, at 14:10, Reinhold Kainhofer reinh...@kainhofer.com wrote:

 I really like the new vertical skylines patch, as it now moves dynamics
 and hairpins much closer to the notes they belong to (so far, they often
 left some ugly space). This allows much better (and tighter) vertical
 spacing, without looking too crammed.
 
 However, there are some situations, where things go overboard. I haven't
 had time to create minimal examples, I'm just attaching some screenshots
 from a huge score I'm working on...
 
 Cheers,
 Reinhold
 
 -- 
 --
 Reinhold Kainhofer, reinh...@kainhofer.com, http://www.kainhofer.com
 * Financial  Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * Edition Kainhofer, Music Publisher, http://www.edition-kainhofer.com
 skyline1.pngskyline2.pngskyline3.pngskyline4.pngskyline5.pngskyline6.pngskyline7.png___
 bug-lilypond mailing list
 bug-lilypond@gnu.org
 https://lists.gnu.org/mailman/listinfo/bug-lilypond

A couple quick responses.

1) Get the LedgerLineSpanner to produce vertical skylines and that solves half 
of the problems.
2) Create an override for DynamicText (or whatever cresc. is) vertical-skylines 
that takes the skyline produced and adds padding to it.  That'll avoid stemular 
interpenetration.
3) Add Ties to Script side-support elements.

And there you have it.  I'll propose patches.

Cheers,
MS
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: vertical skylines problems

2012-08-30 Thread Colin Hall
On Thu, Aug 30, 2012 at 02:50:18PM +0200, Mike Solomon wrote:
 On 30 ao?t 2012, at 14:10, Reinhold Kainhofer reinh...@kainhofer.com wrote:
 
  I really like the new vertical skylines patch, as it now moves dynamics
  and hairpins much closer to the notes they belong to (so far, they often
  left some ugly space). This allows much better (and tighter) vertical
  spacing, without looking too crammed.
  
  However, there are some situations, where things go overboard. I haven't
  had time to create minimal examples, I'm just attaching some screenshots
  from a huge score I'm working on...

Thanks for the bug report, Reinhold. I've created an issue tracker here:

http://code.google.com/p/lilypond/issues/detail?id=2795

Cheers,
Colin.

-- 

Colin Hall

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


Length of a footnote note

2012-08-30 Thread Jean-Charles Malahieude

Hi all,

There seems to be no limitation to the length of the annotation string 
of a footnote.


It would be nice to be able to spread it over several lines, even 
without taking the mark part into account.

Could anyone help me to construct a function to deal with that?

Cheers,
Jean-Charles
\version 2.16.0

\paper {
  footnote-auto-number = ##f
  
}
lorem = \wordwrap-lines { Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.  Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. }

\book {
  \score {
\markup { Lorem ipsum \footnote * * Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.  Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. dolor... }
\relative c' {
  a'1
}
  }
  \pageBreak
\score {\markup { Lorem ipsum \footnote * * \lorem dolor... }
\relative c' {
  a'1
}
  }
}

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


Re: Length of a footnote note

2012-08-30 Thread David Kastrup
Jean-Charles Malahieude lily...@orange.fr writes:

 Hi all,

 There seems to be no limitation to the length of the annotation string
 of a footnote.

 It would be nice to be able to spread it over several lines, even
 without taking the mark part into account.
 Could anyone help me to construct a function to deal with that?

Could you try testing the code examples you submit?

-- 
David Kastrup


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


Re: Length of a footnote note

2012-08-30 Thread Jean-Charles Malahieude

Sorry, I tried something else in the middle.

Here it is.
\version 2.16.0

\paper {
  footnote-auto-number = ##f
}

lorem = \markup { \justify { Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.  Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. } }

\book {
  \lorem 
\markup { Lorem ipsum \footnote * * Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.  Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. dolor... }
  \score {
\relative c' {
  a'1
}
  }
  \pageBreak
\markup { Lorem ipsum \footnote * * \lorem dolor... }
  \score {
\relative c' {
  a'1
}
  }
}



footnote-long.pdf
Description: Adobe PDF document
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Length of a footnote note

2012-08-30 Thread Jean-Charles Malahieude

David Kastrup writes:

Does something like

\version 2.16.0

\paper {
  footnote-auto-number = ##f
}

lorem = \markup { \justify { Lorem ipsum dolor sit amet, consectetur
adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua.  Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. } }

\book {
  \lorem
\markup { Lorem ipsum \footnote * \justify { * Lorem ipsum dolor sit
amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore
et dolore magna aliqua.  Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat. } dolor... }
  \score {
\relative c' {
  a'1
}
  }
  \pageBreak
\markup { Lorem ipsum \footnote * \put-adjacent #X #LEFT \lorem * 
dolor... }
  \score {
\relative c' {
  a'1
}
  }
}

give you ideas?


Many thanks! It works like a charm.

I was really upset by the quoted string as being the way to introduce 
the annotation and did not come to such a simple workaround. And I 
wanted to avoid the use of another variable in my project just for this 
particular case.


Thanks also for teaching me how to use \put-adjacent:
I can even type
 Lorem ipsum \footnote * \put-adjacent #X #LEFT \justify {the long 
text} * 


Nice way to put whatever plus text in the annotation.

Cheers,
Jean-Charles

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