[Top][All Lists]

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

User-defined messages in .ly compilation output?

From: Magnus Lewis-Smith
Subject: User-defined messages in .ly compilation output?
Date: Fri, 18 Jun 2004 09:12:39 +0100 (BST)

Is it possible to write messages to the terminal during the compilation of a
.ly file?  (not the compilation of lilypond itself!)

For example, perhaps I would like to be able to indicate that the warnings
generated by a certain piece of code are to be expected, as in:

\version "2.2.2"
guitarPart = \notes {
  \key d \major
  \key a \major
\score {
  \notes {
      \new Staff {
        %% COMPILES OK
        \clef bass
      \new TabStaff {
        %% EXPECT WARNINGS: Junking event: `KeyChangeEvent'

Is there a way to insert into the compilation output something like:

lilypond (GNU LilyPond) 2.2.2
Running lilypond-bin...
Now processing `'
Interpreting music... 

message:  expect errors in TabStaff       <----------- CAN I DO THIS? warning: Junking event: `KeyChangeEvent':
  \key d \majo
              r warning: Junking event: `KeyChangeEvent':
  \key a \majo
Preprocessing graphical objects... 

Thanks for your help.
Magnus Lewis-Smith

___________________________________________________________ALL-NEW Yahoo! 
Messenger - sooooo many all-new ways to express yourself

reply via email to

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