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 ; }
Returns the part of the tune identified by the given label .