2 // midi2ly-global.hh -- declare global stuff for midi2ly
4 // copyright 1997 Jan Nieuwenhuizen <janneke@gnu.org>
6 #ifndef MIDI2LY_GLOBAL_HH
7 #define MIDI2LY_GLOBAL_HH
12 #include "flower-proto.hh"
14 #define monitor_p_g &cout
15 enum Verbose
{ QUIET_ver
, BRIEF_ver
, NORMAL_ver
, VERBOSE_ver
, DEBUG_ver
};
16 extern Verbose level_ver
;
18 // not what i want, all output goes through tors.
19 // set verbosity level.
20 #define LOGOUT(threshold) if (0) *monitor_p_g
22 #define LOGOUT(threshold) if (level_ver >= threshold) *monitor_p_g
25 extern Sources
* source_l_g
;
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);
31 String
midi2ly_version_str();
32 extern bool no_timestamps_b_g
;;
33 extern bool no_rests_b_g
;;
35 #endif // MIDI2LY_GLOBAL_HH