ChordRest* Selection::activeCR() const { if ((_state != SEL_RANGE) || !_activeSegment) return 0; if (_activeSegment == _startSegment) return firstChordRest(_activeTrack); else return lastChordRest(_activeTrack); }
int Selection::tickStart() const { switch (_state) { case SelState::RANGE: return _startSegment->tick(); break; case SelState::LIST: { ChordRest* cr = firstChordRest(); return (cr) ? cr->tick() : -1; break; } default: return -1; } }