[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
d1
\key a \major
a1
}
\score {
\notes {
<<
\new Staff {
%% COMPILES OK
\clef bass
\guitarPart
}
\new TabStaff {
%% EXPECT WARNINGS: Junking event: `KeyChangeEvent'
\guitarPart
}
>>
}
\paper{}
}
Is there a way to insert into the compilation output something like:
lilypond (GNU LilyPond) 2.2.2
Running lilypond-bin...
Now processing `file.ly'
Parsing...
Interpreting music...
message: expect errors in TabStaff <----------- CAN I DO THIS?
file.ly:2:14: warning: Junking event: `KeyChangeEvent':
\key d \majo
r
file.ly:4:14: warning: Junking event: `KeyChangeEvent':
\key a \majo
r
[3]
Preprocessing graphical objects...
Thanks for your help.
Magnus Lewis-Smith
___________________________________________________________ALL-NEW Yahoo!
Messenger - sooooo many all-new ways to express yourself
http://uk.messenger.yahoo.com
- User-defined messages in .ly compilation output?,
Magnus Lewis-Smith <=