void Vibrato::write(XmlWriter& xml) const { if (!xml.canWrite(this)) return; xml.stag(this); xml.tag("subtype", vibratoTypeName()); writeProperty(xml, Pid::PLAY); for (const StyledProperty& spp : *styledProperties()) writeProperty(xml, spp.pid); SLine::writeProperties(xml); xml.etag(); }
void PalmMute::write(XmlWriter& xml) const { if (!xml.canWrite(this)) return; xml.stag(name()); for (const StyledProperty& spp : *styledProperties()) writeProperty(xml, spp.pid); Element::writeProperties(xml); xml.etag(); }
void Ottava::write(XmlWriter& xml) const { if (!xml.canWrite(this)) return; xml.stag(QString("%1 id=\"%2\"").arg(name()).arg(xml.spannerId(this))); xml.tag("subtype", ottavaDefault[int(ottavaType())].name); for (const StyledProperty& spp : *styledProperties()) writeProperty(xml, spp.pid); Element::writeProperties(xml); xml.etag(); }
void LetRing::write(XmlWriter& xml) const { if (!xml.canWrite(this)) return; xml.stag(this); for (const StyledProperty& spp : *styledProperties()) { if (!isStyled(spp.pid)) writeProperty(xml, spp.pid); } Element::writeProperties(xml); xml.etag(); }
void Pedal::write(XmlWriter& xml) const { if (!xml.canWrite(this)) return; xml.stag(name()); for (auto i : { Pid::END_HOOK_TYPE, Pid::BEGIN_TEXT, Pid::END_TEXT, Pid::LINE_WIDTH, Pid::LINE_STYLE, Pid::BEGIN_HOOK_TYPE }) { writeProperty(xml, i); } for (const StyledProperty& spp : *styledProperties()) writeProperty(xml, spp.pid); Element::writeProperties(xml); xml.etag(); }