void Vibrato::read(XmlReader& e) { eraseSpannerSegments(); while (e.readNextStartElement()) { const QStringRef& tag(e.name()); if (tag == "subtype") setVibratoType(e.readElementText()); else if ( tag == "play") setPlayArticulation(e.readBool()); else if (!SLine::readProperties(e)) e.unknown(); } }
bool Vibrato::setProperty(Pid propertyId, const QVariant& val) { switch(propertyId) { case Pid::VIBRATO_TYPE: setVibratoType(Type(val.toInt())); break; case Pid::PLAY: setPlayArticulation(val.toBool()); break; default: if (!SLine::setProperty(propertyId, val)) return false; break; } score()->setLayoutAll(); return true; }
void PropertyValueProxy::commit() { setLyricPhrase(isDefault[&lyricPhrase] ? "" : lyricPhrase); setLyricPhoneticSymbol(isDefault[&lyricPhoneticSymbol] ? "" : lyricPhoneticSymbol); setLyricConsonantAdjustment( isDefault[&lyricConsonantAdjustment] ? "" : lyricConsonantAdjustment); setLyricProtect(isDefault[&lyricProtect] ? 0 : lyricProtect); setNoteLength(isDefault[¬eLength] ? "" : StringUtil::toString(noteLength)); setNoteNumber(isDefault[¬eNumber] ? "" : StringUtil::toString(noteNumber)); setNotelocationClock( isDefault[¬elocationClock] ? "" : StringUtil::toString(notelocationClock)); setNotelocationMeasure( isDefault[¬elocationMeasure] ? "" : StringUtil::toString(notelocationMeasure)); setNotelocationBeat( isDefault[¬elocationBeat] ? "" : StringUtil::toString(notelocationBeat)); setNotelocationTick( isDefault[¬elocationTick] ? "" : StringUtil::toString(notelocationTick)); setVibratoType(isDefault[&vibratoType] ? 0 : vibratoType); setVibratoLength(isDefault[&vibratoLength] ? "" : StringUtil::toString(vibratoLength)); }