lilypond-book mysteries

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

lilypond-book mysteries

bobroff@centrum.is
I'm anticipating a possible need for lilypond-book.  I've been
experimenting with a short file to see how everything interacts so I can
get a feel for how it works.

I've run into some unexpected results.  If I run this through straight
LilyPond (2.7.6) it's fine:


%% File myfile.ly

\score {
  \relative c' {
    c1 \break
    c
  }
}


It becomes mysterious, however, if I call the above *.ly file from
lilypond-book:

%% File test.lytex

\documentclass{article}
\usepackage[margin=3cm, noheadfoot]{geometry}
\usepackage{graphicx}
\begin{document}

\lilypondfile{myfile.ly}

\end{document}

%%%

If I use options in [] before {myfile.ly} the music is printed on a
single line despite the \break.  Is this because it is now treated as a
"fragment"?

I also lose the normal indentation, which I would like to keep, that is
present when using plain LilyPond.

Also, when running dvips I get this output in the console:

This is dvips(k) 5.92b Copyright 2002 Radical Eye Software
(www.radicaleye.com)
' TeX output 2005.08.20:0730' -> dent.ps
dvips: Font CenturySchL-Roma used in file lily-602189417-1.eps is not in
the mapping file.
dvips: Font PFAEmmentaler-20 used in file lily-602189417-1.eps is not in
the mapping file.
<tex.pro><alt-rule.pro><dent.psfonts><texc.pro><f7b6d320.enc><texps.pro>
<special.pro>.
<cmr10.pfb>[1<lily-602189417-1.eps><lily-602189417-2.eps>]
[root@dhcppc1 out]#

-David

Fedora Core 3



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

Re: lilypond-book mysteries

Han-Wen Nienhuys
David Bobroff wrote:

> I'm anticipating a possible need for lilypond-book.  I've been
> experimenting with a short file to see how everything interacts so I can
> get a feel for how it works.
>
> I've run into some unexpected results.  If I run this through straight
> LilyPond (2.7.6) it's fine:
>
>
> %% File myfile.ly
>
> \score {
>   \relative c' {
>     c1 \break
>     c
>   }
> }
>
>
> It becomes mysterious, however, if I call the above *.ly file from
> lilypond-book:
>

don't know what is happening, but it's easier to judge when you inspect
the corresponding lily-XXXXX.ly file.

--
  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: lilypond-book mysteries

bobroff@centrum.is
On Sat, 2005-08-20 at 12:12 +0200, Han-Wen Nienhuys wrote:

> David Bobroff wrote:
> > I'm anticipating a possible need for lilypond-book.  I've been
> > experimenting with a short file to see how everything interacts so I can
> > get a feel for how it works.
> >
> > I've run into some unexpected results.  If I run this through straight
> > LilyPond (2.7.6) it's fine:
> >
> >
> > %% File myfile.ly
> >
> > \score {
> >   \relative c' {
> >     c1 \break
>
> >     c
> >   }
> > }
> >
> >
> > It becomes mysterious, however, if I call the above *.ly file from
> > lilypond-book:
> >
>
> don't know what is happening, but it's easier to judge when you inspect
> the corresponding lily-XXXXX.ly file.
>

Well, here it is:

%% Generated by lilypond-book
%% Options: [alt=[image of music],linewidth=444\pt,indent=0\mm]

#(set! toplevel-score-handler print-score-with-defaults)
#(set! toplevel-music-handler (lambda (p m)
                               (print-score-with-defaults
                                p (scorify-music m p))))

#(ly:set-option (quote no-point-and-click))

#(define version-seen? #t)



% ********************************
% Start cut-&-pastable-section
% ********************************

\paper {
  #(define dump-extents #t)
 
  linewidth = 444\pt
  indent = 0\mm
}

\layout {
 
}

% ly snippet:
\renameinput "indent.ly"
\score {
  \relative c' {
    c1 \break
    c
  }
  \layout {
   % indent = 2\cm
  }
}

% end ly snippet



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

Re: lilypond-book mysteries

Mats Bengtsson-6
In reply to this post by bobroff@centrum.is
See http://lists.gnu.org/archive/html/lilypond-user/2005-08/msg00419.html

   /Mats

David Bobroff wrote:

> I'm anticipating a possible need for lilypond-book.  I've been
> experimenting with a short file to see how everything interacts so I can
> get a feel for how it works.
>
> I've run into some unexpected results.  If I run this through straight
> LilyPond (2.7.6) it's fine:
>
>
> %% File myfile.ly
>
> \score {
>   \relative c' {
>     c1 \break
>     c
>   }
> }
>
>
> It becomes mysterious, however, if I call the above *.ly file from
> lilypond-book:
>
> %% File test.lytex
>
> \documentclass{article}
> \usepackage[margin=3cm, noheadfoot]{geometry}
> \usepackage{graphicx}
> \begin{document}
>
> \lilypondfile{myfile.ly}
>
> \end{document}
>
> %%%
>
> If I use options in [] before {myfile.ly} the music is printed on a
> single line despite the \break.  Is this because it is now treated as a
> "fragment"?
>
> I also lose the normal indentation, which I would like to keep, that is
> present when using plain LilyPond.
>
> Also, when running dvips I get this output in the console:
>
> This is dvips(k) 5.92b Copyright 2002 Radical Eye Software
> (www.radicaleye.com)
> ' TeX output 2005.08.20:0730' -> dent.ps
> dvips: Font CenturySchL-Roma used in file lily-602189417-1.eps is not in
> the mapping file.
> dvips: Font PFAEmmentaler-20 used in file lily-602189417-1.eps is not in
> the mapping file.
> <tex.pro><alt-rule.pro><dent.psfonts><texc.pro><f7b6d320.enc><texps.pro>
> <special.pro>.
> <cmr10.pfb>[1<lily-602189417-1.eps><lily-602189417-2.eps>]
> [root@dhcppc1 out]#
>
> -David
>
> Fedora Core 3
>
>
>
> _______________________________________________
> 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