Example #1
0
Segment* Articulation::segment() const
      {
      ChordRest* cr = chordRest();
      if (!cr)
            return 0;

      Segment* s = 0;
      if (cr->isGrace()) {
            if (cr->parent())
                  s = toSegment(cr->parent()->parent());
            }
      else
            s = toSegment(cr->parent());

      return s;
      }
Segment* Articulation::segment() const
      {
      ChordRest* cr = chordRest();
      return static_cast<Segment*>(cr ? cr->parent() : 0);
      }