def plot_notes(self):
        detector = MIDI_Detector(self.wav_file)
        #detector = Highest_Peaks_MIDI_Detector(self.wav_file)
        midi_numbers = detector.detect_MIDI_notes()
        lilypond_text = '\\version \"2.14.2\" \n'
        lilypond_text += '  \\new PianoStaff { \n'
        lilypond_text += '    \\autochange { \n <'
        for n in midi_numbers:
            if self.number2note.keys() in n:
                lilypond_text += self.number2note[n] + ' '
        lilypond_text += '>    \n}  \n}'
        with open(self.output_file, 'w') as f:
            f.write(lilypond_text)
        command = "lilypond "
        command += self.output_file
        print command
        os.system(command)
dataset/ETHPy150Open Agerrr/Automated_Music_Transcription/plotNotes.py/NotePlotter.plot_notes/swapped operands of `in`