check match of rhythm number and pitch number