Upgrading to 2.6 Help

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Upgrading to 2.6 Help

Tim Sawyer-7
I'm trying to upgrade from 2.0 to 2.6, and I'm having trouble.

This fragment, passed to lilypond-book:

\begin[staffsize=20]{lilypond}
\version "2.6.0"
up = { \repeat "percent" 3 { hh8 hh8 << hh8 sn8 >> hh8 hh8 hh8 << hh8 sn8 >>
hh8  } hh8 hh8 << hh8 sn8 >> hh8 sn8 sn8 sn8 sn8 \bar "|." }
down = { \repeat "percent" 3 { bd4 r4 bd4 r4 } bd4 r4 r2 }
\score
{ \set DrumStaff.drumStyleTable = #drums-style
\context Staff
<<
  \time 4/4
  \clef percussion
  \context Voice = up { \voiceOne \up }
  \context Voice = down { \voiceTwo \down }
  \bar "|."
>>
}
\end{lilypond}

gives this error:

volume2.tex:726 (lily-1726549371.ly):33:29: error: syntax error, unexpected
STRING
up = { \repeat "percent" 3 {
                             hh8 hh8 << hh8 sn8 >> hh8 hh8 hh8 << hh8 sn8 >>
hh8  } hh8 hh8 << hh8 sn8 >> hh8 sn8 sn8 sn8 sn8 \bar "|." }
volume2.tex:726 (lily-1726549371.ly):34:31: error: syntax error, unexpected
STRING
down = { \repeat "percent" 3 {
                               bd4 r4 bd4 r4 } bd4 r4 r2 }
volume2.tex:726 (lily-1726549371.ly):34:47: error: syntax error, unexpected
STRING
down = { \repeat "percent" 3 { bd4 r4 bd4 r4 }
                                               bd4 r4 r2 }
error: already have music in score
error: this is the previous music
error: errors found, ignoring music expression

Anyone any ideas?  convert-ly seems to output it the same as it went in.

ta,

Tim.


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Upgrading to 2.6 Help

Han-Wen Nienhuys
Tim Sawyer wrote:
> I'm trying to upgrade from 2.0 to 2.6, and I'm having trouble.
>

> Anyone any ideas?  convert-ly seems to output it the same as it went in.

Check out the manual section on drum notation. There have been some
syntax changes.

--
  Han-Wen Nienhuys - [hidden email] - http://www.xs4all.nl/~hanwen


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Upgrading to 2.6 Help

Tim Sawyer-7
Cheers for that.

Next problem - my music now goes through lilypond book successfully, but I
don't seem to be able to process the output.

I have a script that does:

rm -r build
mkdir build
cp volume2.tex ./build
cd build
lilypond-book -V --psfonts -o output volume2.tex
cd output
latex volume2.tex

lilypond-book completes with:

Extracted feta-alphabet13
Extracted CenturySchL-Ital
Writing fonts to volume2.psfonts

DVIPS usage:
    dvips -h output/volume2.psfonts output/volume2.dvi

Looking through the lilypond-book output, there are no errors but there are a
couple of warnings.  The "latex volume2.tex" command gives this output:

