+2004-05-08 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * scripts/lilypond-book.py (compose_ly): remove FRAGMENT_LY.
+
2004-05-08 Jan Nieuwenhuizen <janneke@gnu.org>
* input/regression/newaddlyrics.ly: Fix.
2004-05-08 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * input/mutopia/R.Schumann/romanze-op28-2.ly (d): use #(define .. )
+
* lily/paper-line.cc (Paper_line): don't store list of stencils,
but convert to single Stencil immediately.
In the next example, a two-note motive is repeated two times by using
variable substitution
-@lilypond[quote,raggedright,verbatim]
+@lilypond[quote,raggedright,verbatim,nofragment]
seufzer = \notes {
e'4( dis'4)
}
u = { \change Staff = up \stemDown }
m = { \change Staff = mid \stemUp }
-d = { \change Staff = down \stemUp }
+
+%
+% d = .. complains about note names.
+%
+#(define d #{ \change Staff = down \stemUp #})
forcedBreak = \break
-#(ly:set-option 'old-relative)
\version "2.2.0"
\include "mozart-hrn3-defs.ly"
-#(ly:set-option 'old-relative)
-
\version "2.2.0"
\include "mozart-hrn3-defs.ly"
-#(ly:set-option 'old-relative)
\version "2.2.0"
% \include "mozart-hrn3-defs.ly"
" }
-\score \with {
+\new Score \with {
\override TimeSignature #'transparent = ##t
\override NoteHead #'transparent = ##t
defaultBarType = #""
\remove Bar_number_engraver
-}
-
-{
+} {
%% \clef treble
\clef bass
\repeat unfold 3 { c1 \break }
if (lily_1_8_relative)
{
lily_1_8_compatibility_used = true;
- /* ugh: last-pitch should be junked.
-
- Change this for lilypond 2.0.
-
- FIXME: change WHAT? We're at 2.3 already -- jcn
+ /* last-pitch should be junked some time, when
+ we ditch 1.8 compat too.
When you do, B should start where A left off.
\relative { A \relative { ...} B } */
- return *unsmob_pitch (get_property ("last-pitch"));
+ Pitch *ptr = unsmob_pitch (get_property ("last-pitch"));
+ return (ptr) ? *ptr : p;
}
else
return p;
}
'''
-FRAGMENT_LY = r'''\score{
- \notes%(notes_string)s{
+FRAGMENT_LY = r'''
+ %(notes_string)s{
%(code)s }
-}'''
+'''
FULL_LY = '%(code)s'
texinfo_linewidths = {