Пример #1
0
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();
            }
      }
Пример #2
0
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;
      }
Пример #3
0
    void PropertyValueProxy::commit() {
        setLyricPhrase(isDefault[&lyricPhrase] ? "" : lyricPhrase);
        setLyricPhoneticSymbol(isDefault[&lyricPhoneticSymbol] ? "" : lyricPhoneticSymbol);
        setLyricConsonantAdjustment(
            isDefault[&lyricConsonantAdjustment] ? "" : lyricConsonantAdjustment);
        setLyricProtect(isDefault[&lyricProtect] ? 0 : lyricProtect);

        setNoteLength(isDefault[&noteLength] ? "" : StringUtil::toString(noteLength));
        setNoteNumber(isDefault[&noteNumber] ? "" : StringUtil::toString(noteNumber));

        setNotelocationClock(
            isDefault[&notelocationClock] ? "" : StringUtil::toString(notelocationClock));
        setNotelocationMeasure(
            isDefault[&notelocationMeasure] ? "" : StringUtil::toString(notelocationMeasure));
        setNotelocationBeat(
            isDefault[&notelocationBeat] ? "" : StringUtil::toString(notelocationBeat));
        setNotelocationTick(
            isDefault[&notelocationTick] ? "" : StringUtil::toString(notelocationTick));

        setVibratoType(isDefault[&vibratoType] ? 0 : vibratoType);
        setVibratoLength(isDefault[&vibratoLength] ? "" : StringUtil::toString(vibratoLength));
    }