MusicXML: do not export dynamics if smaller than 0. See #17872
This commit is contained in:
parent
e9a4c28a04
commit
f5bed11a87
1 changed files with 4 additions and 2 deletions
|
@ -2907,8 +2907,10 @@ void ExportMusicXml::dynamic(Dynamic const* const dyn, int staff)
|
|||
xml.tag("offset", offs);
|
||||
if (staff)
|
||||
xml.tag("staff", staff);
|
||||
|
||||
xml.tagE(QString("sound dynamics=\"%1\"").arg(QString::number(dyn->velocity() * 100.0 / 90.0, 'f', 2)));
|
||||
|
||||
if(dyn->velocity() > 0)
|
||||
xml.tagE(QString("sound dynamics=\"%1\"").arg(QString::number(dyn->velocity() * 100.0 / 90.0, 'f', 2)));
|
||||
|
||||
xml.etag();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue