public Part getPart(String partLabel)
  {
    if (m_parts!=null)
    {
        for (Object m_part : m_parts) {
            Part p = (Part) m_part;
            //if (p.getLabel().equals(partLabel)
            //	|| p.getLabel().equals(""+partLabel.charAt(0))) {
            if (p.getLabel().charAt(0) == partLabel.charAt(0)) {
                if (partLabel.length() > 1) {
                    p.setLabel(partLabel);
                }
                return p;
            }
        }
    	return null;
    }
    else
      return null;
  }
public Part getPart ( String partLabel ) { if ( m_parts != null ) { for ( Object m_part : m_parts ) { Part p = ( Part ) m_part ; if ( p . getLabel ( ) . charAt ( 0 ) == partLabel . charAt ( 0 ) ) { if ( partLabel . length ( ) > 1 ) { p . setLabel ( partLabel ) ; } return p ; } } return null ; } else return null ; }
Returns the part of the tune identified by the given label.
@param partLabel A part label.
@return The part of the tune identified by the given label, <TT>null</TT>
if no part with the specified label exists in this tune.