lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with trying to alter an @lilypond example in the NR for Tracker ite


From: James Lowe
Subject: Help with trying to alter an @lilypond example in the NR for Tracker item 1033
Date: Wed, 29 Sep 2010 22:57:49 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4

Hello,

I have already spoken with Graham about this who has given me lots of advice but am still struggling to edit an example in the Notation Reference in order to make some start on

http://code.google.com/p/lilypond/issues/detail?id=1033

I don't want to keep pestering Graham as I know he has other things he could be doing. So am asking for some advice here.

The current example I am having problems with is in 5.1.4 Modifying context plug-ins.

The example in the current document is:

---

@lilypond[quote,relative=1,ragged-right,verbatim,fragment]
\new Score \with {
  \remove "Timing_translator"
  \remove "Default_bar_line_engraver"
} <<
  \new Staff \with {
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
  } {
      \time 3/4
      c4 c c c c c
  }
  \new Staff \with {
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
  } {
       \time 2/4
       c4 c c c c c
  }
>>
@end lilypond

---

To remove the '\new Score' syntax and incorporate a '\layout { }' I have done this:


\score {
  <<
    \new Staff \with {
      \consists "Timing_translator"
      \consists "Default_bar_line_engraver"
    }
  {
    \time 3/4
    c4 c c c c c
  }
  \new Staff \with {
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
  }
  {
    \time 2/4
    c4 c c c c c
  }
  >>
  \layout {
   \context {
   \Score
      \remove "Timing_translator"
      \remove "Default_bar_line_engraver"
    }
  }
}

Now if I compile the second example in a .ly file I get no errors and the output is the same as the document, however if I place the second example in an @lilypond construct and try to build the doc I get errors:

---


[/home/james/lilypond-git/out/share/lilypond/current/ly/lilypond-book-preamble.ly]
/home/james/lilypond-git/out/lybook-db/d4/lily-2aa092fe.ly:649:0: error: syntax error, unexpected \score

\score {
/home/james/lilypond-git/out/lybook-db/d4/lily-2aa092fe.ly:668:2: error: syntax error, unexpected \layout

  \layout {
/home/james/lilypond-git/out/lybook-db/d4/lily-2aa092fe.ly:670:3: error: unknown escaped string: `\Score'

   \Score
]
/home/james/lilypond-git/out/lybook-db/d4/lily-2aa092fe.ly:640:0: error: errors found, ignoring music expression

\relative c'
]
error: failed files: "d4/lily-2aa092fe.ly"
command failed: /home/james/lilypond-git/out/bin/lilypond -dbackend=eps --formats=ps,png,pdf -dinclude-eps-fonts -dgs-load-fonts --header=doctitle --header=doctitlede --header=doctitlees --header=doctitlefr --header=doctitlehu --header=doctitleit --header=doctitleja --header=doctitlenl --header=texidoc --header=texidocde --header=texidoces --header=texidocfr --header=texidochu --header=texidocit --header=texidocja --header=texidocnl -dcheck-internal-types -ddump-signatures -danti-alias-factor=2 -I "/home/james/lilypond-git/out/lybook-db" -I "/home/james/lilypond-git/Documentation" -I "/home/james/lilypond-git/Documentation" -I "/home/james/lilypond-git/Documentation/out-www" -I "/home/james/lilypond-git/input" -I "/home/james/lilypond-git/Documentation" -I "/home/james/lilypond-git/Documentation/snippets" -I "/home/james/lilypond-git/input/regression" -I "/home/james/lilypond-git/Documentation/included" -I "/home/james/lilypond-git/mf/out" -I "/home/james/lilypond-git/mf/out" -I "/home/james/lilypond-git/Documentation/pictures" -I "/home/james/lilypond-git/Documentation/pictures/out-www" --formats=eps --verbose -deps-box-padding=3.000000 -dread-file-list -dno-strip-output-dir "/home/james/lilypond-git/out/lybook-db/snippet-names-1878256710.ly"
Child returned 1
make[2]: *** [out-www/notation.texi] Error 1
make[2]: Leaving directory `/home/james/lilypond-git/Documentation'
make[1]: *** [WWW-1] Error 2
make[1]: Leaving directory `/home/james/lilypond-git'
make: *** [doc-stage-1] Error 2

--

I have tried experimenting with removing \score { } but that also fails with the same unknown escaped string '\Score', so this is puzzling to me why this works in Lilypond the binary but not @lilypond which I thought kinda-sorta did the same thing.

Any help would be much appreciated.

Thank you

James






reply via email to

[Prev in Thread] Current Thread [Next in Thread]