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; }
Segment* Score::tick2segment(int tick, bool first) const { return tick2segment(tick, first, SegmentType::All, false); }
Segment* Score::tick2segmentMM(int tick, bool first, Segment::Type st) const { return tick2segment(tick,first,st,true); }
Segment* Score::tick2segment(int tick) const { return tick2segment(tick, false, SegmentType::All, false); }