Kara-Moon Forum

Developers & Technology => Musical MIDI Accompaniment (MMA) => Topic started by: sciurius on August 05, 2019, 01:44:55 PM



Title: Verbosity
Post by: sciurius on August 05, 2019, 01:44:55 PM
When MMA is run with -n, it always reports on successful completion:

    Warning:   Input file parsed successfully. No midi file generated

I think this message is superfluous, since the user explicitly requested to not generate a MIDI file.
Failure to parse the input will result in other messages, and a non-zero exit status.

Proposal: Remove this message.

Alsi I'd like to propose a command line option -q (quiet) to silence some other information messages. In particular

    Creating new midi file ....
    Overwriting existing midi file ....


(Fun question: can you overwrite a not existing midi file?)

Optional proposal: Shorten these messages to

    Creating 'song.mid' (16 bars, 0:44 m:s)
    Overwriting 'song.mid' (16 bars, 0:44 m:s)


Title: Re: Verbosity
Post by: bvdp on August 05, 2019, 04:13:22 PM
Give me a few days to think on this. ... just off the top of my head I've sort of tried to keep MMA somewhat "friendly" in its output. And, yes, I know that that sometimes this interferes with being useful.

And, of course, some of the verbosity is just due to laziness.