lilypond-user
[Top][All Lists]
Advanced

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

Re: User-defined messages in .ly compilation output?


From: Jan Nieuwenhuizen
Subject: Re: User-defined messages in .ly compilation output?
Date: Fri, 18 Jun 2004 12:46:18 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Magnus Lewis-Smith writes:

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

How about this ;-)

\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 {
          #(display "message:  expect errors in TabStaff       <----------- CAN 
I DO THIS?
\n" (current-error-port))

        %% EXPECT WARNINGS: Junking event: `KeyChangeEvent'
        \guitarPart
      }
    >>
  }
  \paper{}
}


-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org





reply via email to

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