Documentation on renderToTimemap options #3480
Replies: 4 comments
-
There is documentation on page 77 of the PDF: https://book.verovio.org/verovio-reference-book.pdf#page=77 It took me a while to figure out how to get the timemap from the command-line tool with which I was checking out the missed tempos a few weeks ago because I was searching the options (and not checking in the reference manual). So it might be nice to add
Also |
Beta Was this translation helpful? Give feedback.
-
std::cerr << "Output format (" << outformat
<< ") can only be 'mei', 'mei-basic', 'mei-pb', 'svg', 'midi', 'timemap', 'expansionmap', 'humdrum' "
"or 'pae'."
<< std::endl; |
Beta Was this translation helpful? Give feedback.
-
I was asking about the time map options as seen here: #2756 |
Beta Was this translation helpful? Give feedback.
-
Yes, I was just checking on that in the code (I have not used them yet, and I don't think they are listed in the documentation either):
std::string Toolkit::RenderToTimemap(const std::string &jsonOptions)
{
bool includeMeasures = false;
bool includeRests = false;
jsonxx::Object json;
// Read JSON options if not empty
if (!jsonOptions.empty()) {
if (!json.parse(jsonOptions)) {
LogWarning("Cannot parse JSON std::string. Using default options.");
}
else {
if (json.has<jsonxx::Boolean>("includeMeasures"))
includeMeasures = json.get<jsonxx::Boolean>("includeMeasures");
if (json.has<jsonxx::Boolean>("includeRests")) includeRests = json.get<jsonxx::Boolean>("includeRests");
}
}
this->ResetLogBuffer();
std::string output;
m_doc.ExportTimemap(output, includeRests, includeMeasures);
return output;
} So currently |
Beta Was this translation helpful? Give feedback.
-
AFAICS the timemap options are not documented in the reference book, correct?
Beta Was this translation helpful? Give feedback.
All reactions