src/tool-semitones.cpp
void Tool_semitones::markInterval(HTp token) {
	if (!token->isData()) {
		return;
	}
	if (!token->isKern()) {
		return;
	}
	if (token->isNull()) {
		return;
	}
	if (token->isRest()) {
		return;
	}
	if (token->isUnpitched()) {
		return;
	}
	m_markCount++;
	token = markNote(token, m_firstQ);
	if (m_firstQ && !m_secondQ) {
		return;
	}
	// find next note
	HTp current = token->getNextToken();
	while (current) {
		if (!current->isData()) {
			current = current->getNextToken();
			continue;
		}
		if (current->isNull()) {
			current = current->getNextToken();
			continue;
		}
		markNote(current, m_secondQ);
		break;
	}
}
//////////////////////////////
//
// Tool_semitones::markInterval -- mark the current note, any notes tied
//    after it, and then the next note and any tied notes attached to
//    that note.
//
:markInterval -- mark the current note, any notes tied
after it, and then the next note and any tied notes attached to
that note.
: markInterval -- mark the current note any notes tied after it and then the next note and any tied notes attached to that note .
void Tool_semitones::markInterval(HTp token) {
	if (!token->isData()) {
		return;
	}
	if (!token->isKern()) {
		return;
	}
	if (token->isNull()) {
		return;
	}
	if (token->isRest()) {
		return;
	}
	if (token->isUnpitched()) {
		return;
	}
	m_markCount++;
	token = markNote(token, m_firstQ);
	if (m_firstQ && !m_secondQ) {
		return;
	}
	HTp current = token->getNextToken();
	while (current) {
		if (!current->isData()) {
			current = current->getNextToken();
			continue;
		}
		if (current->isNull()) {
			current = current->getNextToken();
			continue;
		}
		markNote(current, m_secondQ);
		break;
	}
}
void Tool_semitones :: markInterval ( HTp token ) { if ( ! token -> isData ( ) ) { return ; } if ( ! token -> isKern ( ) ) { return ; } if ( token -> isNull ( ) ) { return ; } if ( token -> isRest ( ) ) { return ; } if ( token -> isUnpitched ( ) ) { return ; } m_markCount ++ ; token = markNote ( token , m_firstQ ) ; if ( m_firstQ && ! m_secondQ ) { return ; } HTp current = token -> getNextToken ( ) ; while ( current ) { if ( ! current -> isData ( ) ) { current = current -> getNextToken ( ) ; continue ; } if ( current -> isNull ( ) ) { current = current -> getNextToken ( ) ; continue ; } markNote ( current , m_secondQ ) ; break ; } }
Tool_semitones::markInterval -- mark the current note, any notes tied
after it, and then the next note and any tied notes attached to
that note.
Tool_semitones :: markInterval -- mark the current note any notes tied after it and then the next note and any tied notes attached to that note .
// find next note