* lily/lyric-engraver.cc (process_music): don't typeset text for _
syllable text. Instead, assume that the previous lyric text is a
melismated text.
2005-07-21 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * Documentation/user/basic-notation.itely (Barnumber check): add section.
+
* scm/music-functions.scm (skip-to-last): new function. Show only
last showLastLength part of the \score.
* Octave check::
* Transpose::
* Bar check::
+* Barnumber check::
* Skipping corrected music::
* Automatic note splitting::
@end menu
@end lilypond
+@node Barnumber check
+@subsection Barnumber check
+
+When copying large pieces of music, it can be helpful to check that
+the LilyPond bar number corresponds to the original that you are
+entering from. This can be checked with @code{\barNumberCheck}, for
+example,
+
+@verbatim
+\barNumberCheck #123
+@end verbatim
+
+@noindent
+will print a warning if the @code{currentBarNumber} is not 123 when it
+is processed.
+
+
@node Skipping corrected music
@subsection Skipping corrected music
Lyric_engraver::Lyric_engraver ()
{
text_ = 0;
+ last_text_ = 0;
event_ = 0;
}
(make-music 'GraceMusic
'element grace)))))))
+
+barNumberCheck =
+#(def-music-function (parser location n) (integer?)
+ (make-music 'ApplyContext
+ 'origin location
+ 'procedure
+ (lambda (c)
+ (let*
+ ((cbn (ly:context-property c 'currentBarNumber)))
+ (if (not (= cbn n))
+ (ly:input-message location "Barcheck failed got ~a expect ~a"
+ cbn n))))))
+
+
%{
TODO:
* ?
%}
+