Re: lily rO>

2005-08-27 Thread Maurits Lamers

I was wondering...

if you cannot optimize the code itself very much. maybe it is possible 
to improve the way Lilypond parses the ly file.


When I am editing and tweaking a file, I need to change one little 
thing and recompile it.
As far as I can see it, lilypond then always runs the complete file 
from scratch...


Maybe it is possible to provide lilypond with a kind of diff function 
that enables it to determine the changes and change only what is 
necessary ?

(by saving states for example...) Or is this impossible ?

If this could work it could mean quite a speed improvement...

greets

Maurits

On 24-aug-05, at 22:00, Han-Wen Nienhuys wrote:


Nicolas Sceaux wrote:

Wahou. This used to be around 40 minutes, in an slightly older
computer, with multiple lilypond invocations.
Lily is getting so cool. Kuddos to Han-Wen and Jan!


Thanks!

the downside to this is that there is little left to optimize, I still 
think Lily is a bit slow, but with painstaking optimization, I've only 
been been able to get some 10 to 30 % during the 2.7 cycle.



--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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




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


TextScript implements self-alignment interface

2005-08-27 Thread Trevor Baca
TextScript layout objects implement the self-alignment interface quite
well. Here's an example:

%% BEGIN TEXTSCRIPT SELF-ALIGNMENT SNIPPET %%%

\version "2.7.7"

\score {
   \context Staff = example {
  \time 7/4
  \override Staff.TextScript #'self-alignment-X = #-2
  c'4^\markup {\italic {ten.}}
  \override Staff.TextScript #'self-alignment-X = #-1.5
  c'4^\markup {\italic {ten.}}
  \override Staff.TextScript #'self-alignment-X = #-1
  c'4^\markup {\italic {ten.}}
  \override Staff.TextScript #'self-alignment-X = #-0.5
  c'4^\markup {\italic {ten.}}
  \override Staff.TextScript #'self-alignment-X = #0
  c'4^\markup {\italic {ten.}}
  \override Staff.TextScript #'self-alignment-X = #0.5
  c'4^\markup {\italic {ten.}}
  \override Staff.TextScript #'self-alignment-X = #1
  c'4^\markup {\italic {ten.}}
   }
}

%% END TEXTSCRIPT SELF-ALIGNMENT SNIPPET %

Just an fyi since TextScript didn't make the snarfing of layout
objects that implement the self-alignment interface (or perhaps it
does and I was just looking in the wrong places).

Anyway, very useful.


Trevor Bača
[EMAIL PROTECTED]


text-alignment.png
Description: PNG image
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: TextScript implements self-alignment interface

2005-08-27 Thread Han-Wen Nienhuys

Trevor Baca wrote:

TextScript layout objects implement the self-alignment interface quite
well. Here's an example:

  \override Staff.TextScript #'self-alignment-X = #-2
  c'4^\markup {\italic {ten.}}
  \override Staff.TextScript #'self-alignment-X = #-1.5


Indeed, that's why I always write #-1 instead of #LEFT :-)

--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


running convert-ly under win32 native

2005-08-27 Thread Ray Brohinsky
Heyla!
It's been a long time, but I'm back to trying to use lilypond again. A
lot of things have changed, my old pieces not being among them.

This is because I can't figure out how to run convert-ly on them. This
is the windows-native version of lilypond, auto-installed. I have
looked in the manual (which talks about running convert-ly as if there
is scheme or python available. 

Is this something I need to do (install python) in order to use the .py
scripts outside of lilypond? Or is there a syntax for lilypond that
will load and use the convert-ly code?

I did search the archives, but I couldn't find anything, probably
evidence of my poor understanding of how to use the search engine.

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


Re: TextScript implements self-alignment interface

2005-08-27 Thread Trevor Baca
On 8/27/05, Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote:
> Trevor Baca wrote:
> > TextScript layout objects implement the self-alignment interface quite
> > well. Here's an example:
> >
> >   \override Staff.TextScript #'self-alignment-X = #-2
> >   c'4^\markup {\italic {ten.}}
> >   \override Staff.TextScript #'self-alignment-X = #-1.5
> 
> Indeed, that's why I always write #-1 instead of #LEFT :-)

Good point, actually.

Question: the value ...

  \override Staff.TextScript #'self-alignment-X = #center
  \c'4^\markup {foo}

... centers the markup *relative to the left note-edge* (or possibly
NoteColumn??), while the combination ...

  \override Staff.TextScript #'self-alignment-X = #center
  \override Staff.TextScript #'extra-offset = #'(1.0 . 0.0)
  \c'4^\markup {foo}
  
... seems to center the markup *relative to the notecenter* (probably
because 1 horizontal space in the cons passed to extra-offset pretty
nearly equals half the width of a notehead??).

So the question is: is the pair of self-alignment and extra-offset (in
the second example) the best way to center markup relative to
*notecenter* or is there a way to specify the
position-from-which-relative-measures-are-made (like extra-offset)
directly, possibly by referencing the parent grob?


Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Yet another font problem

2005-08-27 Thread stk
>\override #'(font-name . "binnerd" )
>works fine, but
>\override #'(font-name . "minion regular" )
>comes out with the default(?) font.

Under Windows, I think you have to use the filename of the font
(without the ".TTF" suffix), not the friendly-fontname.

In my Windows/FONTS directory I have

   FontName   FileName
   .  .
   BinnerDBINNERN.TTF
   .  .
   .  .

which means I would have to use

\override #'(font-name . "binnern")

on my system.  I don't have a font named "minion regular"; you do,
of course, so look for its FileName in your Windows/FONTS directory,
or in whatever directory your minion regular font is stored.

-- Tom



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