Re: music font

2002-05-28 Thread Maurizio Tomasi

Hey, I have the same problem installing version 1.5.57 and 1.5.58 under
SuSE Linux 7.0 with Guile 1.4.1 installed.  If I try the simplest file:

--
  \score {
  \notes \relative c' { c4 d e f | g1 }
  }
--

then ly2dvi starts complaying about a wrong use of 'eval':

--
  GNU LilyPond 1.5.58
  Now processing: `test.ly'
  Analisi...
  Interpretazione della musica...[3]
  Pre-elaborazione...
  Calcolo delle posizioni della colonne...
  paper output to `test.tex'...Backtrace:
  0* [tex-output-expression # #]
  1* [display ...
  2*  [eval # #]

  ERROR: In procedure eval in expression
 (my-eval-in-module expr this-module):
  ERROR: Wrong number of arguments to #
--

This error happens also if I call `lilypond' directly, and also if I
use the `-f ps' or `-f pdftex' option (instead of `tex-output-
expression', it complains about `ps-output-expression' and 'pdftex-
output-expression' respectively).  The problem seems to be in file
scm/tex.scm, lines 283-285:

--
  (define-public (tex-output-expression expr port)
(display (my-eval-in-module expr this-module) port )
)
--

In fact, if I try to run `guile' and I execute this command (perfectly
legal: I took it from the "Scheme Revised^5 Report"):

--
  (eval '(* 7 3) (current-module))
--

then `guile' will give the following error message:

--
  standard input:1:1: In procedure eval in expression
  (eval (quote #) (current-module)):
  standard input:1:1: Wrong number of arguments to
  #
  ABORT: (wrong-number-of-args)
--

My guile accepts only two parameters for `eval':

--
(eval '(* 7 3))
--

prints 21.

So, I think the problem is in guile, not in lilypond.  On my SuSE Linux
7.0 guile 1.3.x was installed.  In order to use lilypond, I removed it
completely using the Yast installation program, then I installed guile
1.4.1 by unpacking the tarball under my home directory and creating the
binaries via a `./configure ; make ; make install' command.  Is this
sufficient to install guile?  The shipped INSTALL file is not very clear
about doing upgrades.

Also, should I (re)install a new version of SLIB?  I found this
library in `/usr/lib/scheme/slib', but I do not know if it was
installed by SuSE a long time ago or by guile 1.4.1 today.

Thanks
Maurizio



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: music font

2002-05-28 Thread Maurizio Tomasi

I think I got the solution!  The NEWS file shipped with Guile 1.5.6 says:


** Backward incompatible change: eval EXP ENVIRONMENT-SPECIFIER

`eval' is now R5RS, that is it takes two arguments.
The second argument is an environment specifier, i.e. either

  (scheme-report-environment 5)
  (null-environment 5)
  (interaction-environment)

or

  any module.


So, my guile 1.4.1 supports only the one-argument-syntax for `eval'.
On the computer I am using here there is Guile 1.5.6, and there is no
problem evaluating the same expression


(eval '(* 7 3) (current-module))


which gives problems with guile 1.4.x

So, I think the scm/tex.scm file was written for Guile 1.5.x, not for
Guile 1.4.x (although the INSTALL.txt file shipped with Lilypond says 1.4
is good).  I am at work now, but this evening I will try to install the
1.5.6 version on my home computer, and I will see what happen.  I suggest
you to do the same.

Bye
Maurizio


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: music-font

2002-05-28 Thread Mats Bengtsson

> On Mon, 2002-05-27 at 22:42, Mats Bengtsson wrote:
> > Could you please try the command
> > 
> > lilypond -V Documentation/user/out/lily-1452586523.ly
> > 
> > and send the output to the mailing list.
> > I'm not able to repeat your problem here.
> 
> GNU LilyPond 1.5.58
> [/usr/share/lilypond/scm/lily.scm]Now processing:
> `Documentation/user/out/lily-1
> 452586523.ly'
> Parsing...[/usr/share/lilypond/ly/init.ly[/usr/share/lilypond/ly/declarations-in
> ...

OK, what probably happens is that your newly compiled lilypond 
program reads the initialization files from a previous installation
in /usr/share/lilypond/...
Did you run 'make install' and where did it install the files?
Do you have the same problem as Maurizio that not even ly2dvi 
works (having run 'make install')?

However, this is a bug in the make files, since it should be 
possible to build a new version without removing an existing 
installation. The strange thing is that the Makefiles indeed set 
temporary environment variables that should solve problem. We 
discussed it on the mailing list some week ago and Han-Wen didn't 
manage to repeat the bug. 

Could you please try the following (assuming that you still have
files from some older Lilypond version in /usr/share/lilypond/):

- First of all, make sure that the environment variables 
  $LILYPONDPREFIX and $LILYINCLUDE are undefined. If they
  were defined, we have hopefully found the problem.

- Set the environment variable LILYPONDPREFIX to 
  the full path of the lilypond-1.5.58/ directory and
  try to rerun the make command.

- Set the environment variable LILYINCLUDE to "$LILYPONDPREFIX/ly"
  and try to rerun the make command.


   /Mats



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



lilypond drum problem(?)

2002-05-28 Thread Joerg Anders

On Mon, 27 May 2002, Jan Nieuwenhuizen wrote:

>
> If you have any questions regarding LilyPond (in the future), please
> feel free to ask at [EMAIL PROTECTED]

Ok! Almost all examples which have a sufficient long drum staff crash the with:

  GNU LilyPond 1.5.54
  Now processing: `/tmp/w2.ly'
  Parsing...
  Interpreting music...[8][12]
  Preprocessing elements...
  Calculating column positions... warning: Too many clashing notecolumns.  Ignoring 
them.
  [3][6][9]
  paper output to `w2.tex'...

  Analyzing w2.tex...
  Running LaTeX...
  error: latex: command exited with value 256
  Traceback (most recent call last):
File "/usr/local/bin/ly2dvi", line 852, in ?
  run_latex (files, outbase, extra_init)
File "/usr/local/bin/ly2dvi", line 631, in run_latex
  system (cmd)
File "/usr/local/bin/ly2dvi", line 229, in system
  error (msg)
File "/usr/local/bin/ly2dvi", line 127, in error
  raise _ ("Exiting ... ")
  Exiting ...

What's the problem here?
Crashing example with only a drum staff:

 \include "paper20.ly"

 bcr = {
 \property Voice.NoteHead \set #'style = #'cross
 }
 bcc = {
 \property Voice.NoteHead \set #'style = #'xcircle
 }
 btr = {
 \property Voice.NoteHead \set #'style = #'triangle
 }
 drumA = \notes\relative c {
\clef percussion

 < \bcc b8 \btr as' > as' < \bcr d, \bcr fes \btr as > < \bcr d \bcr fes \btr as >
 < \bcc b \btr as' > as' < \bcr d, \bcr fes \btr as > as' |
 < \bcc b, \btr as' > as' < \bcr d, \bcr fes \btr as > < \bcr d \bcr fes \btr as >
 < \bcc b \btr as' > as' < \bcr d, \bcr fes \btr as > as' |
 < \bcc b, \btr as' > as' < \bcr d, \bcr fes \btr as > < \bcr d \bcr fes \btr as >
 < \bcc b \btr as' > as' < \bcr d, \bcr fes \btr as > as' |
 < \bcc b, \btr as' > as' < \bcr d, \bcr fes \btr as > < \bcr d \bcr fes \btr as >
 < \bcc b \btr as' > as' < \bcr d, \bcr fes \btr as > as' |
 < \bcc b, \btr as' > as' < \bcr d, \bcr fes \btr as > < \bcr d \bcr fes \btr as >
 < \bcc b \btr as' > as' < \bcr d, \bcr fes \btr as > as' |
 < \bcc b, \btr as' > as' < \bcr d, \bcr fes \btr as > < \bcr d \bcr fes \btr as >
 < \bcc b \btr as' > as' < \bcr d, \bcr fes \btr as > as' |
 < \bcc b, \btr as' > as' < \bcr d, \bcr fes \btr as > < \bcr d \bcr fes \btr as >
 < \bcc b \btr as' > as' < \bcr d, \bcr fes \btr as > as' |
 < \bcc b, \btr as' > as' < \bcr d, \bcr fes \btr as > < \bcr d \bcr fes \btr as >
 < \bcc b \btr as' > as' < \bcr d, \bcr fes \btr as > as' |
 < \bcc b, \btr as' > as' < \bcr d, \bcr fes \btr as > < \bcr d \bcr fes \btr as >
 < \bcc b \btr as' > as' < \bcr d, \bcr fes \btr as > as' |
 < \bcc b, \btr as' > as' < \bcr d, \bcr fes \btr as > < \bcr d \bcr fes \btr as >
 < \bcc b \btr as' > as' < \bcr d, \bcr fes \btr as > as' |
 < \bcc b, \btr as' > as' < \bcr d, \bcr fes \btr as > < \bcr d \bcr fes \btr as >
 < \bcc b \btr as' > as' < \bcr d, \bcr fes \btr as > as'
 }
 \score {
<
\property Score.skipBars = ##t
\context Staff="drum2" \drumA
>
 }

-- 
J.Anders, Chemnitz, GERMANY ([EMAIL PROTECTED])


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: lilypond drum problem(?)

2002-05-28 Thread Jan Nieuwenhuizen

Joerg Anders <[EMAIL PROTECTED]> writes:

> Almost all examples which have a sufficient long drum staff crash the with:
>
>   GNU LilyPond 1.5.54
>   Running LaTeX...
>   error: latex: command exited with value 256
>   Traceback (most recent call last):
> File "/usr/local/bin/ly2dvi", line 852, in ?
>   run_latex (files, outbase, extra_init)
> File "/usr/local/bin/ly2dvi", line 631, in run_latex
>   system (cmd)
> File "/usr/local/bin/ly2dvi", line 229, in system
>   error (msg)
> File "/usr/local/bin/ly2dvi", line 127, in error
>   raise _ ("Exiting ... ")
>   Exiting ...
>
> What's the problem here?

If you run ly2dvi -V (verbose), you'll see:

! TeX capacity exceeded, sorry [main memory size=1263001].

This often is caused by too many ledger lines.  If you make note heads
transparent, you can easily spot the problem, 


 \score {
<
% transparent note head for debugging:
\property Score.NoteHead \override #'transparent = ##t

\property Score.skipBars = ##t
\context Staff="drum2" \drumA
>
 }

Greetings,
Jan.

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


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: lilypond drum problem(?)

2002-05-28 Thread Rune Zedeler

Jan already explained the reason for your problem.

Joerg Anders wrote:

>  bcc = {
>  \property Voice.NoteHead \set #'style = #'xcircle
>  }
>  btr = {
>  \property Voice.NoteHead \set #'style = #'triangle
>  }
...
>  < \bcc b \btr as' >

That won't work. You cannot in the same context have different styles 
simultainously. You need to put the different notehead styles in 
different threads:

bcc = {
   \context Thread = xcircle
   \property Thread.NoteHead \set #'style = #'xcircle
}
... etc.

Btw, I think that you should use the drum-notation-scheme demonstrated 
in input/test/drums.ly
I am working on a "real" implementation - hopefully for 1.6, otherwise 
later - but the notes themselves should be downwards compatible so the 
changes needed to upgrade to the new system will be small and easy.

-Rune


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: music-font

2002-05-28 Thread Simon Bailey

On Tue, 2002-05-28 at 11:08, Mats Bengtsson wrote:
> OK, what probably happens is that your newly compiled lilypond 
> program reads the initialization files from a previous installation
> in /usr/share/lilypond/...
> Did you run 'make install' and where did it install the files?
> Do you have the same problem as Maurizio that not even ly2dvi 
> works (having run 'make install')?

i ran ./configure --prefix=/usr; the files were then installed into the
directory /usr/share/lilypond -- which is where my previous version of
lilypond is/was. ly2dvi broke off with the same error.

> However, this is a bug in the make files, since it should be 
> possible to build a new version without removing an existing 
> installation. The strange thing is that the Makefiles indeed set 
> temporary environment variables that should solve problem. We 
> discussed it on the mailing list some week ago and Han-Wen didn't 
> manage to repeat the bug. 

> Could you please try the following (assuming that you still have
> files from some older Lilypond version in /usr/share/lilypond/):

i first moved the 1.5 version to /usr/share/lilypond-1.5.58, renamed the
binaries and then installed version 1.4.13 to /usr/share/lilypond. this
worked without any problems, and i could generate the sheet of music
that i needed - and the documentation using the make -C
Documentation/user out/lilypond.dvi command.
 
> - First of all, make sure that the environment variables 
>   $LILYPONDPREFIX and $LILYINCLUDE are undefined. If they
>   were defined, we have hopefully found the problem.

these variables are at the moment undefined.

> - Set the environment variable LILYPONDPREFIX to 
>   the full path of the lilypond-1.5.58/ directory and
>   try to rerun the make command.

[root@box lilypond-1.5.58]$ LILYPONDPREFIX=/usr/share/lilypond-1.5.58 
[root@box lilypond-1.5.58]$ LILYINCLUDE=$LILYPONDPREFIX/ly
 
> - Set the environment variable LILYINCLUDE to "$LILYPONDPREFIX/ly"
>   and try to rerun the make command.

same error as before:
GNU LilyPond 1.5.58
Now processing: `out/lily-333851501.ly'
Parsing...
Interpreting music...[1]
Preprocessing elements... 
Calculating column positions... [2]
paper output to `out/lily-333851501.tex'...Backtrace:
0* [tex-output-expression # #]
1* [display ...
2*  [eval # #]

ERROR: In procedure eval in expression (my-eval-in-module expr
this-module):
ERROR: Wrong number of arguments to #
make: *** [out/lily-333851501.tex] Error 2
make: Leaving directory
`/big-one/public/programs/LINUX/music/lilypond/lilypond-1.5.58/Documentation/user'


i will try what maurizio suggested and update my guile libraries.

greetings,
simon.
-- 
Confucius say, man who live in glass house shower in basement.

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Text above staves

2002-05-28 Thread Maurizio Tomasi

I am writing the second movement of Mozart's String Quartet KV387
("Minuetto").  This piece is made by two sections: the "Minuetto" and the
"Trio".  At the end of the piece there is "Menuetto da capo".  Well, I
want to write "Minuetto" and "Trio" once, and above the whole set of
staves, and "Menuetto da capo" below them.  But if I place these texts in
the first violin staff, they will never be printed when extracting parts
for the second violin, the viola and the cello.

I took a look at Coriolan and at the two violin concerti by Bach, but I
found nothing suitable.

Thanks for your help
Maurizio


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: Text above staves

2002-05-28 Thread Mats Bengtsson

> I am writing the second movement of Mozart's String Quartet KV387
> ("Minuetto").  This piece is made by two sections: the "Minuetto" and the
> "Trio".  At the end of the piece there is "Menuetto da capo".  Well, I
> want to write "Minuetto" and "Trio" once, and above the whole set of
> staves, and "Menuetto da capo" below them.  But if I place these texts in
> the first violin staff, they will never be printed when extracting parts
> for the second violin, the viola and the cello.
> 
> I took a look at Coriolan and at the two violin concerti by Bach, but I
> found nothing suitable.

Take a look at the following mail in the archive:

http://www.mail-archive.com/lilypond-user%40gnu.org/msg01167.html

   /Mats



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: lilypond drum problem(?)

2002-05-28 Thread Joerg Anders

On Tue, 28 May 2002, Rune Zedeler wrote:

>
> Btw, I think that you should use the drum-notation-scheme demonstrated
> in input/test/drums.ly

... I'm not a drummer: Does every drum instrument has a well-known
pitch if a 5 line system is used ? Or is the pitch derived from
General MIDI standard ?

My problem is: The NoteEdit user can place the drum notes at any
pitch he/she wants. Therefore I need a means to place - say a note with
triangle head - at any pitch and ...
>
>
> simultainously. You need to put the different notehead styles in
> different threads:
>
> bcc = {
>\context Thread = xcircle
>\property Thread.NoteHead \set #'style = #'xcircle
> }

... I tried this, but it doesn't work :-(:

  bcr = {
  \context Thread = xcircle
  \property Voice.NoteHead \set #'style = #'cross
  }
  bcc = {
  \context Thread = xcircle
  \property Voice.NoteHead \set #'style = #'xcircle
  }
  btr = {
  \context Thread = xtriangle
  \property Voice.NoteHead \set #'style = #'triangle
  }

  drumA = \notes\relative c {
\clef percussion

< \bcc b8 \btr as' > as' < \bcr d, \bcr fes \btr as >
< \bcr d \bcr fes \btr as > r8 \bar "|."
  }
  \score {
<
\context Staff="drum2" \drumA
>
  }

-- 
J.Anders, Chemnitz, GERMANY ([EMAIL PROTECTED])


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: Text above staves

2002-05-28 Thread Rune Zedeler

Maurizio Tomasi wrote:

> "Trio".  At the end of the piece there is "Menuetto da capo".  Well, I
> want to write "Minuetto" and "Trio" once, and above the whole set of
> staves, and "Menuetto da capo" below them.  But if I place these texts in
> the first violin staff, they will never be printed when extracting parts
> for the second violin, the viola and the cello.

Use a Voice context.
Alternatively you could say something like

topmarks = \notes { s1*10^"Allegretto" s1*20^"Trio" s1*"Minuetto da capo" }

\score {
   \context Staff = violinstaff \notes <
  \violin
  \marks
   >
   ...
}


-Rune


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: Text above staves

2002-05-28 Thread Maurizio Tomasi

Ok, thank you a lot, folks!

Maurizio


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: lilypond drum problem(?)

2002-05-28 Thread Rune Zedeler

Joerg Anders wrote:

> My problem is: The NoteEdit user can place the drum notes at any
> pitch he/she wants. Therefore I need a means to place - say a note with
> triangle head - at any pitch and ...

Okay then you cannot use the official drum notation scheme - or using it 
would at least be very hard.



> ... I tried this, but it doesn't work :-(:

No you are right, I am sorry.
The problem is that a context setting only affects the innermost music 
structure in which it occurs.
This means that in

{ { \context Thread=foo a } b }

the a will be typeset in thread foo, but the b won't.
I cannot see an easy solution for your problem, but a hack would be to 
translate accidentals into notehead types. This should be okay as 
accidentals are not needed when typesetting drums.
What I mean is that I could fairly easy create a scheme function 
allowing you to say i.e. "ceses" to get a triangle-c, "ces" to get a 
diamond c, "c" to get a default c, "cis" to get a crossed c and "cisis" 
to get a xcircled c.
Would that be sufficient for you?

-Rune


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: lilypond drum problem(?)

2002-05-28 Thread Joerg Anders

On Tue, 28 May 2002, Rune Zedeler wrote:

> the a will be typeset in thread foo, but the b won't.
> I cannot see an easy solution for your problem, but a hack would be to
> translate accidentals into notehead types. This should be okay as
> accidentals are not needed when typesetting drums.
> What I mean is that I could fairly easy create a scheme function
> allowing you to say i.e. "ceses" to get a triangle-c, "ces" to get a
> diamond c, "c" to get a default c, "cis" to get a crossed c and "cisis"
> to get a xcircled c.
> Would that be sufficient for you?

Hmm! I don't know ? What about "f"? -- "feses? What if I implement - say - 10
different note heads ?

To shorten this: LilyPond is a very good typsetter for classical music.
And it can deal with simple (no chords) drum staffs.

In contrast to all other free musical typsetters it has
musical knowlegde. I would say: A hack only because of
this case is no good idea. Perhaps if you'll later
think more about jazz/pop/... you should implement
a really sophisticated drum-chord-solution. And then I'll incorporate
this into LilyPond export. So long the user has to live with
some exportation restrictions.

--

I think 2 other things are more important:

1.) It should be possible to connect 2 of 3 notes of a chord:

  

2.) And from version-?.?.? on in staff context is no tie at all:

StaffA = \notes\relative c' {
  \clef violin
~ 
}
\score {
\context Staff \StaffA
}

Bug or feature ?

-- 
J.Anders, Chemnitz, GERMANY ([EMAIL PROTECTED])


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: questions about lyric hyphens and extender lines

2002-05-28 Thread jeff covey

does no one have any answers about this?
(http://mail.gnu.org/pipermail/lilypond-user/2002-May/001382.html)  i
was hoping to fix these problems before i submitted it to mutopia.

thanks,

-- 
++
| jeff covey [EMAIL PROTECTED] http://pobox.com/~jeff.covey/ 410-869-8088 |
||
|  Hello sister how are you? If you get this message try to chat with me I   |
|  think I might have figured it out I hopr so anyway so contact me soon.|
|-- freshmeat.net contributor|
++



msg01244/pgp0.pgp
Description: PGP signature


Re: lilypond drum problem(?)

2002-05-28 Thread Rune Zedeler

Joerg Anders wrote:

> Hmm! I don't know ? What about "f"? -- "feses?

Yes. What is the problem here?

 > What if I implement - say - 10
> different note heads ?

Then you would have a problem. This scheme limits you to only use 5 
different heads.

> To shorten this: LilyPond is a very good typsetter for classical music.
> And it can deal with simple (no chords) drum staffs.

It can also deal with drum staves with chords - as long as you use the 
scheme illustrated in input/test/drums.ly

> In contrast to all other free musical typsetters it has
> musical knowlegde.

Yes and that is why I don't like your idea of defining the drums purely 
as "position, note-head-style". Later moving i.e. the bass drum to 
another position would be very hard - the user is stuck with the drums 
layout that the composer has selected, and producing sensible midi 
output will be impossible because lilypond don't know which 
positions/heads that corresponds to which midi-drums.

 > I would say: A hack only because of
> this case is no good idea. Perhaps if you'll later
> think more about jazz/pop/... you should implement
> a really sophisticated drum-chord-solution. And then I'll incorporate
> this into LilyPond export. So long the user has to live with
> some exportation restrictions.

I don't think that the drums solution will become more sophisticated 
than the one currently available - the only difference will be that it 
will be easier to use and that it will be possible to put drums and 
notes on the same staff.


-Rune



___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



xdvi - command not found

2002-05-28 Thread Deborah Lowrey

Dear Lilypond,

Jan assisted me through some problems I was having and I've been making sure things 
are working, but I have one more problem. 

I am not able to use the xdvi. I checked and doubled checked my syntax, with the 
tutorial and I'm entering everything right, but I'm getting an error of 'xdvi - 
command not found'. 

Is there something else that I would need to download to get this working?

If you need a bug report I can do that, just let me know. I have a Compaq Presario 
5838 with Windows ME. 


Thanks for your help,

Deborah




___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user