Re: skyline vertical spacing

2007-01-05 Thread Han-Wen Nienhuys
Han-Wen Nienhuys escreveu:
 I'm not (yet) convinced that it's worth the effort. It seems that
 querying at a point is the only thing that gets improved speed.
 Merging and distance are still O(sum of length of skylines) because we
 need to at least look at every point in every skyline. Building a
 skyline is still O(n log n).
 
 I think you can do better on merging and distance, if you also store
 min/max heights in nodes; with that you could skip looking at an entire
 branch of points. However, you're right in that it is premature to
 optimize this.

Hi,

I have added scripts for profiling, see buildscripts/build-profile.sh.

It turns out that the skyline related routines have replaced 
Grob::get_property() as the top-contender in the profile.  Can you 
have a look to see if this can be  optimized? 


Each sample counts as 0.01 seconds.
  %   cumulative   self  self total   
 time   seconds   secondscalls  ms/call  ms/call  name
 16.39  6.36 6.36 10977483 0.00 0.00  
Building::conceals_beginning(Building const) const
 16.37 12.72 6.36   666756 0.01 0.01  
common_refpoint_of_array(std::vectorGrob*, std::allocatorGrob*  const, 
Grob*, Axis)
  6.21 15.13 2.41  1757179 0.00 0.01  
Skyline::internal_merge_skyline(std::listBuilding, std::allocatorBuilding 
*, std::listBuilding, std::allocatorBuilding *, std::listBuilding, 
std::allocatorBuilding *)
  5.69 17.34 2.21 18440608 0.00 0.00  
skyline_trailing_part(std::listBuilding, std::allocatorBuilding *, double)
  5.62 19.52 2.18 15397616 0.00 0.00  
Building::conceals(Building const) const
  4.05 21.09 1.57  6362790 0.00 0.00  Building::precompute()
  3.79 22.56 1.47  1694853 0.00 0.00  
Page_spacer::calc_subproblem(unsigned int, unsigned int)
  1.21 23.03 0.47 27360933 0.00 0.00  
Interval_tdouble::length() const
  1.20 23.49 0.47  5219812 0.00 0.00  Grob::extent(Grob*, Axis) 
const
  1.13 23.93 0.44 26448697 0.00 0.00  
Grob::internal_get_property_data(scm_unused_struct*) const
  0.84 24.26 0.33 20164826 0.00 0.00  Grob::get_offset(Axis) 
const


-- 

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: adding installation for windows in German

2007-01-05 Thread John Mandereau
Le vendredi 05 janvier 2007 à 07:58 +0100, till Rettig a écrit :
  cygwin.html and macos.html have not been updated for a while; macos.html
  is clearly outdated, but cygwin.html is still valuable (Cygwin provides
  2.10.7), so it should't be renamed to windows.html. You're right it
  should be clearly mentioned there are 2 LilyPond flavours on Windows
  (native and Cygwin).
 Yes, sorry, I meant I just renamed the file cygwin.html into
 windows.html so it would be found with the link. This is the patch I
 sent.

No, windows*.html pages on lilypond.org are stalled, they were renamed
to cygwin.html more than one year ago (commit
2a885250c835ea34f454275b07c1ba50c8a626a6; I've played with gitk to
discover this), but the links weren't updated.

I'm fixing it right now for all languages. Updating committishes is up
to the translators as usual. The webmasters (Jan  Han-Wen) may want to
junk the old windows*.html pages.


 Would be good to have also some installation advices in general, like
 about dependencies and so on (or how is that now, doesn't also the
 native windows version need gostscript?).

GUB is a package providing all dependencies (excepted libc.so.6 on
Linux), so you should never worry about dependencies. There is a link to
GUB readme at bootom of web/install.

Regarding other installation advice, I don't want to speak for the main
hackers, but you are free to write some blurb like where and what to
click for installing and getting started for the Windows version (to be
put in install/windows.html?), like what already exists about Cygwin.


Cheers
-- 
John Mandereau [EMAIL PROTECTED]



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


Re: adding installation for windows in German

2007-01-05 Thread Han-Wen Nienhuys
John Mandereau escreveu:
 Regarding other installation advice, I don't want to speak for the main
 hackers, but you are free to write some blurb like where and what to
 click for installing and getting started for the Windows version (to be
 put in install/windows.html?), like what already exists about Cygwin.
 

the windows package is self-contained, howeevr, see

 http://lilypond.org/web/devel/participating/editors
 
 Cheers


-- 

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: adding installation for windows in German

2007-01-05 Thread Jan Nieuwenhuizen
Han-Wen Nienhuys [EMAIL PROTECTED] writes:

 the windows package is self-contained, howeevr, see

  http://lilypond.org/web/devel/participating/editors

Interesting, see bottom of

http://lilypond.org/web/about/features

Jan.

-- 
Jan Nieuwenhuizen [EMAIL PROTECTED] | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org


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


