'Parse the MusicXML <note> element.'

def _parse(self):

    self.midi_channel = self.state.midi_channel
    self.midi_program = self.state.midi_program
    self.velocity = self.state.velocity
    for child in self.xml_note:
        if (child.tag == 'chord'):
            self.is_in_chord = True
        elif (child.tag == 'duration'):
            self.note_duration.parse_duration(self.is_in_chord, self.is_grace_note, child.text)
        elif (child.tag == 'pitch'):
            self._parse_pitch(child)
        elif (child.tag == 'rest'):
            self.is_rest = True
        elif (child.tag == 'voice'):
            self.voice = int(child.text)
        elif (child.tag == 'dot'):
            self.note_duration.dots += 1
        elif (child.tag == 'type'):
            self.note_duration.type = child.text
        elif (child.tag == 'time-modification'):
            self._parse_tuplet(child)
        elif (child.tag == 'unpitched'):
            raise UnpitchedNoteException('Unpitched    notes    are    not    supported')
        else:
            pass
