]> git.donarmstrong.com Git - lilypond.git/blob - midi2ly/include/midi2ly-global.hh
patch::: 1.5.18.moh1: [PATCH] 1.4 Lyric alignment
[lilypond.git] / midi2ly / include / midi2ly-global.hh
1 //
2 // midi2ly-global.hh -- declare global stuff for midi2ly
3 //
4 // (c) 1997--2001 Jan Nieuwenhuizen <janneke@gnu.org>
5
6 #ifndef MIDI2LY_GLOBAL_HH
7 #define MIDI2LY_GLOBAL_HH
8
9 #include <iostream.h>
10
11 #include "string.hh"
12 #include "flower-proto.hh"
13
14 #define monitor_p_g &cout
15 enum Verbose { QUIET_ver, BRIEF_ver, NORMAL_ver, VERBOSE_ver, DEBUG_ver };
16 extern Verbose level_ver;
17 #if 0 // NPRINT
18     // not what i want, all output goes through tors.
19     // set verbosity level.
20     #define LOGOUT(threshold) if  (0) *monitor_p_g
21 #else
22     #define LOGOUT(threshold) if  (level_ver >= threshold) *monitor_p_g
23 #endif
24
25 extern Sources* source_l_g;
26 // huh?
27 void message (String message_str); //, char const* context_ch_C);
28 void warning (String message_str); //, char const* context_ch_C);
29 void error (String message_str); //, char const* context_ch_C);
30
31 String midi2ly_version_str();
32 extern bool no_timestamps_b_g;;
33 extern bool no_rests_b_g;;
34
35 #endif // MIDI2LY_GLOBAL_HH
36