Re: adding installation for windows in German

2007-01-05 Thread Han-Wen Nienhuys
Jan Nieuwenhuizen escreveu:
 Han-Wen Nienhuys [EMAIL PROTECTED] writes:
 
 the windows package is self-contained, howeevr, see

  http://lilypond.org/web/devel/participating/editors
 
 Interesting, see bottom of
 
 http://lilypond.org/web/about/features

yes, well, actually,  I also want that page to have a 
more appealing look.

-- 

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: LilyPond suggestions

2007-01-05 Thread Karl Hammar
[EMAIL PROTECTED]:
 Jesse Engle wrote:
 
  4.) There is no way to create an entire page of exercises (a feature 
  that would be incredibly useful for music teachers such as myself) 
  like this:
 
  http://jengle.waferbaby.com/tmp/lp/exercises.png
 Actually, you could do this too within LilyPond, since you can use
 \markup commands to create several columns and you can embed scores
 into a \markup command. Here's a simple example:
...

Whu not use \startStaff and \stopStaff, like:

\score {
  
\new Staff {
  \relative c' {
\clef alto c1 c \stopStaff s1
\startStaff b1 b \stopStaff s1
\startStaff a1 a \stopStaff
  }
}
\new Staff {
  \relative c' {
 \clef alto c1 c \stopStaff s1
 \startStaff b1 b \stopStaff s1
 \startStaff a1 a \stopStaff
  }
}
\new Staff {
  \relative c' {
 \clef alto c1 c \stopStaff s1
 \startStaff b1 b \stopStaff s1
 \startStaff a1 a \stopStaff
  }
}
 
}

See staff-halfway.ly [1] in the regression tests.

[1] http://lilypond.org/doc/v2.11/input/regression/lily-1a72868935.ly

Regards
/Karl




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


PATH again

2007-01-05 Thread Graham Percival
I know we've discussed this before, but could we re-open the debate?  I 
think we should have

bin/lilypond
bin/convert-ly
bin/lilypond-book
... (and other lilypond scripts)

in the LilyPond package, and move other programs to
lilybin/guile
lilybin/fc-cache
lilybin/ps2pdf

(or some other directory)


This would be nice because lily's ps2pdf has replaced fink's working ps2pdf.

$ ps2pdf foo.ps
AFPL Ghostscript SVN PRE-RELEASE 8.55: Can't find initialization file 
gs_init.ps.

w073-ecs:~/tmp gperciva$ which ps2pdf
/Users/gperciva/Apps/LilyPond.app/Contents/Resources/bin//ps2pdf


Lilypond itself works fine, so evidently it's happy with however ps2pdf 
is set up, but other things (including make web) aren't happy with this.


Cheers,
- Graham


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


make web external_binary

2007-01-05 Thread Graham Percival

Fresh git,
cp GNUmakefile.in GNUmakefile
make 
LILYPOND_EXTERNAL_BINARY=~/Apps/LilyPond.app/Contents/Resources/bin/lilypond 
LILYPOND_BOOK_LILYPOND_FLAGS= web



