Class MusicXmlOptions stores and manages the settings for dealing and fixing malformed imported files. The only instance of this class is stored in the LibraryScope object. You can access it and modify its settings either from LomseDoorway object or from the LibraryScope object:
LibraryScope& lomse = ...
MusicXmlOptions* opt = lomse.get_musicxml_options();
Example of use:
"my_score.xml");
...
opt->fix_beams(false);
"other_score.xml");
Settings description and default values for Lomse library are described in the following table:
Setting | Default value | Description |
fix_beams | true | When true, if beam information is not congruent with note type, the importer will fix the beam. |
use_default_clefs | true | When true, if an score part has pitched notes but the clef is missing, the importer will assume a G or an F4 clef, depending on notes pitch range. |
- See also
- fix_beams(), use_default_clefs()