This is TeX, Version 3.14159 (Web2C 7.4.5)
(./volume2.tex
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman,
n
ohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/book.cls
Document Class: book 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/bk10.clo))
(/usr/share/texmf/tex/latex/base/textcomp.sty
(/usr/share/texmf/tex/latex/base/ts1enc.def))
(/usr/share/texmf/tex/latex/fancyhdr/fancyhdr.sty)
No file volume2.aux.
(/usr/share/texmf/tex/latex/base/ts1cmr.fd)
No file volume2.toc.
[1] [2]
Part 9.
[1] (./lily-109005405-systems.tex
! Undefined control sequence.
l.1 \includegraphics
                    {lily-109005405-1.eps}
?                                            

If I try to run lilypond-book a second time (just that single command), I get
an odd error:

tjs@horus build $ lilypond-book -V --psfonts -o output volume2.tex
lilypond-book (GNU LilyPond) 2.6.4
lilypond-book: error: Output would overwrite input file; use --output.
Traceback (most recent call last):
  File "/usr/local/bin/lilypond-book", line 1620, in ?
    main ()
  File "/usr/local/bin/lilypond-book", line 1586, in main
    chunks = do_file (file)
  File "/usr/local/bin/lilypond-book", line 1446, in do_file
    ly.exit (2)
  File "/usr/local/share/lilypond/2.6.4/python/lilylib.py", line 139, in exit
    raise _ ('Exiting (%d)...') % i
Exiting (2)...

Can someone point me in the right direction?  I ideally want PDF output but
always went through dvi with version 2.0.

ta,

Tim.

On Sunday 13 Nov 2005 18:21, Han-Wen Nienhuys wrote:
> Tim Sawyer wrote:
> > I'm trying to upgrade from 2.0 to 2.6, and I'm having trouble.
> >
> >
> > Anyone any ideas?  convert-ly seems to output it the same as it went in.
>
> Check out the manual section on drum notation. There have been some
> syntax changes.


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Upgrading to 2.6 Help

Graham Percival-2

On 13-Nov-05, at 12:12 PM, Tim Sawyer wrote:

> ! Undefined control sequence.
> l.1 \includegraphics
>                     {lily-109005405-1.eps}
> ?

I believe that in 2.6, you need to add
\usepackage{graphics}

to your lilypond-book file.

Cheers,
- Graham



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Upgrading to 2.6 Help

Tim Sawyer-7
Thanks!  That now gets me a dvi I can preview.  Unfortunately, it has font
trouble  - I appear to be missing note heads and the time sig is in the wrong
font.

If I do a "dvipdf volume2.dvi" it gives the following output:

dvips: Font PFAEmmentaler-20 used in file lily-109005405-1.eps is not in the
mapping file.
dvips: Font feta-alphabet20 used in file lily-109005405-1.eps is not in the
mapping file.
dvips: Font CenturySchL-Roma used in file lily-2037270318-1.eps is not in the
mapping file.
dvips: Font feta-alphabet13 used in file lily-1821431809-1.eps is not in the
mapping file.
dvips: Font CenturySchL-Ital used in file lily-1808716927-1.eps is not in the
mapping file.
dvips: Font PFAEmmentaler-14 used in file lily-1262503095-1.eps is not in the
mapping file.
dvips: Font PFAEmmentaler-18 used in file lily-340522903-1.eps is not in the
mapping file.

and the pdf contains the same as the dvi.

This is a self built lilypond 2.6.4 (./configure, make all, make install) on
gentoo.  

I've always had to set TEXMF on gentoo to get lilypond to work, so I added
that back in, but it doesn't seem to make a difference.  I'm running:

export datadir="/usr/local/share/lilypond/2.6.4"
export TEXMF="{$datadir,$(kpsexpand  \$TEXMF)}"

mv book.tex volume2.tex
rm -r build
mkdir build
cp volume2.tex ./build
cd build
lilypond-book -V --psfonts -o output volume2.tex
cd output
latex volume2.tex
latex volume2.tex
dvipdf volume2.dvi
xdvi volume2
cp volume2.pdf ../..

The fonts are available in /usr/local/share/lilypond/2.6.4/fonts/type1 etc.

Any ideas what I've missed?

Thanks,

Tim.

On Sunday 13 Nov 2005 21:12, Graham Percival wrote:

> On 13-Nov-05, at 12:12 PM, Tim Sawyer wrote:
> > ! Undefined control sequence.
> > l.1 \includegraphics
> >                     {lily-109005405-1.eps}
> > ?
>
> I believe that in 2.6, you need to add
> \usepackage{graphics}
>
> to your lilypond-book file.
>
> Cheers,
> - Graham


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Upgrading to 2.6 Help

Graham Percival-2

On 13-Nov-05, at 2:16 PM, Tim Sawyer wrote:

> Thanks!  That now gets me a dvi I can preview.  Unfortunately, it has
> font
> trouble  - I appear to be missing note heads and the time sig is in
> the wrong
> font.
>
> If I do a "dvipdf volume2.dvi" it gives the following output:

Try this:
dvips -h $1.psfonts -Ppdf $1.dvi
ps2pdf $1.ps

(where $1 is to be replaced by the filename)
If you want to use dvipdf, you'll have to figure out the command line
options yourself, I'm afraid.

- Graham



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Upgrading to 2.6 Help

Mats Bengtsson-6
In reply to this post by Tim Sawyer-7
You have already received an answer, but why not take a quick look in
the manual corresponding to your version before sending the question to
the mailing list?

   /Mats

Tim Sawyer wrote:

>Thanks!  That now gets me a dvi I can preview.  Unfortunately, it has font
>trouble  - I appear to be missing note heads and the time sig is in the wrong
>font.
>
>If I do a "dvipdf volume2.dvi" it gives the following output:
>
>dvips: Font PFAEmmentaler-20 used in file lily-109005405-1.eps is not in the
>mapping file.
>dvips: Font feta-alphabet20 used in file lily-109005405-1.eps is not in the
>mapping file.
>dvips: Font CenturySchL-Roma used in file lily-2037270318-1.eps is not in the
>mapping file.
>dvips: Font feta-alphabet13 used in file lily-1821431809-1.eps is not in the
>mapping file.
>dvips: Font CenturySchL-Ital used in file lily-1808716927-1.eps is not in the
>mapping file.
>dvips: Font PFAEmmentaler-14 used in file lily-1262503095-1.eps is not in the
>mapping file.
>dvips: Font PFAEmmentaler-18 used in file lily-340522903-1.eps is not in the
>mapping file.
>
>and the pdf contains the same as the dvi.
>
>This is a self built lilypond 2.6.4 (./configure, make all, make install) on
>gentoo.  
>
>I've always had to set TEXMF on gentoo to get lilypond to work, so I added
>that back in, but it doesn't seem to make a difference.  I'm running:
>
>export datadir="/usr/local/share/lilypond/2.6.4"
>export TEXMF="{$datadir,$(kpsexpand  \$TEXMF)}"
>
>mv book.tex volume2.tex
>rm -r build
>mkdir build
>cp volume2.tex ./build
>cd build
>lilypond-book -V --psfonts -o output volume2.tex
>cd output
>latex volume2.tex
>latex volume2.tex
>dvipdf volume2.dvi
>xdvi volume2
>cp volume2.pdf ../..
>
>The fonts are available in /usr/local/share/lilypond/2.6.4/fonts/type1 etc.
>
>Any ideas what I've missed?
>
>Thanks,
>
>Tim.
>
>On Sunday 13 Nov 2005 21:12, Graham Percival wrote:
>  
>
>>On 13-Nov-05, at 12:12 PM, Tim Sawyer wrote:
>>    
>>
>>>! Undefined control sequence.
>>>l.1 \includegraphics
>>>                    {lily-109005405-1.eps}
>>>?
>>>      
>>>
>>I believe that in 2.6, you need to add
>>\usepackage{graphics}
>>
>>to your lilypond-book file.
>>
>>Cheers,
>>- Graham
>>    
>>
>
>
>_______________________________________________
>lilypond-user mailing list
>[hidden email]
>http://lists.gnu.org/mailman/listinfo/lilypond-user
>  
>

--
=============================================
        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: [hidden email]
        WWW: http://www.s3.kth.se/~mabe
=============================================



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Upgrading to 2.6 Help

Tim Sawyer-7
In reply to this post by Graham Percival-2
Excellent, thanks that works!

Tim.

On Monday 14 Nov 2005 01:04, Graham Percival wrote:

> On 13-Nov-05, at 2:16 PM, Tim Sawyer wrote:
> > Thanks!  That now gets me a dvi I can preview.  Unfortunately, it has
> > font
> > trouble  - I appear to be missing note heads and the time sig is in
> > the wrong
> > font.
> >
> > If I do a "dvipdf volume2.dvi" it gives the following output:
>
> Try this:
> dvips -h $1.psfonts -Ppdf $1.dvi
> ps2pdf $1.ps
>
> (where $1 is to be replaced by the filename)
> If you want to use dvipdf, you'll have to figure out the command line
> options yourself, I'm afraid.
>
> - Graham


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user