Re: Can't run GUB 2.9.4 on linux

2006-05-11 Thread Han-Wen Nienhuys

Joe Neeman schreef:
I'm trying to install the GUB 2.9.4-1 on gentoo linux (amd64, but with a bunch 
of x86 compatibility libs). I get
$ 
LD_LIBRARY_PATH=/home/joe/oldlilypond/usr/lib/ /home/joe/oldlilypond/usr/bin/lilypond
/home/joe/oldlilypond/usr/bin/lilypond: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/32/libstdc++.so.6: 
version `CXXABI_1.3.1' not found (required 
by /home/joe/oldlilypond/usr/bin/lilypond)






So it seems 2.8.1 is linked statically with libstdc++ and 2.9.4 isn't. Is this 
intentional?


No, there was a packaging error with GCC that slipped through in the 
installer.


--

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


ps changes betweeen 2.7.29 and 2.8.2 broke tabloid booklet

2006-05-11 Thread Graham Percival
I produce tabloid booklets of my music (fold tabloid sheet in half to 
get letter-sized pages).  The method I use to produce them currently 
does not work; it worked in 2.7.29.  I'm not certain if any ps changes 
went into 2.9 but not 2.8.2.


1) use lilypond-book to produce normal ps and pdf.  (well, 
normal-looking; I know little about under-the-hood ps stuff)

2) run this:
psbook $1.ps | psnup -2 -ptabloid -Pletter | ps2pdf -sPAPERSIZE=11x17 - 
tab-$1.pdf


With 2.8.2, the final ps2pdf fails.  Interestingly, I can run ps2pdf on 
the original .ps (produced by lilypond-book), but when I try to run it 
on the result of the psbook and psnup, it produces this:



spark:~/aaa/opus/op2/out gperciva$ psbook op2.ps | psnup -2 -ptabloid 
-Pletter > foo.ps

[*] [1] [2] [3] Wrote 4 pages, 804556 bytes
[1] [2] Wrote 2 pages, 807534 bytes
spark:~/aaa/opus/op2/out gperciva$ ps2pdf -sPAPERSIZE=11x17 foo.ps 
foo.pdf

Error: /rangecheck in --get--
Operand stack:
   names   --nostringval--   1   6147   --nostringval--   37
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval-- 
  --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   
1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   
.runexec2   --nostringval--   --nostringval--   --nostringval--   2   
%stopped_push   --nostringval--   --nostringval--   --nostringval--   
--nostringval--

Dictionary stack:
   --dict:1124/1686(ro)(G)--   --dict:0/20(G)--   --dict:81/200(L)--   
--dict:53/72(ro)(G)--   --dict:10/30(L)--

Current allocation mode is local
Last OS error: 2
Current file position is 4968
AFPL Ghostscript 8.51: Unrecoverable error, exit code 1


Files sent privately upon request.  Using psutils 1.17 and ps2pdf 
(ghostscript) 8.51

- Graham



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


(doc help) quick check on C++ vs. scheme

2006-05-11 Thread Graham Percival

From 11.1.2 Internal music representation

C++ object: Each music object is represented by a C++ object. For 
technical reasons, different music objects may be represented by 
different C++ object types. For example, a note is Event object, while 
\grace creates a Grace_music object.


We expect that distinctions between different C++ types will disappear 
in the future.



IIRC, a few years ago we replaced a bunch of C++ things with scheme.  I 
also doubt that anybody's looked at this chapter in the past few years. 
 Is this data still correct?


Cheers,
- Graham



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


\displayMusic should begin with a newline

2006-05-11 Thread Graham Percival

A simple example of \displayMusic produces:

spark:~/tmp gperciva$ lilypond bug.ly
GNU LilyPond 2.8.2
Processing `bug.ly'
Parsing...(make-music
  'SequentialMusic
  'elements
  (list (make-music
  'EventChord
  'elements
  (list (make-music
...

IMO, it would be much nicer if it produced
GNU LilyPond 2.8.2
Processing `bug.ly'
Parsing...
(make-music
  'SequentialMusic
  'elements
  (list (make-music
...


Cheers,
- Graham



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


\displayLilyMusic should also have a newline.

2006-05-11 Thread Graham Percival

Sorry, I didn't check this before sending the earlier message.

Parsing...{ a, cis e fis g }
=>
Parsing...
{ a, cis e fis g }


Cheers,
- Graham



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


(doc help) scheme: why not start with define-music-function ?

2006-05-11 Thread Graham Percival
In the current manual, define-music-function is introduced late in the 
scheme chapter.  I suspect that this is simply because 
define-music-function is a more recent lilypond construct, and whoever 
added it didn't want to disturb the existing material.  Is that 
correct?


I'm revising the chapter now (as you can tell from the previous 
half-dozen emails :), and it makes sense to me to _begin_ the chapter 
with define-music-function, and then work through the general theory of 
scheme, lilypond music expressions, etc.  In other words, stick the 
define-music-function stuff *before* the current 11.1.1.  Are there any 
objections?  I really don't think that people need to know what 
#(ly:make-music-function  (11.1.3) does before using 
define-music-function, but I still can't claim to fully understand 
#(ly:make-music-function  myself, so I might be missing some vital 
info.


My current sense is that define-music-function and \displayMusic (and 
perhaps a bit of patience) are the most important parts of 11.1.  
Thoughts?


Cheers,
- Graham



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


Re: (doc help) scheme: why not start with define-music-function ?

2006-05-11 Thread Mats Bengtsson

I would start with the last example of current 11.1.6 (or some other
similar example(s)). Then, we can introduce the basics of how to
replace some of the embedded LilyPond code with Scheme code
to get more flexibility. This second step, of course, is an excellent
example of how to use \displayScheme.

  /Mats

Graham Percival wrote:

In the current manual, define-music-function is introduced late in the 
scheme chapter.  I suspect that this is simply because 
define-music-function is a more recent lilypond construct, and whoever 
added it didn't want to disturb the existing material.  Is that correct?


I'm revising the chapter now (as you can tell from the previous 
half-dozen emails :), and it makes sense to me to _begin_ the chapter 
with define-music-function, and then work through the general theory 
of scheme, lilypond music expressions, etc.  In other words, stick the 
define-music-function stuff *before* the current 11.1.1.  Are there 
any objections?  I really don't think that people need to know what 
#(ly:make-music-function  (11.1.3) does before using 
define-music-function, but I still can't claim to fully understand 
#(ly:make-music-function  myself, so I might be missing some vital info.


My current sense is that define-music-function and \displayMusic (and 
perhaps a bit of patience) are the most important parts of 11.1.  
Thoughts?


Cheers,
- Graham



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



--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


(doc/language help) resp?

2006-05-11 Thread Graham Percival
What does resp mean?  I'm guessing something like "and"?  Is it Dutch, 
or Latin?


"One can not feed the #:line (resp #:center, #:column) command with a 
variable ..."
"One should use the make-line-markup (resp., make-center-markup or 
make-column-markup) function..."


This word certainly doesn't exist in English...
- Graham



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


Re: (doc/language help) resp?

2006-05-11 Thread Mats Bengtsson
It's probably short for "respectively" and placed at the wrong place in 
the sentence.

I don't know about Dutch, but in Swedish, we say something like
"A respektive B" where you in English say "A and B, respectively".

  /Mats

Graham Percival wrote:

What does resp mean?  I'm guessing something like "and"?  Is it Dutch, 
or Latin?


"One can not feed the #:line (resp #:center, #:column) command with a 
variable ..."
"One should use the make-line-markup (resp., make-center-markup or 
make-column-markup) function..."


This word certainly doesn't exist in English...
- Graham



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



--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


(doc help) 11.2, incomprehensible language

2006-05-11 Thread Graham Percival

11.2 Markup programmer interface

Markups are implemented as special Scheme functions. When applied with 
as arguments an output definition (\layout or \paper), and a list of 
properties and other arguments, produce a Stencil object.


* Markup construction in Scheme
* How markups work internally
* Markup command definition


I have no idea what the second sentence is trying to say.  Can I simply 
delete it?

- Graham



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


Re: (doc/language help) resp?

2006-05-11 Thread Graham Percival


On 11-May-06, at 6:16 AM, Mats Bengtsson wrote:

It's probably short for "respectively" and placed at the wrong place 
in the sentence.

I don't know about Dutch, but in Swedish, we say something like
"A respektive B" where you in English say "A and B, respectively".


Thanks, fixed in CVS.
- Graham



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


Re: (doc help) scheme: why not start with define-music-function ?

2006-05-11 Thread Graham Percival


On 11-May-06, at 6:03 AM, Mats Bengtsson wrote:


I would start with the last example of current 11.1.6 (or some other
similar example(s)). Then, we can introduce the basics of how to
replace some of the embedded LilyPond code with Scheme code
to get more flexibility.


Good, that was my intention.

 This second step, of course, is an excellent example of how to use 
\displayScheme.


What's this?
{
  \displayScheme { c'4\f }
}
fails.  Are you talking about the guile (display-scheme-music ) 
command, from Nicolas' webpage?


- Graham



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


Re: (doc help) quick check on C++ vs. scheme

2006-05-11 Thread Erik Sandberg
On Thursday 11 May 2006 14:22, Graham Percival wrote:
>  From 11.1.2 Internal music representation
> 
> C++ object: Each music object is represented by a C++ object. For
> technical reasons, different music objects may be represented by
> different C++ object types. For example, a note is Event object, while
> \grace creates a Grace_music object.
>
> We expect that distinctions between different C++ types will disappear
> in the future.
> 
>
> IIRC, a few years ago we replaced a bunch of C++ things with scheme.  I
> also doubt that anybody's looked at this chapter in the past few years.
>   Is this data still correct?

No, there's only one Music class now (it changed somewhere in 2.7.x).

-- 
Erik


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


Re: \displayMusic should begin with a newline

2006-05-11 Thread Erik Sandberg
On Thursday 11 May 2006 14:30, Graham Percival wrote:
> A simple example of \displayMusic produces:
>
> spark:~/tmp gperciva$ lilypond bug.ly
> GNU LilyPond 2.8.2
> Processing `bug.ly'
> Parsing...(make-music
>'SequentialMusic
>'elements
>(list (make-music
>'EventChord
>'elements
>(list (make-music
> ...
>
> IMO, it would be much nicer if it produced
> GNU LilyPond 2.8.2
> Processing `bug.ly'
> Parsing...
> (make-music
>'SequentialMusic
>'elements
>(list (make-music
> ...

Try redirecting stderr and stdout to different files:

lilypond bug.ly 2>err >out

and you'll understand why the current behaviour is intended.

-- 
Erik


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


Re: (doc help) scheme: why not start with define-music-function ?

2006-05-11 Thread Mats Bengtsson

Sorry, I mean \displayMusic, nothing else.

  /Mats

Graham Percival wrote:



On 11-May-06, at 6:03 AM, Mats Bengtsson wrote:


I would start with the last example of current 11.1.6 (or some other
similar example(s)). Then, we can introduce the basics of how to
replace some of the embedded LilyPond code with Scheme code
to get more flexibility.



Good, that was my intention.

 This second step, of course, is an excellent example of how to use 
\displayScheme.



What's this?
{
  \displayScheme { c'4\f }
}
fails.  Are you talking about the guile (display-scheme-music ) 
command, from Nicolas' webpage?


- Graham



--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: \displayMusic should begin with a newline

2006-05-11 Thread Graham Percival


On 11-May-06, at 7:01 AM, Erik Sandberg wrote:


On Thursday 11 May 2006 14:30, Graham Percival wrote:

Processing `bug.ly'
Parsing...(make-music
   'SequentialMusic


Try redirecting stderr and stdout to different files:

lilypond bug.ly 2>err >out

and you'll understand why the current behaviour is intended.


OK, I suppose that I could add that to the manual; it's easy enough on 
linux and OSX.  But IIRC windows doesn't support pipes -- can I assume 
that anybody on windows would be using cygwin/bash ?  Or is there 
another way to get stdout and stderr in separate files on windows?


Cheers,
- Graham



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


Re: \displayMusic should begin with a newline

2006-05-11 Thread Mats Bengtsson



Graham Percival wrote:

OK, I suppose that I could add that to the manual; it's easy enough on 
linux and OSX.  But IIRC windows doesn't support pipes -- can I assume 
that anybody on windows would be using cygwin/bash ?  Or is there 
another way to get stdout and stderr in separate files on windows?


In general, I definitely don't think that we should assume/recommend
Windows users to use cygwin/bash. In this particular situation it's just
a matter of the small inconvenience of having to recognize and cut out
the relevant part of the printouts manually. If you provide one example
of the input and corresponding output, anybody should be able to do
enough pattern matching to recognize what to look for, right?

  /Mats


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


Re: \displayMusic should begin with a newline

2006-05-11 Thread Geoff Horton

OK, I suppose that I could add that to the manual; it's easy enough on
linux and OSX.  But IIRC windows doesn't support pipes -- can I assume
that anybody on windows would be using cygwin/bash ?


I don't think so. There's not even a cygwin version of 2.8 available.


Or is there
another way to get stdout and stderr in separate files on windows?


I think the standard way works:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true

Geoff


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


Re: (doc help) 11.2, incomprehensible language

2006-05-11 Thread Mats Bengtsson

Since these details on the input and output of the Scheme functions are
described in 11.2.3, we could skip it. Or reformulate it into something 
like:

"Markups are implemented as special Scheme functions, that produce a
Stencil object given a number of arguments."

  /Mats


Graham Percival wrote:


11.2 Markup programmer interface

Markups are implemented as special Scheme functions. When applied with 
as arguments an output definition (\layout or \paper), and a list of 
properties and other arguments, produce a Stencil object.


* Markup construction in Scheme
* How markups work internally
* Markup command definition


I have no idea what the second sentence is trying to say.  Can I 
simply delete it?

- Graham



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



--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: \displayMusic should begin with a newline

2006-05-11 Thread Mats Bengtsson



Geoff Horton wrote:


OK, I suppose that I could add that to the manual; it's easy enough on
linux and OSX.  But IIRC windows doesn't support pipes -- can I assume
that anybody on windows would be using cygwin/bash ?



I don't think so. There's not even a cygwin version of 2.8 available.


You can call the "native" windows LilyPond package from within a
Cygwin command window if you just make sure to set the correct
paths. However, given what you say below, there's no need for that.


Or is there
another way to get stdout and stderr in separate files on windows?



I think the standard way works:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true 



Great to learn that you can use some UNIX syntax in Windows!

  /Mats


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


Re: Can't run GUB 2.9.4 on linux

2006-05-11 Thread Han-Wen Nienhuys

2006/5/11, Han-Wen Nienhuys <[EMAIL PROTECTED]>:

> So it seems 2.8.1 is linked statically with libstdc++ and 2.9.4 isn't. Is this
> intentional?

No, there was a packaging error with GCC that slipped through in the
installer.


can you try the latest 2.9.4 build?
thanks

--
Han-Wen Nienhuys
[EMAIL PROTECTED]
http://www.xs4all.nl/~hanwen
___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: (doc help) scheme: why not start with define-music-function ?

2006-05-11 Thread Nicolas Sceaux
Graham Percival <[EMAIL PROTECTED]> writes:

> In the current manual, define-music-function is introduced late in the
> scheme chapter.  I suspect that this is simply because
> define-music-function is a more recent lilypond construct, and whoever
> added it didn't want to disturb the existing material.  Is that
> correct?

You're absolutely right. First, the doc for ly:make-music-function was
introduced, then I added something for define-music-function, preserving
the previous documentation. Reading it again now, it is really strange.

> I'm revising the chapter now (as you can tell from the previous
> half-dozen emails :), and it makes sense to me to _begin_ the chapter
> with define-music-function, and then work through the general theory
> of scheme, lilypond music expressions, etc.  In other words, stick the
> define-music-function stuff *before* the current 11.1.1.  Are there
> any objections?  I really don't think that people need to know what
> #(ly:make-music-function  (11.1.3) does before using
> define-music-function, but I still can't claim to fully understand
> #(ly:make-music-function  myself, so I might be missing some vital
> info.

ly:make-music-function is the interface with C++ code, and
define-music-function is the public interface. People don't need to know
about ly:make-music-function at all (people who would have to use it
would find it by themselves anyway).

> My current sense is that define-music-function and \displayMusic (and
> perhaps a bit of patience) are the most important parts of 11.1.
> Thoughts?

define-music-function, with a very straight forward use of the #{ #}
syntax, may be introduced first. 

%%% Example with one music argument (a note)
custosNote = 
#(define-music-function (parser location note)
(ly:music?)
  #{ 
\once \override Voice.NoteHead #'stencil = 
  #ly:text-interface::print
\once \override Voice.NoteHead #'text = 
  \markup \musicglyph #"custodes.mensural.u0"
\once \override Voice.Stem #'stencil = ##f 
$note
  #})

{ c' d' e' f' \custosNote g' }


%%% Example with two music arguments
firstAndSecondTime = 
#(define-music-function (parser location first-time second-time) 
(ly:music? ly:music?)
  #{
\set Score.repeatCommands = #'((volta "1."))
$first-time
\bar ":|"
\set Score.repeatCommands = #'((volta #f) (volta "2."))
$second-time
\set Score.repeatCommands = #'((volta #f)) 
  #})

{ c'2 c'
  \firstAndSecondTime { d' d' } { e' e' }
}

%%% Example with a markup argument
tempoMark =
#(define-music-function (parser location tempo-markup)
(markup?)
  #{
\once \override Score . RehearsalMark #'self-alignment-X = #-1
\once \override Score . RehearsalMark #'no-spacing-rods = ##t
\once \override Score . RehearsalMark #'padding = #2
\once \override Score . RehearsalMark #'break-align-symbol = #'left-edge
\mark \markup \fontsize #-1 \italic $tempo-markup 
  #})

{
  \tempoMark \markup { Allegro molto. } 
  c'' c'' c'' c'' 
  \mark "Another mark"
   c'' c'' c'' c'' 
}


In a second step, a more complex example, requiring manipulating music
expressions, could be explained. There, \displayMusic should be used.
I don't have a good example in mind at the moment...

nicolas


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


Re: (doc/language help) resp?

2006-05-11 Thread Nicolas Sceaux
Mats Bengtsson <[EMAIL PROTECTED]> writes:

> Graham Percival wrote:
>
>> What does resp mean?  I'm guessing something like "and"?  Is it
>> Dutch, or Latin?
>>
>> "One can not feed the #:line (resp #:center, #:column) command with
>> a variable ..."
>> "One should use the make-line-markup (resp., make-center-markup or
>> make-column-markup) function..."
>>
>> This word certainly doesn't exist in English...
>> - Graham
>>

> It's probably short for "respectively" and placed at the wrong place
> in the sentence.
> I don't know about Dutch, but in Swedish, we say something like
> "A respektive B" where you in English say "A and B, respectively".
>
>/Mats
>

Sorry, it was a French-ism, where it looks like the Swedish way: 
"A, respectivement B, ..."

nicolas


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


Re: (doc help) scheme: why not start with define-music-function ?

2006-05-11 Thread Mats Bengtsson

A related question, how do you define a music function that takes
a string or a markup as an argument?

For the documentation, we should include a list of predicates (is this 
the correct term) to use to specify the

argument type for all commonly occuring arguments, including:

Music expression - ly:music?
Integer argument - integer?
Markup   - markup?
Text string  - string?
Scheme symbol- symbol?
...


  /Mats




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


Re: Can't run GUB 2.9.4 on linux

2006-05-11 Thread Joe Neeman
On Fri, 12 May 2006 05:38, Han-Wen Nienhuys wrote:
> 2006/5/11, Han-Wen Nienhuys <[EMAIL PROTECTED]>:
> > > So it seems 2.8.1 is linked statically with libstdc++ and 2.9.4 isn't.
> > > Is this intentional?
> >
> > No, there was a packaging error with GCC that slipped through in the
> > installer.
>
> can you try the latest 2.9.4 build?

works great, thanks


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


what is 2.8.2?

2006-05-11 Thread Thomas Bushnell BSG

how is it that there are binary packages for some systems for 2.8.2,
but no source?



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


Re: \displayMusic should begin with a newline

2006-05-11 Thread Paul Scott

Graham Percival wrote:


On 11-May-06, at 7:01 AM, Erik Sandberg wrote:


On Thursday 11 May 2006 14:30, Graham Percival wrote:

Processing `bug.ly'
Parsing...(make-music
   'SequentialMusic


Try redirecting stderr and stdout to different files:

lilypond bug.ly 2>err >out

and you'll understand why the current behaviour is intended.


OK, I suppose that I could add that to the manual; it's easy enough on 
linux and OSX.  But IIRC windows doesn't support pipes -- 
Sure it does.  The original DOS came from some version of Unix.  
Redirection and pipes have always been there.  I just taught their use 
this week in a WXP class.


Paul Scott



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


Re: \displayMusic should begin with a newline

2006-05-11 Thread Johannes Schindelin
Hi,

On Thu, 11 May 2006, Paul Scott wrote:

> Graham Percival wrote:
>
> > But IIRC windows doesn't support pipes -- 
> Sure it does.  The original DOS came from some version of Unix.  
> Redirection and pipes have always been there.  I just taught their use 
> this week in a WXP class.

At least DOS does not really. Since it is not multitasked, IIRC you can 
pipe only 64K of text, and it does not even fail if there was more data. 
It's been quite a time since I seriously hacked DOS, though, so I could be 
completely wrong.

Ciao,
Dscho



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


Re: \displayMusic should begin with a newline

2006-05-11 Thread Paul Scott

Johannes Schindelin wrote:

Hi,

On Thu, 11 May 2006, Paul Scott wrote:

  

Graham Percival wrote:


But IIRC windows doesn't support pipes -- 
  
Sure it does.  The original DOS came from some version of Unix.  
Redirection and pipes have always been there.  I just taught their use 
this week in a WXP class.



At least DOS does not really. Since it is not multitasked, ]
The point was really about redirection of I/O anyway.  That shouldn't 
require multitasking.
IIRC you can 
pipe only 64K of text, and it does not even fail if there was more data. 
  
Probably not a problem for cmd under WXP which is what is (should be) 
used by many.  I realize that some may be using W98 which may have 
problems here but again the point was really redirection.


Have fun,

Paul



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


configure does not check for python version >=2.4

2006-05-11 Thread Karl Hammar

Running whith e.g python 2.3.5 gives me:

  $ make
  ...
  make[1]: Entering directory `/home/karl/most/music/lilypond/head/scripts'
  cat convert-ly.py | sed -e '#'  -e '[EMAIL PROTECTED]@!/bin/sh!g'  -e '[EMAIL 
PROTECTED]
  chmod 755 out/convert-ly
  /usr/bin/perl /home/karl/most/music/lilypond/head/buildscripts/out/help2man 
out/convert-ly > out/convert-ly.1
  help2man: can't get `--help' info from out/convert-ly
  make[1]: *** [out/convert-ly.1] Error 1
  make[1]: Leaving directory `/home/karl/most/music/lilypond/head/scripts'
  make: *** [all] Error 2

Which fails due to missing module subprocess.
It was introduced recently:

  $ grep -B7 -A1 subprocess ChangeLog 

  2006-03-12  Han-Wen Nienhuys  <[EMAIL PROTECTED]>

  * scripts/lilypond-book.py (get_latex_textwidth): explicitly close
  tmphandle.

  * python/lilylib.py (system): rewrite system() using
  subprocess. Remove >& redirection trickery.

Which makes python ver. 2.4 a requirement:
 http://www.python.org/doc/2.4.2/lib/module-subprocess.html

Attached patch seems to solve that, though it gives strange error message:

  $./configure
  ...
  config.status: creating config.hh

  ERROR: Please install required programs:  python2.3 >= 2.4 (installed: 2.3) 
Python.h (python-devel, python-dev or libpython-dev package)

  See INSTALL.txt for more information on how to build LilyPond

Regards,
/Karl

---
Karl HammarAspö Data   [EMAIL PROTECTED]
Lilla Aspö 2340Networks
S-742 94 Östhammar  +46  173 140 57   Computers
Sweden +46  70 511 97 84 Consulting
---

Index: ChangeLog
===
RCS file: /sources/lilypond/lilypond/ChangeLog,v
retrieving revision 1.4948
diff -u -r1.4948 ChangeLog
--- ChangeLog   11 May 2006 13:00:10 -  1.4948
+++ ChangeLog   11 May 2006 22:58:37 -
@@ -1,3 +1,7 @@
+2006-05-12  Karl Hammar  <[EMAIL PROTECTED]>
+
+   * stepmake/aclocal.m4: bump python requirement to version 2.4
+
 2006-05-11  Graham Percival  <[EMAIL PROTECTED]>
 
* Documentation/user/programming-interface.itely: first round of
Index: stepmake/aclocal.m4
===
RCS file: /sources/lilypond/lilypond/stepmake/aclocal.m4,v
retrieving revision 1.168
diff -u -r1.168 aclocal.m4
--- stepmake/aclocal.m4 3 May 2006 20:30:59 -   1.168
+++ stepmake/aclocal.m4 11 May 2006 22:58:37 -
@@ -752,7 +752,7 @@
 fi
 AC_SUBST(SHELL)
 
-STEPMAKE_PYTHON(REQUIRED, 1.5)
+STEPMAKE_PYTHON(REQUIRED, 2.4)
 
 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
$MAKE -v 2> /dev/null | grep GNU > /dev/null
___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: what is 2.8.2?

2006-05-11 Thread Han-Wen Nienhuys

Thomas Bushnell BSG schreef:

how is it that there are binary packages for some systems for 2.8.2,
but no source?


good point. I forgot to upload.

--

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: (doc help) scheme: why not start with define-music-function ?

2006-05-11 Thread Han-Wen Nienhuys

Mats Bengtsson schreef:

A related question, how do you define a music function that takes
a string or a markup as an argument?



You don't. It has to take either a markup or a string.


--

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: configure does not check for python version >=2.4

2006-05-11 Thread Karl Hammar
> 
> Running whith e.g python 2.3.5 gives me:
> 
>   $ make
>   ...
>   make[1]: Entering directory `/home/karl/most/music/lilypond/head/scripts'
>   cat convert-ly.py | sed -e '#'  -e '[EMAIL PROTECTED]@!/bin/sh!g'  -e 
> '[EMAIL PROTECTED]
>   chmod 755 out/convert-ly
>   /usr/bin/perl /home/karl/most/music/lilypond/head/buildscripts/out/help2man 
> out/convert-ly > out/convert-ly.1
>   help2man: can't get `--help' info from out/convert-ly
>   make[1]: *** [out/convert-ly.1] Error 1
>   make[1]: Leaving directory `/home/karl/most/music/lilypond/head/scripts'
>   make: *** [all] Error 2
> 
> Which fails due to missing module subprocess.
> It was introduced recently:
> 
>   $ grep -B7 -A1 subprocess ChangeLog 
> 
>   2006-03-12  Han-Wen Nienhuys  <[EMAIL PROTECTED]>
> 
> * scripts/lilypond-book.py (get_latex_textwidth): explicitly close
> tmphandle.
> 
> * python/lilylib.py (system): rewrite system() using
> subprocess. Remove >& redirection trickery.
> 
> Which makes python ver. 2.4 a requirement:
>  http://www.python.org/doc/2.4.2/lib/module-subprocess.html
> 
> Attached patch seems to solve that, though it gives strange error message:
> 
>   $./configure
>   ...
>   config.status: creating config.hh
> 
>   ERROR: Please install required programs:  python2.3 >= 2.4 (installed: 2.3) 
> Python.h (python-devel, python-dev or libpython-dev package)
> 
>   See INSTALL.txt for more information on how to build LilyPond

Hm, configure.in seems better suited for that change than
stepmake/aclocal.m4.

Changelog:

2006-05-12  Karl Hammar  <[EMAIL PROTECTED]>

* configure.in: bump python requirement to version 2.4

Regards,
/Karl

---
Karl HammarAspö Data   [EMAIL PROTECTED]
Lilla Aspö 2340Networks
S-742 94 Östhammar  +46  173 140 57   Computers
Sweden +46  70 511 97 84 Consulting
---

Index: configure.in
===
RCS file: /sources/lilypond/lilypond/configure.in,v
retrieving revision 1.191
diff -u -r1.191 configure.in
--- configure.in9 May 2006 08:21:17 -   1.191
+++ configure.in12 May 2006 00:01:44 -
@@ -83,7 +83,7 @@
 
 
 
-STEPMAKE_PYTHON(REQUIRED, 2.3)
+STEPMAKE_PYTHON(REQUIRED, 2.4)
 STEPMAKE_GCC(REQUIRED, 4.0)
 STEPMAKE_CXX(REQUIRED)
 STEPMAKE_GXX(REQUIRED, 4.0)
___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


MergeKern: Failed to find kern info in file

2006-05-11 Thread Karl Hammar

(Current cvs)

  $ make
...
  make[1]: Entering directory `/home/karl/most/music/lilypond/head/mf'
  /usr/bin/fontforge -script ../buildscripts/pfx2ttf.fontforge /usr/X11R6/l...
  Copyright (c) 2000-2005 by George Williams.
   Executable based on sources from 12:08 5-Dec-2005.
  MergeKern: Failed to find kern info in file
  Called from...
   ../buildscripts/pfx2ttf.fontforge: line 5
  make[1]: *** [out/CenturySchL-Ital.otf] Error 1
  make[1]: Leaving directory `/home/karl/most/music/lilypond/head/mf'
  make: *** [all] Error 2

configure checks where the pfb files for Century Schoolbook are,
and assumes that the afm files are in the same directory.
Which fails if the given file is a link the real pfb file
(in some other direcotory):

  $ fc-match --verbose 'Century Schoolbook L:style=Italic' | grep file:
  file: "/usr/X11R6/lib/X11/fonts/Type1/c059033l.pfb"(s)
  $ ls -l /usr/X11R6/lib/X11/fonts/Type1/c059033l.*  
  lrwxrwxrwx  1 root root 53 Nov 29 12:20 
/usr/X11R6/lib/X11/fonts/Type1/c059033l.pfb -> 
../../../../../share/fonts/type1/gsfonts/c059033l.pfb
  $ ls -l /usr/share/fonts/type1/gsfonts/c059033*
  -rw-r--r--  1 root root  43546 Apr  3  2005 
/usr/share/fonts/type1/gsfonts/c059033l.afm
  -rw-r--r--  1 root root 113732 Apr  3  2005 
/usr/share/fonts/type1/gsfonts/c059033l.pfb

Attached patch solves that (still assuming that the afm is in the same 
directory as the "real" pfb file).

One could possible do the same for the
"./configure --with-ncsb-dir=..." case.

2006-05-12  Karl Hammar  <[EMAIL PROTECTED]>

* configure.in: resolve symlinks for pfb-files, to be able to 
find its afm file.

Regards,
/Karl

---
Karl HammarAspö Data   [EMAIL PROTECTED]
Lilla Aspö 2340Networks
S-742 94 Östhammar  +46  173 140 57   Computers
Sweden +46  70 511 97 84 Consulting
---

Index: configure.in
===
RCS file: /sources/lilypond/lilypond/configure.in,v
retrieving revision 1.191
diff -u -r1.191 configure.in
--- configure.in9 May 2006 08:21:17 -   1.191
+++ configure.in12 May 2006 00:41:35 -
@@ -71,6 +71,7 @@
   NCSB_FILE=`$FCMATCH --verbose 'Century Schoolbook L:style=$style' | grep 
'file:'`
 
   NCSB_FILE=`echo $NCSB_FILE | sed 's/^.*"\(.*\)".*$/\1/g'`
+  NCSB_FILE=`readlink -f $NCSB_FILE`
   NCSB_SOURCE_FILES="$NCSB_FILE $NCSB_SOURCE_FILES"
 done
   else
___
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: (doc/language help) resp?

2006-05-11 Thread Werner LEMBERG

> Sorry, it was a French-ism, where it looks like the Swedish way: 
> "A, respectivement B, ..."

In German we have the same: `A bzw. B' (where `bzw.' is short for
`beziehungsweise').


Werner


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


Re: implementation plan for music streams

2006-05-11 Thread Erik Sandberg
On Thursday 11 May 2006 00:54, Han-Wen Nienhuys wrote:
> 2006/5/10, Erik Sandberg <[EMAIL PROTECTED]>:
> > Citerar Han-Wen Nienhuys <[EMAIL PROTECTED]>:
> > > > Known issue: unfold-repeats will probably not work for percent
> > > I don't understand this. unfold-repeats is on the front end, we can
> > > just make it replace PercentRepeatMusic with UnfoldedRepeatMusic
> > > wholly; that should work, right?
> >
> > I implemented percent repeats in a way similar to tuplet brackets, i.e.
> > by sending a parallel event. One reason for this decision is that the
> > EventChord
> > iterator is where events are supposed to be reported.
>
> Yes, and that's what I disagree with. I agree you need to put in events for
> signaling information, but I oppose to inserting them in the parser. Can
> you change the code to make the iterators generate those events on the fly.

Hm, I guess the easiest/cleanest way would be to let the 
percent-repeat-iterator create an implicit SequentialMusic around the music, 
with the additional percent elements, and then to let process_music pretend 
that this SequentialMusic expression is its 'element. That way, all 
timekeeping can be outsourced to the Sequential_music_iterator, and the 
percent-repeat-iterator can more-or-less be reduced to an override of 
construct_children.

I also have two slightly related questions:
- In the best of worlds, should all events always be reported to bottom 
contexts? I see no technical reasons why it would need to be that way, but 
it's a nice convention and it requires little work.
- If answer is yes, then I'd like to suggest that Music_iterator::try_music 
automatically should descend the iterator to a bottom context. That would 
eliminate the parser's need to wrap expressions inside \context Bottom. I can 
implement this when I've finished some more of the music stream refactorings.

> > > I don't understand. Why don't you send TupletSpanEvents (START, STOP)
> > >
> > > from the iterator? If you do that, you might even be able to scrap a
> > > lot of the hairy timekeeping logic in the engraver.
> >
> > The nice thing about my solution is that time-scaled-music-iterator can
> > be scrapped altogether. This could also be achieved with start/stop
> > events by expanding \times  to
> > { TupletSpanStartEvent  TupletSpanStopEvent }
> > but I guess there would be problems with nested tuplets (how to pair
> > START and
> > STOP events?)
>
> start and stop events are nested, just like parentheses. A stop stops the
> most recently started one.

ok, fair enough. Then would it be OK to let \times expand to a SequentialMusic 
and drop the iterator, as I suggested? (I think there are essential 
differences between this case and percent repeats, as the required 
time-keeping in the iterator would be roughly equivalent to the current 
time-keeping in Tuplet_engraver)

I'm also considering to change the engraver's tuplets_ member to a list or 
stack, instead of vector.

-- 
Erik


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


Yet Another music macro proposal

2006-05-11 Thread Erik Sandberg
Hi,

I have yet another suggestion for how \relative can be soft-coded in a generic 
way. It's inspired by criticism of earlier attempts. It's similar, but not 
identical, to a previous suggestion.

Macros is that they operate on syntax, not on music. And the parser spits out 
music directly. So what I suggest, is to let the parser spit out yet another 
intermediate format, which is a Scheme expression that more or less 
corresponds to the the parse tree. So, for example,

\repeat volta 2 { c8 d e \foo }

would parse into a Scheme expression
(repeat 'volta 2 (sequentialfoo))
where  etc. are Music objects (or possibly expressions that evaluate to 
Music objects).

When a top-level expression has been parsed into such scheme expression, it is 
evaluated in a Scheme module, where repeat, sequential etc. are defined as 
functions that return music; this evaluation produces the final music 
expression.

Some benefits:
- It will be easy to make \relative a music macro, by defining relative as a 
Scheme macro.
- The parser will be reduced to a thin layer of syntactic sugar, so a large 
portion of parser.yy can be moved to scheme. Application of music functions 
and dereferencing of variables is completely outsourced to guile.
- For those who want to do programming using lily syntax, it will be easy to 
export Scheme functions and macros to the lily parser at runtime. This will 
probably reduce the number of feature requests that come to our mailing 
lists.

-- 
Erik


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