void Dynamic::write(Xml& xml) const { xml.stag("Dynamic"); xml.tag("subtype", dynamicTypeName()); writeProperty(xml, P_VELOCITY); writeProperty(xml, P_DYNAMIC_RANGE); Text::writeProperties(xml, dynamicType() == 0); xml.etag(); }
void Dynamic::write(Xml& xml) const { if (!xml.canWrite(this)) return; xml.stag("Dynamic"); xml.tag("subtype", dynamicTypeName()); writeProperty(xml, P_ID::VELOCITY); writeProperty(xml, P_ID::DYNAMIC_RANGE); Text::writeProperties(xml, dynamicType() == Type::OTHER); xml.etag(); }
QString Dynamic::dynamicTypeName() const { return dynList[dynamicType()].tag; }
int Dynamic::velocity() const { return _velocity <= 0 ? dynList[dynamicType()].velocity : _velocity; }