def plot_notes_violin_stuff(self):
        """
            Given .wav file detect MIDI notes, convert them into corresponding
            character names. Afterwards plot and save into an output file.
            The class uses lilypond library for drawing sheet notes.
        """

        #detector = MIDI_Detector(self.wav_file)
        detector = MIDI_Detector(self.wav_file)
        midi_numbers = detector.detect_MIDI_notes()
        lilypond_text = '\\version \"2.14.2\" \n{ \n  \\clef treble \n'
        for n in midi_numbers:
            if n in self.number2note.keys():
                lilypond_text += self.number2note[n] + ' '
        lilypond_text += '\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_violin_stuff/original