result (died very close to the beginning, after processing input/*.ly )
...
LANG= makeinfo  --enable-encoding -I ./out-www 
--output=out-www/collated-files.html 
--css-include=/Users/gperciva/usr/src/lilypond/Documentation/texinfo.css 
--html --no-split --no-headers out-www/collated-files.texi

out-www/collated-files.texi: No such file or directory
make[3]: *** [out-www/collated-files.html] Error 1
make[2]: *** [WWW] Error 2
make[1]: *** [WWW] Error 2
make: *** [web] Error 2
2007-01-05 09:57:45.003 open[1175] No such file: 
/Users/gperciva/usr/src/lilypond/out-www/lilypond/index.html



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


Re: PATH again

2007-01-05 Thread Han-Wen Nienhuys
Graham Percival escreveu:

 This would be nice because lily's ps2pdf has replaced fink's working
 ps2pdf.
 
 $ ps2pdf foo.ps
 AFPL Ghostscript SVN PRE-RELEASE 8.55: Can't find initialization file
 gs_init.ps.
 w073-ecs:~/tmp gperciva$ which ps2pdf
 /Users/gperciva/Apps/LilyPond.app/Contents/Resources/bin//ps2pdf
 
 
 Lilypond itself works fine, so evidently it's happy with however ps2pdf
 is set up, but other things (including make web) aren't happy with this.

it's easier to have some scripts that do

  exec .../lilypond.app/.../bin/lilypond $@

and not put the contents of the .app in your $PATH.  

-- 

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Git-patch: spanish WAS: /index.es.html has funny titles?

2007-01-05 Thread Daniel Tonda

I think this mail got lost somewhere, so I'm re-sending.
===

After talking to Franciso where he agreed that the titles were
misunderstood i modified the index file and the did:

$ git-update-index es/index.html
$ git-commit -m message
$ git format-patch HEAD^

The last command gave me what appears to be a diff of the modified
version against the old one, which I attach as a gzipped file so as
not to mangle the coding.

Should I do the pull after the modifications?

--
Daniel Tonda C.


0001-message.txt.gz
Description: GNU Zip compressed data
___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Git-patch: spanish WAS: /index.es.html has funny titles?

2007-01-05 Thread John Mandereau
Daniel Tonda wrote:
 I think this mail got lost somewhere, so I'm re-sending.

Sorry, it was lost in my private mailbox, I overlooked it. Please send
future translation updates only to this list.


 After talking to Franciso where he agreed that the titles were
 misunderstood i modified the index file and the did:
 
 $ git-update-index es/index.html
 $ git-commit -m message
 $ git format-patch HEAD^

Patch applied.


 The last command gave me what appears to be a diff of the modified
 version against the old one, which I attach as a gzipped file so as
 not to mangle the coding.
 
 Should I do the pull after the modifications?

Yes, and it might tell you that you have to merge.

Cheers
-- 
John Mandereau [EMAIL PROTECTED]



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


Re: musicxml2ly bug

2007-01-05 Thread Graham Percival
I'm not certain what to do with this report.  I'd normally ask for a 
small snippet, but I don't know if it's easy to produce one with 
musicxml.  OTOH, a 151Kb .xml file seems a bit large to add to the bug 
tracker.




Werner LEMBERG wrote:

[lilypond 2.11.7]

I've just received the attached MusicXML file for testing purposes.
Trying musicxml2ly on this file, the script aborts with

  Traceback (most recent call last):
File /usr/local/bin/musicxml2ly, line 656, in ?
  main()
File /usr/local/bin/musicxml2ly, line 653, in main
  voices = convert (args[0], options)
File /usr/local/bin/musicxml2ly, line 614, in convert
  voices = get_all_voices (parts)
File /usr/local/bin/musicxml2ly, line 465, in get_all_voices
  part_ly_voices[n] = (musicxml_voice_to_lily_voice (v), v)
File /usr/local/bin/musicxml2ly, line 333, in musicxml_voice_to_lily_voice
  num = int (n.get_parent ().number)
  ValueError: invalid literal for int(): 22A

And indeed, the corresponding XML snippet shows this:

  measure number=21
  ...
  measure number=22
  ...
  measure number=22A non-controlling=yes
  ...


 Werner




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




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


Re: musicxml2ly bug

2007-01-05 Thread Han-Wen Nienhuys
Graham Percival escreveu:
 I'm not certain what to do with this report.  I'd normally ask for a
 small snippet, but I don't know if it's easy to produce one with
 musicxml.  OTOH, a 151Kb .xml file seems a bit large to add to the bug
 tracker.
 
 

Just note that measure numbers aren't numbers with the XML snippet.



-- 

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: adding installation for windows in German

2007-01-05 Thread John Mandereau
Han-Wen Nienhuys wrote:
 Jan Nieuwenhuizen escreveu:
  Han-Wen Nienhuys [EMAIL PROTECTED] writes:
  
  the windows package is self-contained, howeevr, see
 
   http://lilypond.org/web/devel/participating/editors
  
  Interesting, see bottom of
  
  http://lilypond.org/web/about/features
 
 yes, well, actually,  I also want that page to have a 
 more appealing look.
 

Agreed. The features list is too long; IMHO it'd be better to illustrate
these features by a few LilyPond scores, one for each notation domain:
vocal music, orchestral full score, piano music, contemporary music...
For this, we would need more than one features page.

If I do something (not before February anyway), may I take inspiration
from typography-demo.svg?

-- 
John Mandereau [EMAIL PROTECTED]



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


Re: musicxml2ly bug

2007-01-05 Thread Graham Percival

Han-Wen Nienhuys wrote:

Graham Percival escreveu:

I'm not certain what to do with this report.  I'd normally ask for a
small snippet, but I don't know if it's easy to produce one with
musicxml.  OTOH, a 151Kb .xml file seems a bit large to add to the bug
tracker.




Just note that measure numbers aren't numbers with the XML snippet.


OK, entered as
http://code.google.com/p/lilypond/issues/detail?id=222

- Graham


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


Re: musicxml2ly bug

2007-01-05 Thread Werner LEMBERG
 I'm not certain what to do with this report.  I'd normally ask for a
 small snippet, but I don't know if it's easy to produce one with
 musicxml.  OTOH, a 151Kb .xml file seems a bit large to add to the
 bug tracker.

I suggest to store it compressed.


Werner


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


Re: adding installation for windows in German

2007-01-05 Thread Han-Wen Nienhuys
John Mandereau escreveu:

 If I do something (not before February anyway), may I take inspiration
 from typography-demo.svg?

certainly.

-- 

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

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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