Beispiel #1
0
bool Pitch::operator==( const Pitch &orig ){
  if( m_note == orig.getNoteName() &&
      m_acc == orig.getAccidental() && 
      m_oct == orig.getOctave() )
    return true;
  else
    return false;
}
Beispiel #2
0
bool Pitch::operator!=( const Pitch &orig ){
  if( m_note != orig.getNoteName() ) return true;
  if( m_acc != orig.getAccidental() ) return true;
  if( m_oct != orig.getOctave() ) return true;
  else return false;
}