src/HumdrumFileBase.cpp
int HumdrumFileBase::getTrackEndCount(int track) const {
	if (track < 0) {
		track += (int)m_trackends.size();
	}
	if (track < 0) {
		return 0;
	}
	if (track >= (int)m_trackends.size()) {
		return 0;
	}
	return (int)m_trackends[track].size();
}
//////////////////////////////
//
// HumdrumFileBase::getTrackEndCount -- Return the number of ending tokens
//    for the given track.  Spines must start as a single exclusive
//    interpretation token.  However, since spines may split and merge,
//    it is possible that there are more than one termination points for a
//    track.  This function returns the number of terminations which are
//    present in a file for any given spine/track.
//
:getTrackEndCount -- Return the number of ending tokens
for the given track.  Spines must start as a single exclusive
interpretation token.  However, since spines may split and merge,
it is possible that there are more than one termination points for a
track.  This function returns the number of terminations which are
present in a file for any given spine/track.
: getTrackEndCount -- Return the number of ending tokens for the given track . Spines must start as a single exclusive interpretation token . However since spines may split and merge it is possible that there are more than one termination points for a track . This function returns the number of terminations which are present in a file for any given spine / track .
int HumdrumFileBase::getTrackEndCount(int track) const {
	if (track < 0) {
		track += (int)m_trackends.size();
	}
	if (track < 0) {
		return 0;
	}
	if (track >= (int)m_trackends.size()) {
		return 0;
	}
	return (int)m_trackends[track].size();
}
int HumdrumFileBase :: getTrackEndCount ( int track ) const { if ( track < 0 ) { track += ( int ) m_trackends . size ( ) ; } if ( track < 0 ) { return 0 ; } if ( track >= ( int ) m_trackends . size ( ) ) { return 0 ; } return ( int ) m_trackends [ track ] . size ( ) ; }
HumdrumFileBase::getTrackEndCount -- Return the number of ending tokens
for the given track.
HumdrumFileBase :: getTrackEndCount -- Return the number of ending tokens for the given track .