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 <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org



_______________________________________________
lilypond-user mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to