Example #1
0
int Score::nextSeg(int tick, int track)
      {
      Segment* seg = tick2segment(tick);
      while (seg) {
            seg = seg->next1(Segment::SegChordRest);
            if (seg == 0)
                  break;
            if (seg->element(track))
                  break;
            }
      return seg ? seg->tick() : -1;
      }
Example #2
0
Segment* Score::tick2segment(int tick, bool first) const
      {
      return tick2segment(tick, first, SegmentType::All, false);
      }
Example #3
0
Segment* Score::tick2segmentMM(int tick, bool first, Segment::Type st) const
      {
      return tick2segment(tick,first,st,true);
      }
Example #4
0
Segment* Score::tick2segment(int tick) const
      {
      return tick2segment(tick, false, SegmentType::All, false);
      }